This is a migrated thread and some comments may be shown as answers.

Custom Pins

1 Answer 9 Views
Map
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 21 Apr 2016, 06:23 PM

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

1 Answer, 1 is accepted

Sort by
0
Ivan
Telerik team
answered on 25 Apr 2016, 12:37 PM
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.
Tags
Map
Asked by
Steve
Top achievements
Rank 1
Answers by
Ivan
Telerik team
Share this question
or