Custom Pins

2 posts, 0 answers
  1. Steve
    Steve avatar
    3 posts
    Member since:
    Dec 2015

    Posted 21 Apr Link to this post

    Can anyone point me to an example of how to place custom pins on a map? I've seen demos and other examples that do exactly what I'm looking for but none of them give any code or explanation of how to do the pins.

     

    I've attached a screen shot of what I'm looking for.

     

    Thanks in advance

  2. Ivan
    Admin
    Ivan avatar
    44 posts

    Posted 25 Apr Link to this post

    Hello,

    One way to achieve the desired result is to use the map's VisualizationLayer and it's ItemTemplate.
    This approach is demonstrated in the attached project with the ItemTemplate from one of our demos.

    Another approach is instead of using ItemTemplate and ItemsSource to try the PointData object and add it in the Items collection of the VisualizationLayer. The default visual of the PointData object is similar to the one demonstrated in the image attached in your last reply.

    For more information about the VisualizationLayer you can check the Map Shape Data article. 

    If you have further questions about this matter let us know.

    Regards,
    Ivan
    Telerik
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top