Hi Support,
I am using Infragistics WinForms library (19.2.20192.476) in my .Net WinForms application created in C#. In one of the form of my application I am using UltraGeographicMap to show map. The datasource that I am assigning to map series, sometime contains duplicates points (same latitude and longitude) so on map its shows single point because duplicates points are stacked.
So in this scenario, My requirement to highlight duplicate points differently by assigning different marker.
Please advise me how I can highlight duplicate points so duplicates looks different then others
Thanks
Hello Brian,
I have been investigating into the behavior you are looking to achieve, and in order to highlight duplicate markers, I would recommend using a MarkerTemplate for the GeographicSymbolSeries so that you can define your own CustomRenderTemplate to modify the template that is shown. An alternative in this case is to utilize a separate GeographicSymbolSeries that contains your duplicate points.
I am attaching a sample project that demonstrates usage of a CustomRenderTemplate to provide a custom template. The red rectangles are duplicate points in the sample.
You may notice in the attached sample that there is a bit of commented code as well. This code is a 21.1 implementation of a simpler way to do this. Unfortunately, in version 19.2 the route to utilize the AssigningScatterMarkerStyle event of the series was not yet implemented.
Please let me know if you have any other questions or concerns on this matter.
UltraGeographicMapDuplicatePointsTest.zip
Hi Andrew,
Thanks for the sample application, it helped us mark the duplicate locations on map. However we have some additional functionalities that we want to use are not working in the sample application. In our application, we have series based on category (it is field in my datasource) and every series has configurable point color also series marker (type of infragistics's MarkerType) can be configured by user (marker would be same for all series).
So for example if category "ABC" has 10 points (locations) and color is set to green, all points would be shown in green with specified marker. Here some of points in "ABC" category may have duplicates points and for this, I wants to set different marker (type of MarkerType) but it would be same fill color as all other locations of "ABC" category has.
We want to achieve following:- Set custom marker to the points.- Points in the same series should have same color (we should be able to set the color at run time). Also the duplicate points in the series should get different marker. - Ability to set tootip for the points plotted on the map.
Thanking you.