What is the recommended procedure for adding content to a map using the QtQml runtime? My imagery tiles will load but I cannot get my features to have an initialized status and open in the map. They are stuck in the initializing status. It may just be a projection issue, but I have not found help on adding multiple types of data layers to a map. Is it necessary to initialize a layer, or do we just need to add it to the map? Do we need to initialize the geodatabaseFeatureServiceTable then add the FeatureLayer to the map?
Thanks a bunch,
Richard
Solved! Go to Solution.
Hey Richard-
You shouldn't need to call initialize on anything. The below code should be enough to display a feature service on top of a basemap.
Map { anchors.fill: parent ArcGISTiledMapServiceLayer { url: "http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer" } FeatureLayer { featureTable: gdbFST } GeodatabaseFeatureServiceTable { id: gdbFST url: "http://sampleserver6.arcgisonline.com/arcgis/rest/services/DamageAssessment/FeatureServer/0" } }
Does this work for you?
Thanks,
Luke
Hey Richard-
You shouldn't need to call initialize on anything. The below code should be enough to display a feature service on top of a basemap.
Map { anchors.fill: parent ArcGISTiledMapServiceLayer { url: "http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer" } FeatureLayer { featureTable: gdbFST } GeodatabaseFeatureServiceTable { id: gdbFST url: "http://sampleserver6.arcgisonline.com/arcgis/rest/services/DamageAssessment/FeatureServer/0" } }
Does this work for you?
Thanks,
Luke