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
close icon

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? 

4 Replies

NF NICHOLAS FORTIER July 29, 2019 06:45 PM UTC

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 10:53 AM UTC

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. 



DA David March 22, 2023 06:04 PM UTC

Hay una manera de hacerlo todo desde c#? 



ET Eswaran Thirugnanasambandam Syncfusion Team March 23, 2023 08:57 AM UTC

Hi David,


We have prepared a sample from code behind to meet your requirement, and please get the sample from the below attachment.


Regards,

Eswaran


Attachment: Maps_sample_a079939.zip

Loader.
Live Chat Icon For mobile
Up arrow icon