I am currently using the Winforms UltraGeographicMap control in a project. The control can import Series data from shapefiles through ShapefileConverter. While this works great with polyline and point data, there seem to be some issues with polygon data. The SeriesMouseEnter event fires intermittently or not at all when the mouse enters a polygon. I'm currently using this to track clicks on the series data.
My question is twofold: is this a known issue and is there a better way to track mouse interactions than the SeriesMouseLeave, SeriesMouseEnter, SeriesMouseLeftButtonUp, etc events?
Hello Charles,
Please provide a sample as there is no known issue currently regarding polygon data. Let me know if you have any questions.
private void ultraGeographicMap1_SeriesMouseEnter(object sender, Infragistics.Win.DataVisualization.ChartMouseEventArgs e) { ultraGeographicMap1.Cursor = System.Windows.Forms.Cursors.Hand; MapSymbol symbol = e?.Item as MapSymbol; if (symbol != null) { //*Process symbol* } } private void ultraGeographicMap1_SeriesMouseLeave(object sender, Infragistics.Win.DataVisualization.ChartMouseEventArgs e) { ultraGeographicMap1.Cursor = System.Windows.Forms.Cursors.Default; if (ultraPopupControlContainer1.IsDisplayed) { ultraPopupControlContainer1.Close(); if (ultraPopupControlContainer1.PopupControl != null) { ultraPopupControlContainer1.PopupControl.Dispose(); } } } private void ultraGeographicMap1_SeriesMouseLeftButtonUp(object sender, Infragistics.Win.DataVisualization.ChartMouseButtonEventArgs e) { MapSymbol symbol = e?.Item as MapSymbol; //*Process symbol* }
Here are the events we are using. Basically, we are trying to pull an item we attached to the map data and present it in a popup. This works find for point data and mostly fine for polyline data, but the events do not fire for polygon data.
I tried different settings for ContentHitTestMode on the UltraGeographicMap control, but none seemed to work for polygon data. I did notice that if that property is set to Computational, then polyline data stopped working.
Thanks for your help.