I need to draw an image at the position on the map, and it must move as the position moves. I also needto draw a different image on some static locations. This data comes from a collection of locations.
I have coded this as such(below)... but it does not run. I get the error: "Items collection must be empty before using ItemsSource."
When i remove the waypoints, the current position works, and when i remove the current position, the waypoints works. I assume there is something very simple i am missing or not organizing correctly.
<
telerik:InformationLayer
ItemsSource
=
"{Binding Path=Waypoints}"
ItemTemplate
=
"{StaticResource Rectangle}"
>
<
telerik:MapPinPoint
telerik:MapLayer.Location
=
"{Binding CurrentPosition}"
ImageSource
=
"icon.png"
/>
</
telerik:InformationLayer
>