Hi!
I have created several points on map as List of GeoLocations (name, X and Y cordinates) and added it to GeographicSymbolSeries.
Now I want to get a single object point when I click it on the map, to show more information about it.
Can you tell me how to do that ?
By that I mean 2 things:
Capture the mouse click - and get that click coordinates.
Get exact object from GeographicSymbolSeries which I added earlier.
I really appreciate any help you can provide!
I found partial solution.
The method is called ultraGeographicMap.CrosshairPoint();
But still looking for better one.
Hi Grzegorz,
Try adding this event handler:
this.ultraGeographicMap1.SeriesMouseLeftButtonDown += (p1, p2) =>{ GeoLocation location = p2.Item as GeoLocation; if (location != null) { MessageBox.Show(location.Name); }};
Please let me know whether this is the information you needed.
Yeah,
That's totally what I meant.
Thanks a lot!
The only problem is that after this event the map is in "zooming" mode. Like after navigating Map content Using a Mouse.
How to fix this ?
Hello,
I am not sure why this happens yet. Does it exhibit the zooming behavior when not using the supplied code? If so, it might just be a property setting.
I will investigate this further and let you know what I find.
In my testing, I do not see the behavior you described. The map does not react to a click by zooming. Please provide a sample application that demonstrates this behavior and I will find a way to disable it.