function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ravi LalRavi Lal 

Can we show different colours/icons in google map using lightning web development?

Best Answer chosen by Ravi Lal
AbhishekAbhishek (Salesforce Developers) 
https://medium.com/free-code-camp/how-to-change-javascript-google-map-marker-color-8a72131d1207

Try the code as mentioned above.

If you are looking for a way to use custom markers on the lightning component then you can check the below idea that you can check this is currently open and you can upvote it so that it can reach the necessary threshold votes if it reaches it can be considered in the future.

>> https://trailblazer.salesforce.com/ideaView?id=0873A000000Lx6KQAS

For the VF page, you can check this documentation:  https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_maps_markers_custom.htm



Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.

Thanks.

All Answers

AbhishekAbhishek (Salesforce Developers) 
https://medium.com/free-code-camp/how-to-change-javascript-google-map-marker-color-8a72131d1207

Try the code as mentioned above.

If you are looking for a way to use custom markers on the lightning component then you can check the below idea that you can check this is currently open and you can upvote it so that it can reach the necessary threshold votes if it reaches it can be considered in the future.

>> https://trailblazer.salesforce.com/ideaView?id=0873A000000Lx6KQAS

For the VF page, you can check this documentation:  https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_maps_markers_custom.htm



Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.

Thanks.
This was selected as the best answer
Ravi LalRavi Lal
Thanks, Abhishek...Voted.