Hi,
Rad Map is awesome! nice job!. How i can use the PushPin class to add a pin with double click. I was trying something like:
But i had an exception with "UIElement not supported".
Best Regards,
Moises
Rad Map is awesome! nice job!. How i can use the PushPin class to add a pin with double click. I was trying something like:
private void RadMap1_MapMouseDoubleClick(object sender, MapMouseRoutedEventArgs e) |
{ |
e.Handled = true; |
// The location to place the pushpin at on the map. |
Telerik.Windows.Controls.Map.VEImageryService.Location pinLocation = new Telerik.Windows.Controls.Map.VEImageryService.Location(); |
pinLocation.Latitude = e.Location.Latitude; |
pinLocation.Longitude = e.Location.Longitude; |
// The pushpin to add to the map. |
Pushpin pin = new Pushpin(); |
pin.Location = pinLocation; |
// Adds the pushpin to the map. |
PinLayer.Items.Add(pin); |
} |
Best Regards,
Moises