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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Multiple custom marker with different image

Thread ID:





146282 Jul 29,2019 04:05 PM UTC Jul 30,2019 10:53 AM UTC Xamarin.Forms 2
Tags: SfMaps
Asked On July 29, 2019 04:05 PM UTC


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? 

Replied On 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

Rachel A [Syncfusion]
Replied On 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: 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon