We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Multiple custom marker with different image

Hi,

I would like to add different custom markers with different image through the ImageryLayer. It looks like this is not possible since the MarkerTemplate is for the Layer and not on the marker. I tried adding multiple layers, sublayers etc and this is not working, nothing appears.

Is there a way to do this? 

2 Replies

NF NICHOLAS FORTIER July 29, 2019 01:45 PM

Answering my own question. You have to do a DataTemplateSelector to fix this issue and assign it to MarkerTemplate


RA Rachel A Syncfusion Team July 30, 2019 05:53 AM

Hi Nicholas, 
 
Thanks for the suggestion. 
 
We have achieved your requirement using DataTemplateSelector in MarkerTemplate for displaying different images for each marker. Please download the sample from the below link: 
 
 
Regards, 
Rachel. 


Loader.
Live Chat Icon For mobile
Up arrow icon