Multiple layers

I'm new to the Blazor Maps control and to Syncfustion. I'm trying to load multiple sublayers on a OSM layer, but only the first layer gets displayed. I cannot find an example or explanation/documentation on how this can be done.

Hopefully someone has done something like this before. I want to load multiple GeoJSON files as layers so that I can select them.


1 Reply 1 reply marked as answer

SB Swetha Babu Syncfusion Team March 17, 2021 01:27 PM UTC

Hi Willem,

Thank you for contacting Syncfusion support.

We can render the multiple sub-layers on the OSM map by setting the Type property as “SubLayer” in the MapsLayer class in the Maps component. Please find the below documentation link for adding sublayers in the tile maps, for your reference. 
  
  
However, we have created a simple Blazor application to demonstrate the same and it can be downloaded from the below link.

https://www.syncfusion.com/downloads/support/forum/163565/ze/MapsMultiLayer896427483

 
In the above sample, we have rendered the OSM map with the USA, Texas, and California as a sublayer. Please let us know if the above sample meets your requirement.

Please let us know if you need any further assistance.

Regards,
Swetha Babu 


Marked as answer
Loader.
Up arrow icon