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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to customize markers

Map Markers can be customized by using the following steps,

Step1:Create a Maps sample,and include the necessary script files.

Step2:The default appearance of the marker can be customized by using the MarkerTemplate property. The Marker template property is available in the ShapeFileLayer.





     <Grid Margin="-12,-30,0,0">


         <Image Source="pin.png" Height="30"/> </Canvas>

         <Grid DataContext="{Binding Data}" Width="265">


                 <RowDefinition />





      <Canvas Grid.Row="0" Grid.Column="0" Margin="0,0,106,0" >

   <Image Source="mappath.png" Width="92" Canvas.Top="25" Canvas.Left="10"/>

 <TextBlock Foreground="White" HorizontalAlignment="Center" FontSize="15" FontFamily="Segoe UI" Text="{Binding Name}" Canvas.Left="25" Canvas.Top="25" RenderTransformOrigin="0.515,-0.3"/>






The following screenshot shows the customization of Map Markers using Marker Template.


Article ID: Published Date: Last Revised Date: Platform: Control:
7656 04/07/2017 04/07/2017 WPF SfMaps
Did you find this information helpful?
Add Comment
You must log in to leave a comment

Please sign in to access our KB

or the page will be automatically redirected to 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