Hey guys, we are having trouble making the shape layer work. We just want the maps to display a clean view with only roads and blocks rather than the default one with the detailed labels in it. We tried our best to understand the syncfusion documentation with no luck. Here are some of the things we've tried.
- .dbf is an embedded resource, Uri is "Images/roadtrl020.dbf"
- .dbf is an embedded resource, Uri is "App.NameSpace.Images.roadtrl020.dbf"
- .dbf is an embedded resource, Uri is "resource://App.NameSpace.Images.roadtrl020.dbf"
- transfer the embedded .dbf file to PersonalFolder and link to it with "/path/to/roadtrl020.dbf"
- transfer the embedded .dbf file to PersonalFolder and link to it with "file:///path/to/roadtrl020.dbf"
The documentation doesn't exactly tell us what the Uri expects so we wouldn't know what to give it. All we get is this.
MPMichael Prabhu M Syncfusion Team December 31, 2018 01:47 AM
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:ShapeFileLayer Uri="usa_state.shp" >
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.
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.