I've looked around to find an answer to this and I am sure there are multiple answers but I really didn't find the right...OR best solution to this issue.
What I have setup is a InMemoryMarkerOverlay with a column add:
But instead of having a mouse over event trigger the retrieval of the html div popup for the Marker I would like to have a click event retrieve the information and display the popup.
protected void Map1_Click(object sender, MapClickedEventArgs e) { InMemoryMarkerOverlay markerOverlay = (InMemoryMarkerOverlay)Map1.CustomOverlays["MarkerOverlay"]; Collection<Feature> features = markerOverlay.FeatureSource.GetFeaturesByColumnValue("YourOwnColumn", "YourValue"); //then you can loop the features to retrieval the information you want and show a popup }
If I misunderstanding something, please feel free to tell me.
But shouldn’t there be a easier way to do this by registering the mouse click event to the popup on the InMemoryMarkerOverlay “Marker” rather than the information being shown when the mouse is held over the marker?
I was trying to figure out a way of doing that but a clear method to do this wasn’t apparent.