In windows using ArcGIS, there is a problem on loading ENC chart in QML . How to solve it ?

367
1
09-28-2023 11:53 PM
Labels (3)
AyushiKamboj
New Contributor II
      encLayer.loadStatusChanged.connect(()=> {
                            if (encLayer.loadStatus === Enums.LoadStatusLoaded) {
                                loadedEncLayerCount++;
                            }
 
                            // loop through the layers and zoom to the combined full extent
                            if (loadedEncLayerCount === datasets.length) {
                                const fullExtents = [];
                                map.operationalLayers.forEach(layer => fullExtents.push(layer.fullExtent));
                                const fullExtentOfLayers = GeometryEngine.combineExtentsOfGeometries(fullExtents);
                                mapView.setViewpointGeometry(fullExtentOfLayers)
                            }
                        });
1 Reply
JamesBallard1
Esri Regular Contributor
0 Kudos