How can I change the appearance of an individual shape that is part of a set loaded into a GeographicShapeSeries?
For example, in your UltraGeographicMap sample, it sets the colour that will be used for all the shapes in the series, but I then want to change the colour of the shape for just one member of the series, so I could make one particular country a different colour.
How do I get access to an individual shape in the series, and what properties are exposed that would let me customise it?
Thanks!
Hi Robert,
This is a feature that currently exists in xamGeographicMap, but is not yet available in UltraGeographicMap. My recommendation is to host a xamGeographicMap in your application and use a ShapeStyleSelector to specify which countries to color differently.
Please let me know if you have any questions regarding this implementation.
Hi Mike,
Is there any update to this since 18.1 has been released? I am still looking to create a true heat map with geographical regions from a shape file shown using different colours, and I would rather do it within Windows Forms than deal with WPF.
Alternatively, in 18.1 I notice there is a new UltraDataChart with ScatterPolygonSeries which also allows display of shapes from a ShapeFile. Is there a way to change the colour of those shapes individually?
Thanks
18.1 does not include any major new features for UltraGeographicMap. You can find out more about what features are added in each release on our What's New page.
While you cannot change the color of each individual shape in a ScatterPolygonSeries, you can provide several different series which each have their own color. If you choose to implement this using ScatterPolygonSeries, then this is the approach I recommend.
xamGeographicMap does support the feature you are looking for, and my overall recommendation is still to host it in your application.
If you would like to see either of these features added to our Windows Forms controls, please submit a product idea to our ideas site.
Please let me know if you have any questions.