initialization

2585
1
Jump to solution
04-21-2015 08:11 AM
RichardHughes3
New Contributor III

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

0 Kudos
1 Solution

Accepted Solutions
LucasDanzinger
Esri Frequent Contributor

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

View solution in original post

1 Reply
LucasDanzinger
Esri Frequent Contributor

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