Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
15
UltraGeographicMap - Different marker of duplicates point
posted

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

Parents
No Data
Reply
  • 34810
    Offline posted

    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

Children