I have found the example of adding an offline tilepackage to an offline map, but I have not been able to find an example of adding an offline (local) geodatabase to a map in appstudio. Any help/examples would be greatly appreciated.
Check out this wiki page:
Working with Offline content · Esri/arcgis-appstudio-samples Wiki · GitHub
Hi Shane,
Here is how I did it.
//Load the layers from our local geodatabase
function loadLayers(){
if (gdbPath) {
var gdbtables = gdb.geodatabaseFeatureTables;
for(var i in gdbtables) {
var newFeatureLayer = ArcGISRuntime.createObject("FeatureLayer");
newFeatureLayer.featureTable = gdbtables;
map.insertLayer(newFeatureLayer, 1);
}
Geodatabase {
id: gdb
path: gdbPath
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.