Is it possible to load shapefiles from local storage in Xamarin Forms sfMaps? I tried both a local path "/data/..." as well as a file Uri "file:///data/..." on Android, however both was not working and gave me a "Java IO Path not found" exception. Any thoughts?
BKBharathiraja K Syncfusion Team February 1, 2019 04:51 AM
Greetings from Syncfusion!
We have the support to load the shape file as stream. Hence, you can achieve your requirement by converting the accessed shape file (from your device location) to stream and load to maps using ReadAsStream() method.
Please refer the below code snippet for loading shape files as stream.
// Load Shape file only
// Load Shape file and dbf file
We have prepared the sample to load the shape file from the application. Please find the sample from the following location.