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.
Hello @imbachb
Thank you for reaching out to us with your problem. There is no known limitation as far as using multiple vtpk's in 3D. But if this is not working for you, we might have an issue on our end and would need to look at it.
However, could you try adding the vtpk's to the operational layer list of the scene and see if that works? It could be a viable workaround if that works.
In the meantime, I am going to log an issue for us to look into the problem.
Regards,
Koushik
@KoushikHajra Thank you for looking into this.
Even adding all ArcGISVectorTiledLayer to the operation layers of the scene instead of the base layers results in only one layer being rendered.
Also adding 1 layer to the base layers and one layer to the operational layers results in only 1 layer being rendered. When multiple ArcGISVectorTiledLayer are added only the top most layer is rendered in scene view.
Hello @imbachb,
This looks like a bug on our end and I have logged an issue to look into it. Thank you for bringing it to our attention.