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

Select a MapPinPoint

4 Answers 79 Views
Map
This is a migrated thread and some comments may be shown as answers.
Sundy
Top achievements
Rank 1
Sundy asked on 16 Sep 2011, 10:37 PM
I am using MVVM and the ItemSource to bind to a list of locations, do you guys know how I could change the Icon of the Selected PinPoint on the Map ?

4 Answers, 1 is accepted

Sort by
0
Sundy
Top achievements
Rank 1
answered on 19 Sep 2011, 09:19 PM
I forgot to mention I am using Information Layer to display the set of PinPoints on the map. I am using a DataTemplate and an ImageSource to display icons on the map, how can I bind event triggers to Hit Test these pinpoint selects ?
0
Andrey
Telerik team
answered on 21 Sep 2011, 02:58 PM
Hi Sundy,

I would recommend you to take a look into our DataBinding demo:
http://demos.telerik.com/silverlight/#Map/DataBinding

Greetings,
Andrey Murzov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Sundy
Top achievements
Rank 1
answered on 28 Sep 2011, 06:55 PM
Thanks Andrey I got it working where a CommandBinding for an Event Trigger "MouseLeftButtonDown" returns an Image as it OriginalSource when clicked on my Image. The only problem that I am seeing is I also have a "MapMouseClick" event bound and even though I call a e.Handled = true on the MouseLeftButtonDown it still calls the method that is bound to the MapMouseClick event.

Thanks,
Sundy
0
Andrey
Telerik team
answered on 03 Oct 2011, 08:37 AM
Hi Sundy,

It is very complicated and it is hard to reproduce the problem without your solution or code. But it seems you use the Handled property of the ExecutedRoutedEventArgs instead of the MouseButtonEventArgs. So, the map control also handles the MouseLeftButtonDown event and the MapMouseClick event is triggered.
I would recommend to attach the MouseLeftButtonDown event handler directly. In this case the event can be cancelled using the Handled property.

Greetings,
Andrey Murzov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
Map
Asked by
Sundy
Top achievements
Rank 1
Answers by
Sundy
Top achievements
Rank 1
Andrey
Telerik team
Share this question
or