How can I load in QML a shapefile stored in local folder? From the documentation, I understand that I have to use a FeatureLayer (Feature Layer from Shapefile | ArcGIS for Developers ) but the example is for .NET and I could not find an example for QML ...
Solved! Go to Solution.
At the current release, directly reading a shapefile from a folder isn't supported in QML. We are going to provide this capability in a future release, however, as this is a capability that's crucial for many users like yourself. We'd be very interested in knowing what your primary needs are with respect to working with shapefiles in Runtime apps. Your information will help us to stay on the mark in delivering useful APIs for this.
The reason why I thought of using local shapefiles was that I needed my Runtime app to work offline.
I understand that the release 100.0 does not support this, but is it the same for 10.2.6 ?
So, if I want to run my QML app offline I need: tile package, or mobile map package, or geodatabase, is that correct ?
Hi. Could Esri community publish importing shapefiles as an opensource extension to Qt5/QML without Esri runtime? I think some developers might only need to import shapefiles to their QML project without using other GIS features.
Are you referring to the QtLocation plugin? I think this could maybe be a generic shapefile implementation not tied to any specific provider (Esri, Here, Mapbox, etc)
In my opinion It may be possible to make QML's Canvas like a map viewer with a plugin. Using the plugin, QML's 2D Canvas should import and view KML, SHP and GeoJSON files like SVG files with Proj4JS library. (I tested Proj4JS library with QML, it works. ) I would like to import and view GIS data using map canvas with QML on mobile devices. I do not prefer to include specific map providers. Hopefully this plugin will exist