Welcome to the Blazor feedback portal. We’re happy you’re here! If you have feedback on how to improve the Blazor, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

1
Vote

Hello,

I want to ask you if this feature exists (if yes, how to achieve it) or can be introduced:
I need to present on map dynamicaly generated "ranges". Let's imagine i.e., that map has to show distance map - display polygon with color A if some calculated property is between X and Y, color B if between V and Z etc. OR display polygons with color defined in such item, like:

new FeatureCollectionItm()            {

                type = "FeatureCollection",

                features = new FeatureItm[]

                {

                    new FeatureItm()

                    {

                        type = "Feature", //Here nowe property with color sting for mapping

                        properties = new PropertyItm() {},

                        geometry = new GeometryItm()

                        {

                            type="Polygon",

                            coordinates = new double[][][]

                            {

                                new double[][]

                                {

                                        new double[] { 18.5250, 50.7789 },

                                        new double[] { 18.9250, 50.7789 },

                                        new double[] { 18.9250, 50.1789 },

                                        new double[] { 18.5250, 50.1789 }

                                }  } }  } }  }

The idea is to have list of Feature items (in form of FeatureCollection) generated in background and attached to map as a layer (basic layer is OpenStreetMap) in such way:


- <MapsLayer ShapeData='@dynamicallyGeneratedFeatureCollection' Type="Syncfusion.Blazor.Maps.Type.Sublayer" TValue="String">
//Some bindings here or in declaration rowe above, for bind drawn polygon with color
</MapsLayer>

Currently, I can attach such list as source, but drawing polygons are all in the same color - gray if not specified, or in one color if I use "Fill" property.

Thank you in advance