I have wmtslayer with geoserver v2.22.1
when i use it on scene as basemap , it has high cpu usage when fast zooming by mouse wheel to very zoomed levels.
But it's ok on 2d and in the map view.
i use qt sdk 100.15.0 and qt 5.15.2 msvc19
here is my code from BasicSceneView example.
import QtQuick 2.6
import QtQuick.Controls 2.2
import Esri.ArcGISRuntime 100.15
Rectangle {
width: 800
height: 600
readonly property url wmtsServiceUrl: "http://localhost:8080/geoserver/gwc/service/wmts/1.0.0/"
property WmtsService service;
SceneView {
anchors.fill: parent
Component.onCompleted: {
// Set the focus on SceneView to initially enable keyboard navigation
forceActiveFocus();
createWmtsLayer();
}
Scene {
id: scene
}
}
function createWmtsLayer() {
service = ArcGISRuntimeEnvironment.createObject("WmtsService", { url: wmtsServiceUrl });
// connect to loadStatusChanged signal of the service
service.loadStatusChanged.connect(()=> {
if (service.loadStatus === Enums.LoadStatusLoaded) {
const serviceInfo = service.serviceInfo;
const layerInfos = serviceInfo.layerInfos;
const layerId = layerInfos[5].wmtsLayerId;
console.log("layer", layerId)
const wmtsLayer = ArcGISRuntimeEnvironment.createObject("WmtsLayer", {
url: wmtsServiceUrl,
layerId: layerId,
maxScale: 8000,
minScale: 2000
});
wmtsLayer.wmtsLayerId = layerId
const basemap = ArcGISRuntimeEnvironment.createObject("Basemap");
basemap.baseLayers.append(wmtsLayer);
scene.basemap = basemap
}
});
service.load();
}
}