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
Valentin F.Valentin F. 

Change marker color lightning:map

I'd like to change the color or image of lightning:map marker.
I tried : http://releasenotes.docs.salesforce.com/en-us/summer15/release-notes/rn_vf_maps_enhancements_custom_icons.htm?edition=&impact= (releasenotes.docs.salesforce.com/en-us/summer15/release-notes/rn_vf_maps_enhancements_custom_icons.htm?edition=&impact=)
but I couldn't make it works.
 
Best Answer chosen by Valentin F.
Khan AnasKhan Anas (Salesforce Developers) 
Hi Valentin,

Greetings to you!

Unfortunately, it's not possible to change marker color in lightning:map

Please refer to the below link which might help you further.

https://developer.salesforce.com/forums/?id=9060G0000005p5IQAQ

I hope it helps you.

Kindly 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. It will help to keep this community clean.

Thanks and Regards,
Khan Anas

All Answers

Khan AnasKhan Anas (Salesforce Developers) 
Hi Valentin,

Greetings to you!

Unfortunately, it's not possible to change marker color in lightning:map

Please refer to the below link which might help you further.

https://developer.salesforce.com/forums/?id=9060G0000005p5IQAQ

I hope it helps you.

Kindly 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. It will help to keep this community clean.

Thanks and Regards,
Khan Anas
This was selected as the best answer
Valentin F.Valentin F.
Thank you ! 
I finally used Leaflet to get different colors markers