Hi Virgil,
Greetings from Syncfusion.
Query: How to use the shape file layer in maps.
You can use the SfMaps control to display the required country boundaries, rail roads or etc. This can be achieved by adding the required shape files in the project and accessing it via Uri property in the shape file layer.
You need to mention the shape file (.shp) name in the Uri property. Dbf file corresponding to that shape file is mainly used for additional features such as displaying bubbles, color mapping etc. Hence you must specify the shape file name in the Uri property as in the below code snippet.
<maps:SfMaps.Layers >
<maps:ShapeFileLayer Uri="usa_state.shp" >
</maps:ShapeFileLayer>
</maps:SfMaps.Layers> |
Please refer the below documentation link for how to specify the Uri property and how to add and access the shape files in the project.
We have also prepared a simple sample to show the US map. You can refer this sample and add the shape file which is required for you instead of US map.
You can download the sample from the below link.
Output Image:
Note: Please refer and follow the mentioned UG link for adding shape files in the project.
Please contact us if you need further assistance on this. Also, if your scenario is different from the above please provide additional information on this. This would help us to guide you accordingly with the better solution at the earliest.
Regards,
Michael