AnsweredAssumed Answered

Add layer from geodatabase file

Question asked by jay.kapalczynski on Dec 10, 2019
Latest reply on Dec 13, 2019 by LDanzinger-esristaff

I created a geodatabase via ArcGIS Runtime Content in ArcMap.

I am trying to add it via this reference: Create an offline map—ArcGIS Runtime SDK for Qt | ArcGIS for Developers 


BUT map.addLayer does not exist or its giving me an error


Any ideas?


//Declare the geodatabase 
Geodatabase {
        id: geodatabase
        path: "/path_to_my_geodatabase/mydata.geodatabase"

FeatureLayer {
        id: featureLayer
        featureTable: geodatabase.geodatabaseFeatureTableByLayerId(0);