We discovered that we can only display 1 vtpk file in a scene view. If we add multiple vtpks as ArcGISVectorTiledLayer to a scene's basemap, then only one layer is rendered. Using a MapView instead and loading the vtpk files the exact same way does not have this issue.
Is this a general limitation of the SceneView? Would it work if we used multiple tpkx (ArcGISTiledLayer) instead?
We load the layers like this:
auto scene = new Scene();
auto sceneBasemap = new Basemap(scene);
for (const auto& layerFilePath : layerFilePaths) {
auto vectorTileCache = new VectorTileCache(QString::fromStdString(layerFilePath), parent);
auto layer = new ArcGISVectorTiledLayer(vectorTileCache, parent);
if (layer) {
basemap->baseLayers()->append(layer);
}
}
scene->setBasemap(sceneBasemap);
Result:
Scene View (only one vtpk is shown)

MapView (all vtpks are shown)

We use ArcGIS SDK for Qt 200.5.