Hi Valentin, Thanks for you response. With reference to the screenshot below, I would like to display something different instead of address or geolocation in the marker table.
https://developer.salesforce.com/docs/component-library/bundle/lightning:map/example#lightningcomponentdemo:exampleMapMultipleMarkers This is the documentation for lightining:map.
Hi Valentin, In the location component of the marker we set city and country which shows up on the marker list. I wanted to show phone number and email. so tht it looks like this.
Hi Valentin, I tried the code suggested by you. However now the locations are not shown on the map. Can you put in you working code for better understanding ?
Are you talking about this trailhead ?
https://trailhead.salesforce.com/fr/content/learn/modules/sfdx_app_dev
If so, you are using a lightning:datatable and you can customize it :
https://developer.salesforce.com/docs/component-library/bundle/lightning:datatable/example
https://developer.salesforce.com/docs/component-library/bundle/lightning-datatable/documentation
You could also use :
https://lightningdesignsystem.com/components/data-tables/
Let me know if it helped you.
Have a good day,
Valentin
Thanks for you response.
With reference to the screenshot below, I would like to display something different instead of address or geolocation in the marker table.
Regards,
Amey
https://developer.salesforce.com/docs/component-library/bundle/lightning:map/example#lightningcomponentdemo:exampleMapMultipleMarkers
This is the documentation for lightining:map.
As you can see in the Controller tab you can give different values, icons etc.
I advise you to create a wrapper class to get each information you want to display in your front. Here you got an example !
Let me know if it helped you.
Have a good day,
Valentin
In the location component of the marker we set city and country which shows up on the marker list.
I wanted to show phone number and email. so tht it looks like this.
Regards,
Amey
Following my example above, you need to create an inner classe with : Then you give them values in your main method : You return this object to your front and use them to build your list :
I tried the code suggested by you. However now the locations are not shown on the map.
Can you put in you working code for better understanding ?
Regards,
Amey