@vcmap/core 6.1.11 → 6.2.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -6
- package/build/buildShader.js +61 -0
- package/build/postinstall.js +6 -3
- package/dist/cesium.d.ts +57 -18
- package/dist/geojson.d.ts +3 -2
- package/dist/index.d.ts +244 -109
- package/dist/index.js +82 -63
- package/dist/index.js.map +1 -1
- package/dist/ol.d.ts +27 -29
- package/dist/src/category/category.d.ts +3 -2
- package/dist/src/category/category.js +2 -2
- package/dist/src/category/category.js.map +1 -1
- package/dist/src/category/categoryCollection.d.ts +3 -2
- package/dist/src/category/categoryCollection.js.map +1 -1
- package/dist/src/cesium/cesium3DTileFeature.d.ts +2 -1
- package/dist/src/cesium/cesium3DTileFeature.js +2 -3
- package/dist/src/cesium/cesium3DTileFeature.js.map +1 -1
- package/dist/src/cesium/cesiumVcsCameraPrimitive.js +6 -5
- package/dist/src/cesium/cesiumVcsCameraPrimitive.js.map +1 -1
- package/dist/src/cesium/entity.js +1 -1
- package/dist/src/cesium/entity.js.map +1 -1
- package/dist/src/classRegistry.d.ts +4 -4
- package/dist/src/classRegistry.js +2 -0
- package/dist/src/classRegistry.js.map +1 -1
- package/dist/src/featureProvider/abstractFeatureProvider.d.ts +2 -1
- package/dist/src/featureProvider/abstractFeatureProvider.js +8 -2
- package/dist/src/featureProvider/abstractFeatureProvider.js.map +1 -1
- package/dist/src/featureProvider/wmsFeatureProvider.d.ts +38 -10
- package/dist/src/featureProvider/wmsFeatureProvider.js +69 -15
- package/dist/src/featureProvider/wmsFeatureProvider.js.map +1 -1
- package/dist/src/interaction/abstractInteraction.d.ts +5 -4
- package/dist/src/interaction/abstractInteraction.js +1 -1
- package/dist/src/interaction/abstractInteraction.js.map +1 -1
- package/dist/src/interaction/coordinateAtPixel.js +23 -0
- package/dist/src/interaction/coordinateAtPixel.js.map +1 -1
- package/dist/src/interaction/eventHandler.d.ts +4 -3
- package/dist/src/interaction/eventHandler.js +1 -1
- package/dist/src/interaction/eventHandler.js.map +1 -1
- package/dist/src/interaction/featureAtPixelInteraction.d.ts +5 -0
- package/dist/src/interaction/featureAtPixelInteraction.js +7 -4
- package/dist/src/interaction/featureAtPixelInteraction.js.map +1 -1
- package/dist/src/interaction/featureProviderInteraction.js.map +1 -1
- package/dist/src/interaction/interactionType.js +1 -0
- package/dist/src/interaction/interactionType.js.map +1 -1
- package/dist/src/interaction/panoramaFeatureHighlight.d.ts +29 -0
- package/dist/src/interaction/panoramaFeatureHighlight.js +88 -0
- package/dist/src/interaction/panoramaFeatureHighlight.js.map +1 -0
- package/dist/src/interaction/panoramaImageSelection.d.ts +8 -0
- package/dist/src/interaction/panoramaImageSelection.js +29 -0
- package/dist/src/interaction/panoramaImageSelection.js.map +1 -0
- package/dist/src/layer/cesium/cesiumTilesetCesiumImpl.d.ts +6 -5
- package/dist/src/layer/cesium/cesiumTilesetCesiumImpl.js +2 -2
- package/dist/src/layer/cesium/cesiumTilesetCesiumImpl.js.map +1 -1
- package/dist/src/layer/cesium/cogCesiumImpl.d.ts +14 -0
- package/dist/src/layer/cesium/cogCesiumImpl.js +28 -0
- package/dist/src/layer/cesium/cogCesiumImpl.js.map +1 -0
- package/dist/src/layer/cesium/cogImageryProvider.d.ts +31 -0
- package/dist/src/layer/cesium/cogImageryProvider.js +258 -0
- package/dist/src/layer/cesium/cogImageryProvider.js.map +1 -0
- package/dist/src/layer/cesium/dataSourceCesiumImpl.d.ts +3 -2
- package/dist/src/layer/cesium/dataSourceCesiumImpl.js.map +1 -1
- package/dist/src/layer/cesium/resourceHelper.js +0 -1
- package/dist/src/layer/cesium/resourceHelper.js.map +1 -1
- package/dist/src/layer/cesium/sourceVectorContextSync.d.ts +2 -2
- package/dist/src/layer/cesium/sourceVectorContextSync.js +1 -1
- package/dist/src/layer/cesium/sourceVectorContextSync.js.map +1 -1
- package/dist/src/layer/cesium/terrainCesiumImpl.d.ts +1 -1
- package/dist/src/layer/cesium/vcsTile/vcsChildTile.d.ts +3 -2
- package/dist/src/layer/cesium/vcsTile/vcsChildTile.js +1 -1
- package/dist/src/layer/cesium/vcsTile/vcsChildTile.js.map +1 -1
- package/dist/src/layer/cesium/vcsTile/vcsDebugTile.d.ts +3 -2
- package/dist/src/layer/cesium/vcsTile/vcsDebugTile.js +1 -1
- package/dist/src/layer/cesium/vcsTile/vcsDebugTile.js.map +1 -1
- package/dist/src/layer/cesium/vcsTile/vcsNoDataTile.d.ts +3 -2
- package/dist/src/layer/cesium/vcsTile/vcsNoDataTile.js +1 -1
- package/dist/src/layer/cesium/vcsTile/vcsNoDataTile.js.map +1 -1
- package/dist/src/layer/cesium/vcsTile/vcsQuadtreeTileProvider.d.ts +6 -5
- package/dist/src/layer/cesium/vcsTile/vcsQuadtreeTileProvider.js +4 -4
- package/dist/src/layer/cesium/vcsTile/vcsQuadtreeTileProvider.js.map +1 -1
- package/dist/src/layer/cesium/vcsTile/vcsTileHelpers.d.ts +6 -5
- package/dist/src/layer/cesium/vcsTile/vcsTileHelpers.js.map +1 -1
- package/dist/src/layer/cesium/vcsTile/vcsVectorTile.d.ts +3 -2
- package/dist/src/layer/cesium/vcsTile/vcsVectorTile.js +1 -1
- package/dist/src/layer/cesium/vcsTile/vcsVectorTile.js.map +1 -1
- package/dist/src/layer/cesium/vectorCesiumImpl.js +1 -1
- package/dist/src/layer/cesium/vectorCesiumImpl.js.map +1 -1
- package/dist/src/layer/cesium/vectorContext.d.ts +9 -8
- package/dist/src/layer/cesium/vectorContext.js +6 -5
- package/dist/src/layer/cesium/vectorContext.js.map +1 -1
- package/dist/src/layer/cesium/vectorRasterTileCesiumImpl.d.ts +1 -1
- package/dist/src/layer/cesium/vectorRasterTileCesiumImpl.js +1 -1
- package/dist/src/layer/cesium/vectorRasterTileCesiumImpl.js.map +1 -1
- package/dist/src/layer/cesium/vectorTileCesiumImpl.d.ts +3 -3
- package/dist/src/layer/cesium/vectorTileCesiumImpl.js +2 -1
- package/dist/src/layer/cesium/vectorTileCesiumImpl.js.map +1 -1
- package/dist/src/layer/cesium/vectorTileImageryProvider.d.ts +1 -1
- package/dist/src/layer/cesium/vectorTileImageryProvider.js +3 -2
- package/dist/src/layer/cesium/vectorTileImageryProvider.js.map +1 -1
- package/dist/src/layer/cesium/wmsCesiumImpl.js +3 -2
- package/dist/src/layer/cesium/wmsCesiumImpl.js.map +1 -1
- package/dist/src/layer/cesiumTilesetLayer.d.ts +6 -4
- package/dist/src/layer/cesiumTilesetLayer.js.map +1 -1
- package/dist/src/layer/cogLayer.d.ts +37 -0
- package/dist/src/layer/cogLayer.js +119 -0
- package/dist/src/layer/cogLayer.js.map +1 -0
- package/dist/src/layer/czmlLayer.js.map +1 -1
- package/dist/src/layer/dataSourceLayer.d.ts +4 -2
- package/dist/src/layer/dataSourceLayer.js +1 -1
- package/dist/src/layer/dataSourceLayer.js.map +1 -1
- package/dist/src/layer/featureLayer.d.ts +4 -2
- package/dist/src/layer/featureLayer.js.map +1 -1
- package/dist/src/layer/featureStoreFeatureVisibility.d.ts +2 -1
- package/dist/src/layer/featureStoreFeatureVisibility.js.map +1 -1
- package/dist/src/layer/featureStoreLayer.d.ts +8 -6
- package/dist/src/layer/featureStoreLayer.js +2 -2
- package/dist/src/layer/featureStoreLayer.js.map +1 -1
- package/dist/src/layer/featureStoreLayerChanges.d.ts +1 -1
- package/dist/src/layer/featureStoreLayerChanges.js.map +1 -1
- package/dist/src/layer/featureVisibility.d.ts +2 -1
- package/dist/src/layer/featureVisibility.js.map +1 -1
- package/dist/src/layer/flatGeobufHelpers.d.ts +18 -3
- package/dist/src/layer/flatGeobufHelpers.js +21 -1
- package/dist/src/layer/flatGeobufHelpers.js.map +1 -1
- package/dist/src/layer/flatGeobufLayer.d.ts +2 -1
- package/dist/src/layer/flatGeobufLayer.js.map +1 -1
- package/dist/src/layer/geojsonHelpers.d.ts +1 -1
- package/dist/src/layer/geojsonHelpers.js +8 -6
- package/dist/src/layer/geojsonHelpers.js.map +1 -1
- package/dist/src/layer/geojsonLayer.d.ts +2 -1
- package/dist/src/layer/geojsonLayer.js +3 -1
- package/dist/src/layer/geojsonLayer.js.map +1 -1
- package/dist/src/layer/globalHider.d.ts +1 -1
- package/dist/src/layer/globalHider.js.map +1 -1
- package/dist/src/layer/layer.d.ts +9 -7
- package/dist/src/layer/layer.js +1 -1
- package/dist/src/layer/layer.js.map +1 -1
- package/dist/src/layer/oblique/obliqueHelpers.js +2 -0
- package/dist/src/layer/oblique/obliqueHelpers.js.map +1 -1
- package/dist/src/layer/oblique/sourceObliqueSync.d.ts +1 -1
- package/dist/src/layer/oblique/sourceObliqueSync.js +7 -7
- package/dist/src/layer/oblique/sourceObliqueSync.js.map +1 -1
- package/dist/src/layer/oblique/vectorObliqueImpl.d.ts +2 -2
- package/dist/src/layer/oblique/vectorObliqueImpl.js +3 -3
- package/dist/src/layer/oblique/vectorObliqueImpl.js.map +1 -1
- package/dist/src/layer/openStreetMapLayer.d.ts +5 -4
- package/dist/src/layer/openStreetMapLayer.js +1 -1
- package/dist/src/layer/openStreetMapLayer.js.map +1 -1
- package/dist/src/layer/openlayers/cogOpenlayersImpl.d.ts +23 -0
- package/dist/src/layer/openlayers/cogOpenlayersImpl.js +54 -0
- package/dist/src/layer/openlayers/cogOpenlayersImpl.js.map +1 -0
- package/dist/src/layer/openlayers/layerOpenlayersImpl.d.ts +4 -2
- package/dist/src/layer/openlayers/layerOpenlayersImpl.js +5 -4
- package/dist/src/layer/openlayers/layerOpenlayersImpl.js.map +1 -1
- package/dist/src/layer/openlayers/loadFunctionHelpers.js +0 -1
- package/dist/src/layer/openlayers/loadFunctionHelpers.js.map +1 -1
- package/dist/src/layer/openlayers/tileDebugOpenlayersImpl.d.ts +1 -1
- package/dist/src/layer/openlayers/tileDebugOpenlayersImpl.js +2 -2
- package/dist/src/layer/openlayers/tileDebugOpenlayersImpl.js.map +1 -1
- package/dist/src/layer/openlayers/vectorOpenlayersImpl.js +1 -1
- package/dist/src/layer/openlayers/vectorOpenlayersImpl.js.map +1 -1
- package/dist/src/layer/openlayers/vectorTileOpenlayersImpl.js +1 -1
- package/dist/src/layer/openlayers/vectorTileOpenlayersImpl.js.map +1 -1
- package/dist/src/layer/openlayers/wmsOpenlayersImpl.d.ts +1 -1
- package/dist/src/layer/panorama/panoramaDatasetPanoramaImpl.d.ts +13 -0
- package/dist/src/layer/panorama/panoramaDatasetPanoramaImpl.js +34 -0
- package/dist/src/layer/panorama/panoramaDatasetPanoramaImpl.js.map +1 -0
- package/dist/src/layer/panorama/vectorTilePanoramaImpl.d.ts +28 -0
- package/dist/src/layer/panorama/vectorTilePanoramaImpl.js +114 -0
- package/dist/src/layer/panorama/vectorTilePanoramaImpl.js.map +1 -0
- package/dist/src/layer/panoramaDatasetLayer.d.ts +53 -0
- package/dist/src/layer/panoramaDatasetLayer.js +192 -0
- package/dist/src/layer/panoramaDatasetLayer.js.map +1 -0
- package/dist/src/layer/pointCloudLayer.d.ts +8 -5
- package/dist/src/layer/pointCloudLayer.js +1 -1
- package/dist/src/layer/pointCloudLayer.js.map +1 -1
- package/dist/src/layer/rasterLayer.d.ts +6 -4
- package/dist/src/layer/rasterLayer.js.map +1 -1
- package/dist/src/layer/singleImageLayer.d.ts +3 -2
- package/dist/src/layer/singleImageLayer.js.map +1 -1
- package/dist/src/layer/terrainHelpers.d.ts +1 -1
- package/dist/src/layer/terrainHelpers.js.map +1 -1
- package/dist/src/layer/terrainLayer.d.ts +3 -2
- package/dist/src/layer/terrainLayer.js.map +1 -1
- package/dist/src/layer/tileLoadedHelper.d.ts +2 -2
- package/dist/src/layer/tileProvider/flatGeobufTileProvider.d.ts +7 -4
- package/dist/src/layer/tileProvider/flatGeobufTileProvider.js +10 -2
- package/dist/src/layer/tileProvider/flatGeobufTileProvider.js.map +1 -1
- package/dist/src/layer/tileProvider/mvtTileProvider.d.ts +3 -2
- package/dist/src/layer/tileProvider/mvtTileProvider.js +3 -3
- package/dist/src/layer/tileProvider/mvtTileProvider.js.map +1 -1
- package/dist/src/layer/tileProvider/staticFeatureTileProvider.d.ts +3 -2
- package/dist/src/layer/tileProvider/staticFeatureTileProvider.js +0 -1
- package/dist/src/layer/tileProvider/staticFeatureTileProvider.js.map +1 -1
- package/dist/src/layer/tileProvider/staticGeojsonTileProvider.d.ts +2 -1
- package/dist/src/layer/tileProvider/staticGeojsonTileProvider.js +0 -1
- package/dist/src/layer/tileProvider/staticGeojsonTileProvider.js.map +1 -1
- package/dist/src/layer/tileProvider/tileProvider.d.ts +3 -2
- package/dist/src/layer/tileProvider/tileProvider.js +10 -3
- package/dist/src/layer/tileProvider/tileProvider.js.map +1 -1
- package/dist/src/layer/tileProvider/urlTemplateTileProvider.d.ts +2 -1
- package/dist/src/layer/tileProvider/urlTemplateTileProvider.js.map +1 -1
- package/dist/src/layer/tmsLayer.d.ts +3 -2
- package/dist/src/layer/tmsLayer.js +1 -1
- package/dist/src/layer/tmsLayer.js.map +1 -1
- package/dist/src/layer/vectorHelpers.d.ts +2 -2
- package/dist/src/layer/vectorHelpers.js +1 -1
- package/dist/src/layer/vectorHelpers.js.map +1 -1
- package/dist/src/layer/vectorLayer.d.ts +12 -8
- package/dist/src/layer/vectorLayer.js +1 -1
- package/dist/src/layer/vectorLayer.js.map +1 -1
- package/dist/src/layer/vectorProperties.d.ts +3 -3
- package/dist/src/layer/vectorProperties.js +4 -0
- package/dist/src/layer/vectorProperties.js.map +1 -1
- package/dist/src/layer/vectorSymbols.d.ts +8 -0
- package/dist/src/layer/vectorSymbols.js +8 -0
- package/dist/src/layer/vectorSymbols.js.map +1 -1
- package/dist/src/layer/vectorTileLayer.d.ts +17 -10
- package/dist/src/layer/vectorTileLayer.js +8 -1
- package/dist/src/layer/vectorTileLayer.js.map +1 -1
- package/dist/src/layer/wfsLayer.d.ts +2 -1
- package/dist/src/layer/wfsLayer.js +6 -4
- package/dist/src/layer/wfsLayer.js.map +1 -1
- package/dist/src/layer/wmsHelpers.js +2 -2
- package/dist/src/layer/wmsHelpers.js.map +1 -1
- package/dist/src/layer/wmsLayer.d.ts +4 -3
- package/dist/src/layer/wmsLayer.js.map +1 -1
- package/dist/src/layer/wmtsLayer.d.ts +3 -2
- package/dist/src/layer/wmtsLayer.js +1 -1
- package/dist/src/layer/wmtsLayer.js.map +1 -1
- package/dist/src/map/baseOLMap.d.ts +1 -1
- package/dist/src/map/baseOLMap.js +17 -8
- package/dist/src/map/baseOLMap.js.map +1 -1
- package/dist/src/map/cameraLimiter.d.ts +2 -1
- package/dist/src/map/cameraLimiter.js.map +1 -1
- package/dist/src/map/cesiumMap.d.ts +5 -7
- package/dist/src/map/cesiumMap.js +27 -186
- package/dist/src/map/cesiumMap.js.map +1 -1
- package/dist/src/map/cesiumMapHelpers.d.ts +7 -0
- package/dist/src/map/cesiumMapHelpers.js +144 -0
- package/dist/src/map/cesiumMapHelpers.js.map +1 -0
- package/dist/src/map/navigation/cameraHelper.d.ts +3 -2
- package/dist/src/map/navigation/cameraHelper.js.map +1 -1
- package/dist/src/map/navigation/cesiumNavigation.d.ts +4 -3
- package/dist/src/map/navigation/cesiumNavigation.js.map +1 -1
- package/dist/src/map/navigation/controller/controller.d.ts +1 -1
- package/dist/src/map/navigation/controller/controller.js +2 -2
- package/dist/src/map/navigation/controller/controller.js.map +1 -1
- package/dist/src/map/navigation/controller/keyboardController.d.ts +3 -2
- package/dist/src/map/navigation/controller/keyboardController.js +4 -2
- package/dist/src/map/navigation/controller/keyboardController.js.map +1 -1
- package/dist/src/map/navigation/easingHelper.d.ts +1 -1
- package/dist/src/map/navigation/easingHelper.js +1 -1
- package/dist/src/map/navigation/easingHelper.js.map +1 -1
- package/dist/src/map/navigation/navigation.d.ts +6 -6
- package/dist/src/map/navigation/navigation.js +6 -2
- package/dist/src/map/navigation/navigation.js.map +1 -1
- package/dist/src/map/navigation/navigationImpl.d.ts +2 -2
- package/dist/src/map/navigation/obliqueNavigation.d.ts +4 -3
- package/dist/src/map/navigation/obliqueNavigation.js +3 -1
- package/dist/src/map/navigation/obliqueNavigation.js.map +1 -1
- package/dist/src/map/navigation/openlayersNavigation.d.ts +4 -3
- package/dist/src/map/navigation/openlayersNavigation.js.map +1 -1
- package/dist/src/map/navigation/viewHelper.d.ts +2 -2
- package/dist/src/map/navigation/viewHelper.js +0 -1
- package/dist/src/map/navigation/viewHelper.js.map +1 -1
- package/dist/src/map/obliqueMap.d.ts +3 -3
- package/dist/src/map/obliqueMap.js +1 -1
- package/dist/src/map/obliqueMap.js.map +1 -1
- package/dist/src/map/panoramaMap.d.ts +98 -0
- package/dist/src/map/panoramaMap.js +298 -0
- package/dist/src/map/panoramaMap.js.map +1 -0
- package/dist/src/map/vcsMap.d.ts +3 -3
- package/dist/src/map/vcsMap.js +17 -11
- package/dist/src/map/vcsMap.js.map +1 -1
- package/dist/src/moduleIdSymbol.js +0 -1
- package/dist/src/moduleIdSymbol.js.map +1 -1
- package/dist/src/oblique/defaultObliqueCollection.js +3 -1
- package/dist/src/oblique/defaultObliqueCollection.js.map +1 -1
- package/dist/src/oblique/helpers.d.ts +1 -1
- package/dist/src/oblique/helpers.js +1 -1
- package/dist/src/oblique/helpers.js.map +1 -1
- package/dist/src/oblique/obliqueCollection.d.ts +3 -2
- package/dist/src/oblique/obliqueCollection.js.map +1 -1
- package/dist/src/oblique/obliqueDataSet.d.ts +2 -1
- package/dist/src/oblique/obliqueDataSet.js.map +1 -1
- package/dist/src/oblique/obliqueImage.d.ts +1 -1
- package/dist/src/oblique/obliqueProvider.d.ts +1 -1
- package/dist/src/oblique/obliqueProvider.js.map +1 -1
- package/dist/src/oblique/obliqueView.js +1 -0
- package/dist/src/oblique/obliqueView.js.map +1 -1
- package/dist/src/oblique/parseImageJson.js +2 -3
- package/dist/src/oblique/parseImageJson.js.map +1 -1
- package/dist/src/ol/feature.js.map +1 -1
- package/dist/src/ol/geom/circle.js.map +1 -1
- package/dist/src/ol/render/canvas/canvasTileRenderer.js +0 -1
- package/dist/src/ol/render/canvas/canvasTileRenderer.js.map +1 -1
- package/dist/src/ol/source/ClusterEnhancedVectorSource.d.ts +1 -1
- package/dist/src/ol/source/VcsCluster.d.ts +3 -3
- package/dist/src/ol/source/VcsCluster.js.map +1 -1
- package/dist/src/overrideClassRegistry.d.ts +3 -3
- package/dist/src/overrideClassRegistry.js +1 -0
- package/dist/src/overrideClassRegistry.js.map +1 -1
- package/dist/src/panorama/fieldOfView.d.ts +57 -0
- package/dist/src/panorama/fieldOfView.js +135 -0
- package/dist/src/panorama/fieldOfView.js.map +1 -0
- package/dist/src/panorama/panoramaCameraController.d.ts +35 -0
- package/dist/src/panorama/panoramaCameraController.js +146 -0
- package/dist/src/panorama/panoramaCameraController.js.map +1 -0
- package/dist/src/panorama/panoramaImage.d.ts +135 -0
- package/dist/src/panorama/panoramaImage.js +269 -0
- package/dist/src/panorama/panoramaImage.js.map +1 -0
- package/dist/src/panorama/panoramaImageView.d.ts +25 -0
- package/dist/src/panorama/panoramaImageView.js +328 -0
- package/dist/src/panorama/panoramaImageView.js.map +1 -0
- package/dist/src/panorama/panoramaTile.d.ts +23 -0
- package/dist/src/panorama/panoramaTile.js +101 -0
- package/dist/src/panorama/panoramaTile.js.map +1 -0
- package/dist/src/panorama/panoramaTileCache.d.ts +16 -0
- package/dist/src/panorama/panoramaTileCache.js +34 -0
- package/dist/src/panorama/panoramaTileCache.js.map +1 -0
- package/dist/src/panorama/panoramaTileCoordinate.d.ts +56 -0
- package/dist/src/panorama/panoramaTileCoordinate.js +110 -0
- package/dist/src/panorama/panoramaTileCoordinate.js.map +1 -0
- package/dist/src/panorama/panoramaTileMaterial.d.ts +96 -0
- package/dist/src/panorama/panoramaTileMaterial.js +213 -0
- package/dist/src/panorama/panoramaTileMaterial.js.map +1 -0
- package/dist/src/panorama/panoramaTileMaterialFS.shader.d.ts +2 -0
- package/dist/src/panorama/panoramaTileMaterialFS.shader.js +170 -0
- package/dist/src/panorama/panoramaTileMaterialFS.shader.js.map +1 -0
- package/dist/src/panorama/panoramaTilePrimitiveCollection.d.ts +31 -0
- package/dist/src/panorama/panoramaTilePrimitiveCollection.js +113 -0
- package/dist/src/panorama/panoramaTilePrimitiveCollection.js.map +1 -0
- package/dist/src/panorama/panoramaTileProvider.d.ts +67 -0
- package/dist/src/panorama/panoramaTileProvider.js +312 -0
- package/dist/src/panorama/panoramaTileProvider.js.map +1 -0
- package/dist/src/panorama/sphericalCoordinates.d.ts +20 -0
- package/dist/src/panorama/sphericalCoordinates.js +78 -0
- package/dist/src/panorama/sphericalCoordinates.js.map +1 -0
- package/dist/src/style/arrowStyle.d.ts +1 -1
- package/dist/src/style/arrowStyle.js.map +1 -1
- package/dist/src/style/declarativeStyleItem.d.ts +1 -1
- package/dist/src/style/declarativeStyleItem.js +12 -14
- package/dist/src/style/declarativeStyleItem.js.map +1 -1
- package/dist/src/style/styleFactory.d.ts +2 -2
- package/dist/src/style/styleFactory.js +1 -2
- package/dist/src/style/styleFactory.js.map +1 -1
- package/dist/src/style/styleHelpers.d.ts +2 -2
- package/dist/src/style/styleHelpers.js +6 -6
- package/dist/src/style/styleHelpers.js.map +1 -1
- package/dist/src/style/styleItem.d.ts +4 -2
- package/dist/src/style/styleItem.js +3 -1
- package/dist/src/style/styleItem.js.map +1 -1
- package/dist/src/style/vectorStyleItem.d.ts +7 -5
- package/dist/src/style/vectorStyleItem.js +9 -19
- package/dist/src/style/vectorStyleItem.js.map +1 -1
- package/dist/src/style/writeStyle.d.ts +2 -2
- package/dist/src/style/writeStyle.js.map +1 -1
- package/dist/src/util/clipping/clippingObject.js.map +1 -1
- package/dist/src/util/clipping/clippingObjectManager.js.map +1 -1
- package/dist/src/util/clipping/clippingPolygonHelper.d.ts +2 -1
- package/dist/src/util/clipping/clippingPolygonHelper.js.map +1 -1
- package/dist/src/util/clipping/clippingPolygonObject.d.ts +4 -3
- package/dist/src/util/clipping/clippingPolygonObject.js.map +1 -1
- package/dist/src/util/clipping/clippingPolygonObjectCollection.d.ts +3 -4
- package/dist/src/util/clipping/clippingPolygonObjectCollection.js +37 -11
- package/dist/src/util/clipping/clippingPolygonObjectCollection.js.map +1 -1
- package/dist/src/util/collection.js.map +1 -1
- package/dist/src/util/createAbsoluteFeature.d.ts +4 -0
- package/dist/src/util/createAbsoluteFeature.js +98 -0
- package/dist/src/util/createAbsoluteFeature.js.map +1 -0
- package/dist/src/util/displayQuality/displayQuality.d.ts +3 -5
- package/dist/src/util/displayQuality/displayQuality.js +4 -5
- package/dist/src/util/displayQuality/displayQuality.js.map +1 -1
- package/dist/src/util/editor/createFeatureSession.d.ts +4 -3
- package/dist/src/util/editor/createFeatureSession.js.map +1 -1
- package/dist/src/util/editor/editFeaturesSession.d.ts +2 -1
- package/dist/src/util/editor/editFeaturesSession.js +3 -1
- package/dist/src/util/editor/editFeaturesSession.js.map +1 -1
- package/dist/src/util/editor/editGeometrySession.d.ts +3 -2
- package/dist/src/util/editor/editGeometrySession.js.map +1 -1
- package/dist/src/util/editor/editorHelpers.d.ts +5 -4
- package/dist/src/util/editor/editorHelpers.js +4 -0
- package/dist/src/util/editor/editorHelpers.js.map +1 -1
- package/dist/src/util/editor/editorSessionHelpers.d.ts +3 -3
- package/dist/src/util/editor/editorSessionHelpers.js.map +1 -1
- package/dist/src/util/editor/interactions/createCircleInteraction.d.ts +2 -1
- package/dist/src/util/editor/interactions/createCircleInteraction.js.map +1 -1
- package/dist/src/util/editor/interactions/createLineStringInteraction.d.ts +3 -2
- package/dist/src/util/editor/interactions/createLineStringInteraction.js.map +1 -1
- package/dist/src/util/editor/interactions/createPointInteraction.d.ts +3 -2
- package/dist/src/util/editor/interactions/createPointInteraction.js.map +1 -1
- package/dist/src/util/editor/interactions/createPolygonInteraction.d.ts +3 -2
- package/dist/src/util/editor/interactions/createPolygonInteraction.js.map +1 -1
- package/dist/src/util/editor/interactions/creationSnapping.d.ts +2 -2
- package/dist/src/util/editor/interactions/creationSnapping.js +1 -1
- package/dist/src/util/editor/interactions/creationSnapping.js.map +1 -1
- package/dist/src/util/editor/interactions/editFeaturesMouseOverInteraction.d.ts +2 -1
- package/dist/src/util/editor/interactions/editFeaturesMouseOverInteraction.js.map +1 -1
- package/dist/src/util/editor/interactions/editGeometryMouseOverInteraction.d.ts +2 -1
- package/dist/src/util/editor/interactions/editGeometryMouseOverInteraction.js.map +1 -1
- package/dist/src/util/editor/interactions/ensureHandlerSelectionInteraction.d.ts +2 -1
- package/dist/src/util/editor/interactions/ensureHandlerSelectionInteraction.js.map +1 -1
- package/dist/src/util/editor/interactions/insertVertexInteraction.d.ts +3 -2
- package/dist/src/util/editor/interactions/insertVertexInteraction.js.map +1 -1
- package/dist/src/util/editor/interactions/layerSnapping.d.ts +4 -4
- package/dist/src/util/editor/interactions/layerSnapping.js +1 -1
- package/dist/src/util/editor/interactions/layerSnapping.js.map +1 -1
- package/dist/src/util/editor/interactions/mapInteractionController.d.ts +2 -1
- package/dist/src/util/editor/interactions/mapInteractionController.js +1 -0
- package/dist/src/util/editor/interactions/mapInteractionController.js.map +1 -1
- package/dist/src/util/editor/interactions/removeVertexInteraction.d.ts +3 -2
- package/dist/src/util/editor/interactions/removeVertexInteraction.js.map +1 -1
- package/dist/src/util/editor/interactions/rightClickInteraction.d.ts +2 -1
- package/dist/src/util/editor/interactions/rightClickInteraction.js.map +1 -1
- package/dist/src/util/editor/interactions/segmentLengthInteraction.d.ts +2 -1
- package/dist/src/util/editor/interactions/segmentLengthInteraction.js.map +1 -1
- package/dist/src/util/editor/interactions/selectFeatureMouseOverInteraction.d.ts +3 -2
- package/dist/src/util/editor/interactions/selectFeatureMouseOverInteraction.js +13 -13
- package/dist/src/util/editor/interactions/selectFeatureMouseOverInteraction.js.map +1 -1
- package/dist/src/util/editor/interactions/selectMultiFeatureInteraction.d.ts +3 -3
- package/dist/src/util/editor/interactions/selectMultiFeatureInteraction.js +1 -1
- package/dist/src/util/editor/interactions/selectMultiFeatureInteraction.js.map +1 -1
- package/dist/src/util/editor/interactions/selectSingleFeatureInteraction.d.ts +2 -1
- package/dist/src/util/editor/interactions/selectSingleFeatureInteraction.js +1 -1
- package/dist/src/util/editor/interactions/selectSingleFeatureInteraction.js.map +1 -1
- package/dist/src/util/editor/interactions/translateVertexInteraction.d.ts +3 -2
- package/dist/src/util/editor/interactions/translateVertexInteraction.js.map +1 -1
- package/dist/src/util/editor/interactions/translationSnapping.d.ts +2 -2
- package/dist/src/util/editor/interactions/translationSnapping.js +1 -1
- package/dist/src/util/editor/interactions/translationSnapping.js.map +1 -1
- package/dist/src/util/editor/selectFeaturesSession.d.ts +3 -2
- package/dist/src/util/editor/selectFeaturesSession.js +1 -1
- package/dist/src/util/editor/selectFeaturesSession.js.map +1 -1
- package/dist/src/util/editor/snappingHelpers.d.ts +3 -3
- package/dist/src/util/editor/snappingHelpers.js.map +1 -1
- package/dist/src/util/editor/transformation/create2DHandlers.d.ts +2 -1
- package/dist/src/util/editor/transformation/create2DHandlers.js.map +1 -1
- package/dist/src/util/editor/transformation/create3DHandlers.d.ts +3 -2
- package/dist/src/util/editor/transformation/create3DHandlers.js.map +1 -1
- package/dist/src/util/editor/transformation/extrudeInteraction.d.ts +3 -2
- package/dist/src/util/editor/transformation/extrudeInteraction.js +1 -1
- package/dist/src/util/editor/transformation/extrudeInteraction.js.map +1 -1
- package/dist/src/util/editor/transformation/rotateInteraction.d.ts +4 -2
- package/dist/src/util/editor/transformation/rotateInteraction.js +1 -1
- package/dist/src/util/editor/transformation/rotateInteraction.js.map +1 -1
- package/dist/src/util/editor/transformation/scaleInteraction.d.ts +3 -2
- package/dist/src/util/editor/transformation/scaleInteraction.js +1 -1
- package/dist/src/util/editor/transformation/scaleInteraction.js.map +1 -1
- package/dist/src/util/editor/transformation/transformationHandler.d.ts +2 -1
- package/dist/src/util/editor/transformation/transformationHandler.js +1 -1
- package/dist/src/util/editor/transformation/transformationHandler.js.map +1 -1
- package/dist/src/util/editor/transformation/translateInteraction.d.ts +3 -2
- package/dist/src/util/editor/transformation/translateInteraction.js +2 -2
- package/dist/src/util/editor/transformation/translateInteraction.js.map +1 -1
- package/dist/src/util/exclusiveManager.d.ts +1 -1
- package/dist/src/util/exclusiveManager.js.map +1 -1
- package/dist/src/util/featureconverter/arcToCesium.d.ts +1 -1
- package/dist/src/util/featureconverter/arcToCesium.js +1 -2
- package/dist/src/util/featureconverter/arcToCesium.js.map +1 -1
- package/dist/src/util/featureconverter/circleToCesium.d.ts +1 -1
- package/dist/src/util/featureconverter/circleToCesium.js +1 -1
- package/dist/src/util/featureconverter/circleToCesium.js.map +1 -1
- package/dist/src/util/featureconverter/clampedPrimitive.d.ts +2 -1
- package/dist/src/util/featureconverter/clampedPrimitive.js +0 -1
- package/dist/src/util/featureconverter/clampedPrimitive.js.map +1 -1
- package/dist/src/util/featureconverter/convert.d.ts +4 -3
- package/dist/src/util/featureconverter/convert.js +1 -1
- package/dist/src/util/featureconverter/convert.js.map +1 -1
- package/dist/src/util/featureconverter/extent3D.d.ts +2 -2
- package/dist/src/util/featureconverter/extent3D.js.map +1 -1
- package/dist/src/util/featureconverter/lineStringToCesium.d.ts +5 -5
- package/dist/src/util/featureconverter/lineStringToCesium.js +1 -2
- package/dist/src/util/featureconverter/lineStringToCesium.js.map +1 -1
- package/dist/src/util/featureconverter/pointHelpers.d.ts +6 -5
- package/dist/src/util/featureconverter/pointHelpers.js +2 -3
- package/dist/src/util/featureconverter/pointHelpers.js.map +1 -1
- package/dist/src/util/featureconverter/pointToCesium.d.ts +6 -11
- package/dist/src/util/featureconverter/pointToCesium.js +3 -20
- package/dist/src/util/featureconverter/pointToCesium.js.map +1 -1
- package/dist/src/util/featureconverter/polygonToCesium.d.ts +1 -1
- package/dist/src/util/featureconverter/polygonToCesium.js +1 -1
- package/dist/src/util/featureconverter/polygonToCesium.js.map +1 -1
- package/dist/src/util/featureconverter/storeyHelpers.d.ts +2 -2
- package/dist/src/util/featureconverter/vectorGeometryFactory.d.ts +2 -2
- package/dist/src/util/featureconverter/vectorGeometryFactory.js.map +1 -1
- package/dist/src/util/featureconverter/vectorHeightInfo.d.ts +8 -2
- package/dist/src/util/featureconverter/vectorHeightInfo.js +17 -0
- package/dist/src/util/featureconverter/vectorHeightInfo.js.map +1 -1
- package/dist/src/util/flight/flightAnchor.js +4 -3
- package/dist/src/util/flight/flightAnchor.js.map +1 -1
- package/dist/src/util/flight/flightCollection.d.ts +2 -2
- package/dist/src/util/flight/flightCollection.js.map +1 -1
- package/dist/src/util/flight/flightHelpers.d.ts +1 -1
- package/dist/src/util/flight/flightInstance.d.ts +3 -2
- package/dist/src/util/flight/flightInstance.js.map +1 -1
- package/dist/src/util/flight/flightPlayer.js +1 -1
- package/dist/src/util/flight/flightPlayer.js.map +1 -1
- package/dist/src/util/flight/flightRecorder.d.ts +10 -0
- package/dist/src/util/flight/flightRecorder.js +172 -0
- package/dist/src/util/flight/flightRecorder.js.map +1 -0
- package/dist/src/util/flight/flightVisualizer.d.ts +1 -1
- package/dist/src/util/flight/flightVisualizer.js.map +1 -1
- package/dist/src/util/geometryHelpers.d.ts +3 -5
- package/dist/src/util/geometryHelpers.js +0 -91
- package/dist/src/util/geometryHelpers.js.map +1 -1
- package/dist/src/util/hiddenObjects.d.ts +2 -2
- package/dist/src/util/hiddenObjects.js +0 -1
- package/dist/src/util/hiddenObjects.js.map +1 -1
- package/dist/src/util/indexedCollection.js.map +1 -1
- package/dist/src/util/isMobile.js +3 -2
- package/dist/src/util/isMobile.js.map +1 -1
- package/dist/src/util/layerCollection.d.ts +6 -1
- package/dist/src/util/layerCollection.js +5 -1
- package/dist/src/util/layerCollection.js.map +1 -1
- package/dist/src/util/locale.js +0 -1
- package/dist/src/util/locale.js.map +1 -1
- package/dist/src/util/mapCollection.d.ts +9 -4
- package/dist/src/util/mapCollection.js +67 -34
- package/dist/src/util/mapCollection.js.map +1 -1
- package/dist/src/util/math.d.ts +4 -1
- package/dist/src/util/math.js +20 -1
- package/dist/src/util/math.js.map +1 -1
- package/dist/src/util/overrideCollection.d.ts +1 -1
- package/dist/src/util/overrideCollection.js +3 -1
- package/dist/src/util/overrideCollection.js.map +1 -1
- package/dist/src/util/projection.d.ts +1 -1
- package/dist/src/util/projection.js +2 -2
- package/dist/src/util/projection.js.map +1 -1
- package/dist/src/util/renderScreenshot.d.ts +1 -1
- package/dist/src/util/rotation.d.ts +4 -3
- package/dist/src/util/rotation.js +1 -1
- package/dist/src/util/rotation.js.map +1 -1
- package/dist/src/util/urlHelpers.js +0 -1
- package/dist/src/util/urlHelpers.js.map +1 -1
- package/dist/src/util/vcsTemplate.js +2 -4
- package/dist/src/util/vcsTemplate.js.map +1 -1
- package/dist/src/util/viewpoint.d.ts +6 -2
- package/dist/src/util/viewpoint.js +11 -1
- package/dist/src/util/viewpoint.js.map +1 -1
- package/dist/src/vcsApp.d.ts +7 -6
- package/dist/src/vcsApp.js +20 -14
- package/dist/src/vcsApp.js.map +1 -1
- package/dist/src/vcsEvent.js.map +1 -1
- package/dist/src/vcsModuleHelpers.js +3 -3
- package/dist/src/vcsModuleHelpers.js.map +1 -1
- package/dist/src/vectorCluster/vectorClusterCesiumContext.d.ts +4 -4
- package/dist/src/vectorCluster/vectorClusterCesiumContext.js +1 -1
- package/dist/src/vectorCluster/vectorClusterCesiumContext.js.map +1 -1
- package/dist/src/vectorCluster/vectorClusterGroup.d.ts +9 -6
- package/dist/src/vectorCluster/vectorClusterGroup.js +17 -5
- package/dist/src/vectorCluster/vectorClusterGroup.js.map +1 -1
- package/dist/src/vectorCluster/vectorClusterGroupCesiumImpl.d.ts +2 -2
- package/dist/src/vectorCluster/vectorClusterGroupCesiumImpl.js +1 -1
- package/dist/src/vectorCluster/vectorClusterGroupCesiumImpl.js.map +1 -1
- package/dist/src/vectorCluster/vectorClusterGroupCollection.d.ts +1 -1
- package/dist/src/vectorCluster/vectorClusterGroupImpl.d.ts +5 -5
- package/dist/src/vectorCluster/vectorClusterGroupObliqueImpl.d.ts +2 -2
- package/dist/src/vectorCluster/vectorClusterGroupObliqueImpl.js +1 -1
- package/dist/src/vectorCluster/vectorClusterGroupObliqueImpl.js.map +1 -1
- package/dist/src/vectorCluster/vectorClusterGroupOpenlayersImpl.d.ts +2 -2
- package/dist/src/vectorCluster/vectorClusterStyleItem.d.ts +4 -3
- package/dist/src/vectorCluster/vectorClusterStyleItem.js.map +1 -1
- package/dist/src/vectorCluster/vectorClusterSymbols.js +0 -1
- package/dist/src/vectorCluster/vectorClusterSymbols.js.map +1 -1
- package/dist/src/workers/panoramaImageWorker.d.ts +1 -0
- package/dist/src/workers/panoramaImageWorker.js +34 -0
- package/dist/src/workers/panoramaImageWorker.js.map +1 -0
- package/dist/tests/data/cog/test_grey_world.tif +0 -0
- package/dist/tests/data/cog/test_rgb.tif +0 -0
- package/dist/tests/data/cog/test_rgb_world.tif +0 -0
- package/dist/tests/data/panorama/badOrientation.tif +0 -0
- package/dist/tests/data/panorama/badPosition.tif +0 -0
- package/dist/tests/data/panorama/lowOverview.tif +0 -0
- package/dist/tests/data/panorama/noVersionDepth.tif +0 -0
- package/dist/tests/data/panorama/noVersionRgb.tif +0 -0
- package/dist/tests/data/panorama/testDepthGeotiff.tif +0 -0
- package/dist/tests/data/panorama/testRgbGeotiff.tif +0 -0
- package/dist/tests/unit/helpers/cesiumHelpers.d.ts +6 -2
- package/dist/tests/unit/helpers/cesiumHelpers.js +15 -6
- package/dist/tests/unit/helpers/cesiumHelpers.js.map +1 -1
- package/dist/tests/unit/helpers/flatGeobufHelpers.d.ts +2 -0
- package/dist/tests/unit/helpers/flatGeobufHelpers.js +13 -0
- package/dist/tests/unit/helpers/flatGeobufHelpers.js.map +1 -0
- package/dist/tests/unit/helpers/helpers.d.ts +4 -0
- package/dist/tests/unit/helpers/helpers.js +26 -1
- package/dist/tests/unit/helpers/helpers.js.map +1 -1
- package/dist/tests/unit/helpers/panoramaHelpers.d.ts +30 -0
- package/dist/tests/unit/helpers/panoramaHelpers.js +76 -0
- package/dist/tests/unit/helpers/panoramaHelpers.js.map +1 -0
- package/index.ts +325 -279
- package/package.json +17 -49
- package/src/category/category.ts +9 -6
- package/src/category/categoryCollection.ts +4 -3
- package/src/cesium/cesium.d.ts +57 -18
- package/src/cesium/cesium3DTileFeature.ts +6 -7
- package/src/cesium/cesiumVcsCameraPrimitive.ts +6 -5
- package/src/cesium/entity.ts +1 -1
- package/src/classRegistry.ts +19 -18
- package/src/featureProvider/abstractFeatureProvider.ts +8 -4
- package/src/featureProvider/wmsFeatureProvider.ts +97 -23
- package/src/global.d.ts +6 -1
- package/src/interaction/abstractInteraction.ts +5 -5
- package/src/interaction/coordinateAtPixel.ts +37 -0
- package/src/interaction/eventHandler.ts +6 -8
- package/src/interaction/featureAtPixelInteraction.ts +24 -13
- package/src/interaction/featureProviderInteraction.ts +6 -7
- package/src/interaction/interactionType.ts +1 -0
- package/src/interaction/panoramaFeatureHighlight.ts +109 -0
- package/src/interaction/panoramaImageSelection.ts +37 -0
- package/src/layer/cesium/cesiumTilesetCesiumImpl.ts +14 -10
- package/src/layer/cesium/cogCesiumImpl.ts +36 -0
- package/src/layer/cesium/cogImageryProvider.ts +389 -0
- package/src/layer/cesium/dataSourceCesiumImpl.ts +8 -6
- package/src/layer/cesium/resourceHelper.ts +0 -1
- package/src/layer/cesium/sourceVectorContextSync.ts +4 -4
- package/src/layer/cesium/terrainCesiumImpl.ts +1 -1
- package/src/layer/cesium/vcsTile/vcsChildTile.ts +3 -3
- package/src/layer/cesium/vcsTile/vcsDebugTile.ts +5 -10
- package/src/layer/cesium/vcsTile/vcsNoDataTile.ts +3 -3
- package/src/layer/cesium/vcsTile/vcsQuadtreeTileProvider.ts +19 -17
- package/src/layer/cesium/vcsTile/vcsTileHelpers.ts +10 -8
- package/src/layer/cesium/vcsTile/vcsVectorTile.ts +7 -11
- package/src/layer/cesium/vectorCesiumImpl.ts +2 -4
- package/src/layer/cesium/vectorContext.ts +32 -25
- package/src/layer/cesium/vectorRasterTileCesiumImpl.ts +2 -2
- package/src/layer/cesium/vectorTileCesiumImpl.ts +5 -7
- package/src/layer/cesium/vectorTileImageryProvider.ts +4 -4
- package/src/layer/cesium/wmsCesiumImpl.ts +3 -2
- package/src/layer/cesiumTilesetLayer.ts +6 -8
- package/src/layer/cogLayer.ts +162 -0
- package/src/layer/czmlLayer.ts +2 -2
- package/src/layer/dataSourceLayer.ts +4 -6
- package/src/layer/featureLayer.ts +6 -4
- package/src/layer/featureStoreFeatureVisibility.ts +2 -1
- package/src/layer/featureStoreLayer.ts +18 -14
- package/src/layer/featureStoreLayerChanges.ts +7 -7
- package/src/layer/featureVisibility.ts +3 -2
- package/src/layer/flatGeobufHelpers.ts +46 -6
- package/src/layer/flatGeobufLayer.ts +2 -1
- package/src/layer/geojsonHelpers.ts +11 -8
- package/src/layer/geojsonLayer.ts +8 -5
- package/src/layer/globalHider.ts +5 -3
- package/src/layer/layer.ts +14 -14
- package/src/layer/oblique/obliqueHelpers.ts +2 -0
- package/src/layer/oblique/sourceObliqueSync.ts +9 -9
- package/src/layer/oblique/vectorObliqueImpl.ts +6 -8
- package/src/layer/openStreetMapLayer.ts +7 -8
- package/src/layer/openlayers/cogOpenlayersImpl.ts +75 -0
- package/src/layer/openlayers/layerOpenlayersImpl.ts +9 -7
- package/src/layer/openlayers/loadFunctionHelpers.ts +0 -1
- package/src/layer/openlayers/tileDebugOpenlayersImpl.ts +3 -3
- package/src/layer/openlayers/vectorOpenlayersImpl.ts +1 -1
- package/src/layer/openlayers/vectorTileOpenlayersImpl.ts +3 -3
- package/src/layer/openlayers/wmsOpenlayersImpl.ts +1 -1
- package/src/layer/panorama/panoramaDatasetPanoramaImpl.ts +49 -0
- package/src/layer/panorama/vectorTilePanoramaImpl.ts +163 -0
- package/src/layer/panoramaDatasetLayer.ts +272 -0
- package/src/layer/pointCloudLayer.ts +9 -12
- package/src/layer/rasterLayer.ts +6 -5
- package/src/layer/singleImageLayer.ts +3 -2
- package/src/layer/terrainHelpers.ts +2 -1
- package/src/layer/terrainLayer.ts +3 -2
- package/src/layer/tileLoadedHelper.ts +2 -2
- package/src/layer/tileProvider/flatGeobufTileProvider.ts +22 -10
- package/src/layer/tileProvider/mvtTileProvider.ts +4 -6
- package/src/layer/tileProvider/staticFeatureTileProvider.ts +3 -3
- package/src/layer/tileProvider/staticGeojsonTileProvider.ts +2 -2
- package/src/layer/tileProvider/tileProvider.ts +15 -10
- package/src/layer/tileProvider/urlTemplateTileProvider.ts +2 -1
- package/src/layer/tmsLayer.ts +3 -3
- package/src/layer/vectorHelpers.ts +3 -4
- package/src/layer/vectorLayer.ts +14 -15
- package/src/layer/vectorProperties.ts +27 -16
- package/src/layer/vectorSymbols.ts +10 -0
- package/src/layer/vectorTileLayer.ts +39 -29
- package/src/layer/wfsLayer.ts +10 -7
- package/src/layer/wmsHelpers.ts +2 -2
- package/src/layer/wmsLayer.ts +5 -5
- package/src/layer/wmtsLayer.ts +3 -3
- package/src/map/baseOLMap.ts +18 -9
- package/src/map/cameraLimiter.ts +1 -1
- package/src/map/cesiumMap.ts +49 -265
- package/src/map/cesiumMapHelpers.ts +219 -0
- package/src/map/navigation/cameraHelper.ts +2 -3
- package/src/map/navigation/cesiumNavigation.ts +5 -4
- package/src/map/navigation/controller/controller.ts +3 -6
- package/src/map/navigation/controller/keyboardController.ts +7 -7
- package/src/map/navigation/easingHelper.ts +2 -5
- package/src/map/navigation/navigation.ts +18 -14
- package/src/map/navigation/navigationImpl.ts +2 -2
- package/src/map/navigation/obliqueNavigation.ts +7 -6
- package/src/map/navigation/openlayersNavigation.ts +4 -3
- package/src/map/navigation/viewHelper.ts +2 -3
- package/src/map/obliqueMap.ts +7 -9
- package/src/map/panoramaMap.ts +415 -0
- package/src/map/vcsMap.ts +19 -16
- package/src/moduleIdSymbol.ts +0 -1
- package/src/oblique/defaultObliqueCollection.ts +1 -0
- package/src/oblique/helpers.ts +2 -4
- package/src/oblique/obliqueCollection.ts +7 -7
- package/src/oblique/obliqueDataSet.ts +7 -6
- package/src/oblique/obliqueImage.ts +1 -1
- package/src/oblique/obliqueProvider.ts +3 -3
- package/src/oblique/obliqueView.ts +1 -0
- package/src/oblique/parseImageJson.ts +11 -12
- package/src/ol/feature.ts +1 -0
- package/src/ol/geojson.d.ts +3 -2
- package/src/ol/geom/circle.ts +1 -1
- package/src/ol/ol.d.ts +27 -29
- package/src/ol/render/canvas/canvasTileRenderer.js +0 -1
- package/src/ol/source/ClusterEnhancedVectorSource.ts +1 -1
- package/src/ol/source/VcsCluster.ts +4 -4
- package/src/overrideClassRegistry.ts +14 -10
- package/src/panorama/fieldOfView.ts +254 -0
- package/src/panorama/panoramaCameraController.ts +206 -0
- package/src/panorama/panoramaImage.ts +531 -0
- package/src/panorama/panoramaImageView.ts +445 -0
- package/src/panorama/panoramaTile.ts +154 -0
- package/src/panorama/panoramaTileCache.ts +40 -0
- package/src/panorama/panoramaTileCoordinate.ts +166 -0
- package/src/panorama/panoramaTileMaterial.ts +309 -0
- package/src/panorama/panoramaTileMaterialFS.glsl +165 -0
- package/src/panorama/panoramaTilePrimitiveCollection.ts +158 -0
- package/src/panorama/panoramaTileProvider.ts +533 -0
- package/src/panorama/sphericalCoordinates.ts +96 -0
- package/src/style/arrowStyle.ts +1 -1
- package/src/style/declarativeStyleItem.ts +19 -19
- package/src/style/styleFactory.ts +6 -7
- package/src/style/styleHelpers.ts +9 -9
- package/src/style/styleItem.ts +8 -3
- package/src/style/vectorStyleItem.ts +24 -30
- package/src/style/writeStyle.ts +3 -2
- package/src/util/clipping/clippingObject.ts +2 -3
- package/src/util/clipping/clippingObjectManager.ts +3 -3
- package/src/util/clipping/clippingPolygonHelper.ts +1 -2
- package/src/util/clipping/clippingPolygonObject.ts +4 -3
- package/src/util/clipping/clippingPolygonObjectCollection.ts +43 -27
- package/src/util/collection.ts +1 -1
- package/src/util/createAbsoluteFeature.ts +155 -0
- package/src/util/displayQuality/displayQuality.ts +7 -8
- package/src/util/editor/createFeatureSession.ts +12 -12
- package/src/util/editor/editFeaturesSession.ts +6 -4
- package/src/util/editor/editGeometrySession.ts +4 -3
- package/src/util/editor/editorHelpers.ts +14 -12
- package/src/util/editor/editorSessionHelpers.ts +13 -12
- package/src/util/editor/interactions/createCircleInteraction.ts +2 -3
- package/src/util/editor/interactions/createLineStringInteraction.ts +3 -4
- package/src/util/editor/interactions/createPointInteraction.ts +3 -4
- package/src/util/editor/interactions/createPolygonInteraction.ts +3 -4
- package/src/util/editor/interactions/creationSnapping.ts +4 -7
- package/src/util/editor/interactions/editFeaturesMouseOverInteraction.ts +2 -3
- package/src/util/editor/interactions/editGeometryMouseOverInteraction.ts +4 -4
- package/src/util/editor/interactions/ensureHandlerSelectionInteraction.ts +2 -3
- package/src/util/editor/interactions/insertVertexInteraction.ts +3 -4
- package/src/util/editor/interactions/layerSnapping.ts +6 -8
- package/src/util/editor/interactions/mapInteractionController.ts +5 -3
- package/src/util/editor/interactions/removeVertexInteraction.ts +4 -4
- package/src/util/editor/interactions/rightClickInteraction.ts +2 -3
- package/src/util/editor/interactions/segmentLengthInteraction.ts +2 -3
- package/src/util/editor/interactions/selectFeatureMouseOverInteraction.ts +15 -14
- package/src/util/editor/interactions/selectMultiFeatureInteraction.ts +9 -9
- package/src/util/editor/interactions/selectSingleFeatureInteraction.ts +5 -7
- package/src/util/editor/interactions/translateVertexInteraction.ts +4 -4
- package/src/util/editor/interactions/translationSnapping.ts +4 -7
- package/src/util/editor/selectFeaturesSession.ts +5 -8
- package/src/util/editor/snappingHelpers.ts +21 -20
- package/src/util/editor/transformation/create2DHandlers.ts +1 -1
- package/src/util/editor/transformation/create3DHandlers.ts +3 -3
- package/src/util/editor/transformation/extrudeInteraction.ts +5 -5
- package/src/util/editor/transformation/rotateInteraction.ts +7 -6
- package/src/util/editor/transformation/scaleInteraction.ts +7 -6
- package/src/util/editor/transformation/transformationHandler.ts +3 -3
- package/src/util/editor/transformation/translateInteraction.ts +7 -11
- package/src/util/exclusiveManager.ts +1 -1
- package/src/util/featureconverter/arcToCesium.ts +4 -6
- package/src/util/featureconverter/circleToCesium.ts +3 -5
- package/src/util/featureconverter/clampedPrimitive.ts +6 -5
- package/src/util/featureconverter/convert.ts +22 -24
- package/src/util/featureconverter/extent3D.ts +3 -3
- package/src/util/featureconverter/lineStringToCesium.ts +7 -7
- package/src/util/featureconverter/pointHelpers.ts +10 -11
- package/src/util/featureconverter/pointToCesium.ts +18 -44
- package/src/util/featureconverter/polygonToCesium.ts +3 -5
- package/src/util/featureconverter/storeyHelpers.ts +2 -2
- package/src/util/featureconverter/vectorGeometryFactory.ts +41 -39
- package/src/util/featureconverter/vectorHeightInfo.ts +60 -30
- package/src/util/flight/flightAnchor.ts +4 -3
- package/src/util/flight/flightCollection.ts +3 -2
- package/src/util/flight/flightHelpers.ts +1 -1
- package/src/util/flight/flightInstance.ts +7 -4
- package/src/util/flight/flightPlayer.ts +2 -2
- package/src/util/flight/flightRecorder.ts +234 -0
- package/src/util/flight/flightVisualizer.ts +2 -2
- package/src/util/geometryHelpers.ts +3 -135
- package/src/util/hiddenObjects.ts +3 -4
- package/src/util/indexedCollection.ts +1 -1
- package/src/util/isMobile.ts +2 -1
- package/src/util/layerCollection.ts +7 -2
- package/src/util/locale.ts +0 -1
- package/src/util/mapCollection.ts +104 -47
- package/src/util/math.ts +34 -0
- package/src/util/overrideCollection.ts +4 -5
- package/src/util/projection.ts +3 -7
- package/src/util/renderScreenshot.ts +2 -2
- package/src/util/rotation.ts +3 -4
- package/src/util/urlHelpers.ts +0 -1
- package/src/util/vcsTemplate.ts +6 -5
- package/src/util/viewpoint.ts +20 -3
- package/src/vcsApp.ts +42 -42
- package/src/vcsEvent.ts +1 -1
- package/src/vcsModuleHelpers.ts +4 -3
- package/src/vectorCluster/vectorClusterCesiumContext.ts +8 -9
- package/src/vectorCluster/vectorClusterGroup.ts +26 -16
- package/src/vectorCluster/vectorClusterGroupCesiumImpl.ts +10 -10
- package/src/vectorCluster/vectorClusterGroupCollection.ts +1 -1
- package/src/vectorCluster/vectorClusterGroupImpl.ts +5 -5
- package/src/vectorCluster/vectorClusterGroupObliqueImpl.ts +4 -6
- package/src/vectorCluster/vectorClusterGroupOpenlayersImpl.ts +2 -2
- package/src/vectorCluster/vectorClusterStyleItem.ts +5 -3
- package/src/vectorCluster/vectorClusterSymbols.ts +0 -1
- package/src/workers/panoramaImageWorker.ts +50 -0
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
Cesium3DTile,
|
|
3
|
+
Cesium3DTileContent,
|
|
4
|
+
SplitDirection,
|
|
5
|
+
CustomShader,
|
|
6
|
+
} from '@vcmap-cesium/engine';
|
|
1
7
|
import {
|
|
2
8
|
Composite3DTileContent,
|
|
3
9
|
Cesium3DTileset,
|
|
@@ -7,18 +13,16 @@ import {
|
|
|
7
13
|
Cartographic,
|
|
8
14
|
Rectangle,
|
|
9
15
|
Math as CesiumMath,
|
|
10
|
-
type SplitDirection,
|
|
11
|
-
Cesium3DTile,
|
|
12
|
-
Cesium3DTileContent,
|
|
13
|
-
type CustomShader,
|
|
14
16
|
} from '@vcmap-cesium/engine';
|
|
15
|
-
import {
|
|
17
|
+
import type { Extent as OLExtent } from 'ol/extent.js';
|
|
18
|
+
import { createEmpty } from 'ol/extent.js';
|
|
16
19
|
import type { Coordinate } from 'ol/coordinate.js';
|
|
17
20
|
import LayerImplementation from '../layerImplementation.js';
|
|
18
21
|
import { allowPicking, vcsLayerName } from '../layerSymbols.js';
|
|
19
|
-
import
|
|
22
|
+
import type { HighlightableFeature } from '../featureVisibility.js';
|
|
23
|
+
import type FeatureVisibility from '../featureVisibility.js';
|
|
24
|
+
import {
|
|
20
25
|
hideFeature,
|
|
21
|
-
HighlightableFeature,
|
|
22
26
|
highlightFeature,
|
|
23
27
|
originalStyle,
|
|
24
28
|
updateOriginalStyle,
|
|
@@ -32,7 +36,7 @@ import type {
|
|
|
32
36
|
import type CesiumMap from '../../map/cesiumMap.js';
|
|
33
37
|
import type { FeatureLayerImplementation } from '../featureLayer.js';
|
|
34
38
|
import type StyleItem from '../../style/styleItem.js';
|
|
35
|
-
import GlobalHider from '../globalHider.js';
|
|
39
|
+
import type GlobalHider from '../globalHider.js';
|
|
36
40
|
import { getResourceOrUrl } from './resourceHelper.js';
|
|
37
41
|
|
|
38
42
|
export const cesiumTilesetLastUpdated: unique symbol = Symbol(
|
|
@@ -271,7 +275,7 @@ class CesiumTilesetCesiumImpl
|
|
|
271
275
|
}
|
|
272
276
|
}
|
|
273
277
|
|
|
274
|
-
updateStyle(style: StyleItem
|
|
278
|
+
updateStyle(style: StyleItem): void {
|
|
275
279
|
this.style = style;
|
|
276
280
|
if (this.initialized && this.cesium3DTileset) {
|
|
277
281
|
this.cesium3DTileset.style = this.style.cesiumStyle;
|
|
@@ -346,7 +350,7 @@ class CesiumTilesetCesiumImpl
|
|
|
346
350
|
if (feature) {
|
|
347
351
|
let id = feature.getProperty('id') as string | undefined;
|
|
348
352
|
if (!id) {
|
|
349
|
-
id = `${content.url}${batchId}`;
|
|
353
|
+
id = `${content.url}${String(batchId)}`;
|
|
350
354
|
}
|
|
351
355
|
|
|
352
356
|
let shouldUpdateOriginalStyle = true;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type GeoTIFFSource from 'ol/source/GeoTIFF.js';
|
|
2
|
+
import { ImageryLayer as CesiumImageryLayer } from '@vcmap-cesium/engine';
|
|
3
|
+
import RasterLayerCesiumImpl from './rasterLayerCesiumImpl.js';
|
|
4
|
+
import COGImageryProvider from './cogImageryProvider.js';
|
|
5
|
+
import type { COGLayerImplementationOptions } from '../cogLayer.js';
|
|
6
|
+
import type CesiumMap from '../../map/cesiumMap.js';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* COG Layer implementation for {@link CesiumMap}.
|
|
10
|
+
*/
|
|
11
|
+
class COGCesiumImpl extends RasterLayerCesiumImpl {
|
|
12
|
+
static get className(): string {
|
|
13
|
+
return 'COGCesiumImpl';
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
private _source: GeoTIFFSource;
|
|
17
|
+
|
|
18
|
+
constructor(map: CesiumMap, options: COGLayerImplementationOptions) {
|
|
19
|
+
super(map, options);
|
|
20
|
+
this._source = options.source;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
async getCesiumLayer(): Promise<CesiumImageryLayer> {
|
|
24
|
+
const imageryProvider = new COGImageryProvider(this._source);
|
|
25
|
+
const layerOptions = this.getCesiumLayerOptions();
|
|
26
|
+
return Promise.resolve(
|
|
27
|
+
// @ts-expect-error: other impl
|
|
28
|
+
new CesiumImageryLayer(imageryProvider, {
|
|
29
|
+
...layerOptions,
|
|
30
|
+
rectangle: imageryProvider.tilingScheme.rectangle,
|
|
31
|
+
}),
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export default COGCesiumImpl;
|
|
@@ -0,0 +1,389 @@
|
|
|
1
|
+
import type { Projection } from 'ol/proj.js';
|
|
2
|
+
import type GeoTIFFSource from 'ol/source/GeoTIFF.js';
|
|
3
|
+
import {
|
|
4
|
+
createEmpty as createEmptyExtent,
|
|
5
|
+
extend as extendExtent,
|
|
6
|
+
getWidth as getExtentWidth,
|
|
7
|
+
getHeight as getExtentHeight,
|
|
8
|
+
getTopLeft as getTopLeftExtent,
|
|
9
|
+
} from 'ol/extent.js';
|
|
10
|
+
import TileState from 'ol/TileState.js';
|
|
11
|
+
import {
|
|
12
|
+
Cartesian2,
|
|
13
|
+
Event as CesiumEvent,
|
|
14
|
+
GeographicTilingScheme,
|
|
15
|
+
type ImageryTypes,
|
|
16
|
+
Math as CesiumMath,
|
|
17
|
+
Rectangle,
|
|
18
|
+
type TilingScheme,
|
|
19
|
+
WebMercatorTilingScheme,
|
|
20
|
+
} from '@vcmap-cesium/engine';
|
|
21
|
+
import EventType from 'ol/events/EventType.js';
|
|
22
|
+
import type TileGrid from 'ol/tilegrid/TileGrid.js';
|
|
23
|
+
import {
|
|
24
|
+
mercatorExtentToRectangle,
|
|
25
|
+
rectangleToMercatorExtent,
|
|
26
|
+
} from '../../util/math.js';
|
|
27
|
+
|
|
28
|
+
export function createEmptyCanvas(
|
|
29
|
+
width: number,
|
|
30
|
+
height: number,
|
|
31
|
+
): HTMLCanvasElement {
|
|
32
|
+
const canvas = document.createElement('canvas');
|
|
33
|
+
canvas.width = width;
|
|
34
|
+
canvas.height = height;
|
|
35
|
+
return canvas;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
function areGridsAligned(
|
|
39
|
+
tileGrid: TileGrid,
|
|
40
|
+
tilingScheme: TilingScheme,
|
|
41
|
+
): boolean {
|
|
42
|
+
const olRectangle = mercatorExtentToRectangle(
|
|
43
|
+
tileGrid.getTileCoordExtent([0, 0, 0]),
|
|
44
|
+
);
|
|
45
|
+
const cesiumRectangle = tilingScheme.tileXYToRectangle(0, 0, 0);
|
|
46
|
+
|
|
47
|
+
return Rectangle.equalsEpsilon(
|
|
48
|
+
cesiumRectangle,
|
|
49
|
+
olRectangle,
|
|
50
|
+
CesiumMath.EPSILON8,
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
function getTilingSchemeFromSource(source: GeoTIFFSource): TilingScheme {
|
|
55
|
+
const tileGrid = source.getTileGrid()!;
|
|
56
|
+
const projection = source.getProjection()!;
|
|
57
|
+
const extent = tileGrid.getExtent();
|
|
58
|
+
const level0TileRange = tileGrid.getTileRangeForExtentAndZ(extent, 0);
|
|
59
|
+
|
|
60
|
+
let tilingScheme: TilingScheme | undefined;
|
|
61
|
+
|
|
62
|
+
if (projection.getCode() === 'EPSG:4326') {
|
|
63
|
+
tilingScheme = new GeographicTilingScheme({
|
|
64
|
+
numberOfLevelZeroTilesX: level0TileRange.getWidth(),
|
|
65
|
+
numberOfLevelZeroTilesY: level0TileRange.getHeight(),
|
|
66
|
+
rectangle: mercatorExtentToRectangle(extent),
|
|
67
|
+
});
|
|
68
|
+
} else if (projection.getCode() === 'EPSG:3857') {
|
|
69
|
+
tilingScheme = new WebMercatorTilingScheme({
|
|
70
|
+
numberOfLevelZeroTilesX: level0TileRange.getWidth(),
|
|
71
|
+
numberOfLevelZeroTilesY: level0TileRange.getHeight(),
|
|
72
|
+
rectangleSouthwestInMeters: new Cartesian2(extent[0], extent[1]),
|
|
73
|
+
rectangleNortheastInMeters: new Cartesian2(extent[2], extent[3]),
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
if (!tilingScheme) {
|
|
78
|
+
throw new Error(`Unexpected code projection: ${projection.getCode()}`);
|
|
79
|
+
}
|
|
80
|
+
return tilingScheme;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export default class COGImageryProvider {
|
|
84
|
+
private _emptyCanvas: HTMLCanvasElement;
|
|
85
|
+
|
|
86
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
87
|
+
_reload: undefined | (() => void) = undefined;
|
|
88
|
+
|
|
89
|
+
private _projection: Projection;
|
|
90
|
+
|
|
91
|
+
private _tilingScheme: TilingScheme;
|
|
92
|
+
|
|
93
|
+
private _tileGrid: TileGrid;
|
|
94
|
+
|
|
95
|
+
private _boundTileLoader: (
|
|
96
|
+
x: number,
|
|
97
|
+
y: number,
|
|
98
|
+
level: number,
|
|
99
|
+
) => Promise<ImageryTypes>;
|
|
100
|
+
|
|
101
|
+
constructor(private _source: GeoTIFFSource) {
|
|
102
|
+
this._emptyCanvas = createEmptyCanvas(this.tileWidth, this.tileHeight);
|
|
103
|
+
this._projection = this._source.getProjection()!;
|
|
104
|
+
this._tileGrid = this._source.getTileGrid()!;
|
|
105
|
+
this._tilingScheme = getTilingSchemeFromSource(this._source);
|
|
106
|
+
if (areGridsAligned(this._tileGrid, this._tilingScheme)) {
|
|
107
|
+
this._boundTileLoader = this._loadAlignedTile.bind(this);
|
|
108
|
+
} else {
|
|
109
|
+
this._boundTileLoader = this._loadUnalignedTile.bind(this);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
// eslint-disable-next-line class-methods-use-this,@typescript-eslint/naming-convention
|
|
114
|
+
get _ready(): boolean {
|
|
115
|
+
return true;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
// eslint-disable-next-line class-methods-use-this
|
|
119
|
+
get ready(): boolean {
|
|
120
|
+
return true;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
get rectangle(): Rectangle {
|
|
124
|
+
return this._tilingScheme.rectangle;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
get tilingScheme(): TilingScheme {
|
|
128
|
+
return this._tilingScheme;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
readonly errorEvent: CesiumEvent = new CesiumEvent();
|
|
132
|
+
|
|
133
|
+
// eslint-disable-next-line class-methods-use-this
|
|
134
|
+
get credit(): undefined {
|
|
135
|
+
return undefined;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
// eslint-disable-next-line class-methods-use-this
|
|
139
|
+
get proxy(): undefined {
|
|
140
|
+
return undefined;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
get tileWidth(): number {
|
|
144
|
+
const tileGrid = this._source.getTileGrid();
|
|
145
|
+
if (tileGrid) {
|
|
146
|
+
const tileSizeAtZoom0 = tileGrid.getTileSize(0);
|
|
147
|
+
if (Array.isArray(tileSizeAtZoom0)) {
|
|
148
|
+
return Math.round(tileSizeAtZoom0[0]);
|
|
149
|
+
} else {
|
|
150
|
+
return Math.round(tileSizeAtZoom0); // same width and height
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
return 256;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
get tileHeight(): number {
|
|
157
|
+
const tileGrid = this._source.getTileGrid();
|
|
158
|
+
if (tileGrid) {
|
|
159
|
+
const tileSizeAtZoom0 = tileGrid.getTileSize(0);
|
|
160
|
+
if (Array.isArray(tileSizeAtZoom0)) {
|
|
161
|
+
return Math.round(tileSizeAtZoom0[1]);
|
|
162
|
+
} else {
|
|
163
|
+
return Math.round(tileSizeAtZoom0); // same width and height
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
return 256;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
get maximumLevel(): number {
|
|
170
|
+
const tileGrid = this._source.getTileGrid();
|
|
171
|
+
if (tileGrid) {
|
|
172
|
+
return tileGrid.getMaxZoom();
|
|
173
|
+
} else {
|
|
174
|
+
return 18; // some arbitrary value
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
// eslint-disable-next-line class-methods-use-this
|
|
179
|
+
get minimumLevel(): number {
|
|
180
|
+
// WARNING: Do not use the minimum level (at least until the extent is
|
|
181
|
+
// properly set). Cesium assumes the minimumLevel to contain only
|
|
182
|
+
// a few tiles and tries to load them all at once -- this can
|
|
183
|
+
// freeze and/or crash the browser !
|
|
184
|
+
return 0;
|
|
185
|
+
//var tg = this._source.getTileGrid();
|
|
186
|
+
//return tg ? tg.getMinZoom() : 0;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
// eslint-disable-next-line class-methods-use-this
|
|
190
|
+
get tileDiscardPolicy(): undefined {
|
|
191
|
+
return undefined;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
// eslint-disable-next-line class-methods-use-this
|
|
195
|
+
get hasAlphaChannel(): boolean {
|
|
196
|
+
return true;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
private async _loadOLTile(
|
|
200
|
+
x: number,
|
|
201
|
+
y: number,
|
|
202
|
+
level: number,
|
|
203
|
+
): Promise<Uint8Array | undefined> {
|
|
204
|
+
const tile = this._source.getTile(level, x, y, 1, this._projection);
|
|
205
|
+
if (tile) {
|
|
206
|
+
return new Promise<Uint8Array | undefined>((resolve) => {
|
|
207
|
+
const listener = (): void => {
|
|
208
|
+
const data = tile.getData() as Uint8Array | null;
|
|
209
|
+
if (data) {
|
|
210
|
+
tile.removeEventListener(EventType.CHANGE, listener);
|
|
211
|
+
resolve(data);
|
|
212
|
+
} else if (
|
|
213
|
+
tile.getState() === TileState.EMPTY ||
|
|
214
|
+
tile.getState() === TileState.ERROR
|
|
215
|
+
) {
|
|
216
|
+
tile.removeEventListener(EventType.CHANGE, listener);
|
|
217
|
+
resolve(undefined);
|
|
218
|
+
}
|
|
219
|
+
};
|
|
220
|
+
if (tile.getState() === TileState.LOADED) {
|
|
221
|
+
listener();
|
|
222
|
+
} else if (
|
|
223
|
+
tile.getState() === TileState.EMPTY ||
|
|
224
|
+
tile.getState() === TileState.ERROR
|
|
225
|
+
) {
|
|
226
|
+
resolve(undefined);
|
|
227
|
+
} else {
|
|
228
|
+
tile.addEventListener(EventType.CHANGE, listener);
|
|
229
|
+
if (tile.getState() === TileState.IDLE) {
|
|
230
|
+
tile.load();
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
});
|
|
234
|
+
}
|
|
235
|
+
return Promise.resolve(undefined);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
private _drawData(
|
|
239
|
+
ctx: CanvasRenderingContext2D,
|
|
240
|
+
data: Uint8Array,
|
|
241
|
+
offsetX = 0,
|
|
242
|
+
offsetY = 0,
|
|
243
|
+
): void {
|
|
244
|
+
const imageData = ctx.createImageData(this.tileWidth, this.tileHeight);
|
|
245
|
+
let usedData = data;
|
|
246
|
+
// this is a grey image
|
|
247
|
+
if (data.length === imageData.data.length / 2) {
|
|
248
|
+
usedData = new Uint8Array(imageData.data.length);
|
|
249
|
+
for (let i = 0; i < data.length; i++) {
|
|
250
|
+
const value = data[i];
|
|
251
|
+
if (i % 2 === 0) {
|
|
252
|
+
const pixelOffset = (i / 2) * 4;
|
|
253
|
+
usedData[pixelOffset] = value;
|
|
254
|
+
usedData[pixelOffset + 1] = value;
|
|
255
|
+
usedData[pixelOffset + 2] = value;
|
|
256
|
+
} else {
|
|
257
|
+
const pixelOffset = ((i - 1) / 2) * 4;
|
|
258
|
+
usedData[pixelOffset + 3] = value;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
imageData.data.set(usedData);
|
|
264
|
+
ctx.putImageData(imageData, offsetX, offsetY);
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
private async _loadAlignedTile(
|
|
268
|
+
x: number,
|
|
269
|
+
y: number,
|
|
270
|
+
level: number,
|
|
271
|
+
): Promise<ImageryTypes> {
|
|
272
|
+
const tileData = await this._loadOLTile(x, y, level);
|
|
273
|
+
if (tileData) {
|
|
274
|
+
const canvas = createEmptyCanvas(this.tileWidth, this.tileHeight);
|
|
275
|
+
const ctx = canvas.getContext('2d');
|
|
276
|
+
if (ctx) {
|
|
277
|
+
this._drawData(ctx, tileData);
|
|
278
|
+
}
|
|
279
|
+
return canvas;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
return this._emptyCanvas;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
private async _loadUnalignedTile(
|
|
286
|
+
x: number,
|
|
287
|
+
y: number,
|
|
288
|
+
level: number,
|
|
289
|
+
): Promise<ImageryTypes> {
|
|
290
|
+
const rectangle = this._tilingScheme.tileXYToRectangle(x, y, level);
|
|
291
|
+
const extent = rectangleToMercatorExtent(rectangle);
|
|
292
|
+
const resolution = Math.max(
|
|
293
|
+
getExtentWidth(extent) / this.tileWidth,
|
|
294
|
+
getExtentHeight(extent) / this.tileHeight,
|
|
295
|
+
);
|
|
296
|
+
const levelResolution = this._tileGrid.getZForResolution(resolution);
|
|
297
|
+
const tileRange = this._tileGrid.getTileRangeForExtentAndZ(
|
|
298
|
+
extent,
|
|
299
|
+
levelResolution,
|
|
300
|
+
);
|
|
301
|
+
const canvas = createEmptyCanvas(
|
|
302
|
+
this.tileWidth * tileRange.getWidth(),
|
|
303
|
+
this.tileHeight * tileRange.getHeight(),
|
|
304
|
+
);
|
|
305
|
+
const ctx = canvas.getContext('2d');
|
|
306
|
+
if (!ctx) {
|
|
307
|
+
return this._emptyCanvas;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
const promises: Promise<void>[] = [];
|
|
311
|
+
const tileRangeExtent = createEmptyExtent();
|
|
312
|
+
for (
|
|
313
|
+
let partialX = tileRange.minX;
|
|
314
|
+
partialX <= tileRange.maxX;
|
|
315
|
+
partialX++
|
|
316
|
+
) {
|
|
317
|
+
for (
|
|
318
|
+
let partialY = tileRange.minY;
|
|
319
|
+
partialY <= tileRange.maxY;
|
|
320
|
+
partialY++
|
|
321
|
+
) {
|
|
322
|
+
extendExtent(
|
|
323
|
+
tileRangeExtent,
|
|
324
|
+
this._tileGrid.getTileCoordExtent([
|
|
325
|
+
levelResolution,
|
|
326
|
+
partialX,
|
|
327
|
+
partialY,
|
|
328
|
+
]),
|
|
329
|
+
);
|
|
330
|
+
promises.push(
|
|
331
|
+
this._loadOLTile(partialX, partialY, levelResolution).then(
|
|
332
|
+
(tileData) => {
|
|
333
|
+
if (tileData) {
|
|
334
|
+
this._drawData(
|
|
335
|
+
ctx,
|
|
336
|
+
tileData,
|
|
337
|
+
(partialX - tileRange.minX) * this.tileWidth,
|
|
338
|
+
(partialY - tileRange.minY) * this.tileHeight,
|
|
339
|
+
);
|
|
340
|
+
}
|
|
341
|
+
},
|
|
342
|
+
),
|
|
343
|
+
);
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
await Promise.all(promises);
|
|
347
|
+
|
|
348
|
+
const unitsPerPixelX =
|
|
349
|
+
getExtentWidth(tileRangeExtent) / (this.tileWidth * tileRange.getWidth());
|
|
350
|
+
const unitsPerPixelY =
|
|
351
|
+
getExtentHeight(tileRangeExtent) /
|
|
352
|
+
(this.tileHeight * tileRange.getHeight());
|
|
353
|
+
|
|
354
|
+
const tileRangeTopLeft = getTopLeftExtent(tileRangeExtent);
|
|
355
|
+
const extentTopLeft = getTopLeftExtent(extent);
|
|
356
|
+
|
|
357
|
+
const windowX =
|
|
358
|
+
Math.abs(tileRangeTopLeft[0] - extentTopLeft[0]) / unitsPerPixelX;
|
|
359
|
+
const windowY =
|
|
360
|
+
Math.abs(tileRangeTopLeft[1] - extentTopLeft[1]) / unitsPerPixelY;
|
|
361
|
+
const windowWidth = getExtentWidth(extent) / unitsPerPixelX;
|
|
362
|
+
const windowHeight = getExtentHeight(extent) / unitsPerPixelY;
|
|
363
|
+
|
|
364
|
+
const windowCanvas = createEmptyCanvas(this.tileWidth, this.tileHeight);
|
|
365
|
+
const windowCtx = windowCanvas.getContext('2d');
|
|
366
|
+
|
|
367
|
+
if (windowCtx) {
|
|
368
|
+
windowCtx.drawImage(
|
|
369
|
+
canvas,
|
|
370
|
+
windowX,
|
|
371
|
+
windowY,
|
|
372
|
+
windowWidth,
|
|
373
|
+
windowHeight,
|
|
374
|
+
0,
|
|
375
|
+
0,
|
|
376
|
+
this.tileWidth,
|
|
377
|
+
this.tileHeight,
|
|
378
|
+
);
|
|
379
|
+
|
|
380
|
+
return windowCanvas;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
return this._emptyCanvas;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
requestImage(x: number, y: number, level: number): Promise<ImageryTypes> {
|
|
387
|
+
return this._boundTileLoader(x, y, level);
|
|
388
|
+
}
|
|
389
|
+
}
|
|
@@ -1,19 +1,21 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
DataSourceClock,
|
|
3
|
+
Scene,
|
|
4
|
+
DataSourceDisplay,
|
|
5
|
+
EntityCollection,
|
|
6
|
+
} from '@vcmap-cesium/engine';
|
|
1
7
|
import {
|
|
2
8
|
CustomDataSource,
|
|
3
9
|
BoundingSphereState,
|
|
4
10
|
BoundingSphere,
|
|
5
11
|
HeadingPitchRange,
|
|
6
12
|
Math as CesiumMath,
|
|
7
|
-
type EntityCollection,
|
|
8
|
-
DataSourceClock,
|
|
9
|
-
Scene,
|
|
10
|
-
DataSourceDisplay,
|
|
11
13
|
} from '@vcmap-cesium/engine';
|
|
12
14
|
import LayerImplementation from '../layerImplementation.js';
|
|
13
15
|
import { vcsLayerName } from '../layerSymbols.js';
|
|
14
|
-
import CesiumMap from '../../map/cesiumMap.js';
|
|
16
|
+
import type CesiumMap from '../../map/cesiumMap.js';
|
|
15
17
|
import type { DataSourceImplementationOptions } from '../dataSourceLayer.js';
|
|
16
|
-
import Viewpoint from '../../util/viewpoint.js';
|
|
18
|
+
import type Viewpoint from '../../util/viewpoint.js';
|
|
17
19
|
|
|
18
20
|
function synchronizeEntityCollections(
|
|
19
21
|
source: EntityCollection,
|
|
@@ -2,11 +2,11 @@ import { getLogger } from '@vcsuite/logger';
|
|
|
2
2
|
import { unByKey } from 'ol/Observable.js';
|
|
3
3
|
import type VectorSource from 'ol/source/Vector.js';
|
|
4
4
|
import type { Feature } from 'ol';
|
|
5
|
-
import { StyleLike } from 'ol/style/Style.js';
|
|
5
|
+
import type { StyleLike } from 'ol/style/Style.js';
|
|
6
6
|
import type { Scene } from '@vcmap-cesium/engine';
|
|
7
7
|
import type VectorContext from './vectorContext.js';
|
|
8
8
|
import type VectorClusterCesiumContext from '../../vectorCluster/vectorClusterCesiumContext.js';
|
|
9
|
-
import VectorProperties from '../vectorProperties.js';
|
|
9
|
+
import type VectorProperties from '../vectorProperties.js';
|
|
10
10
|
|
|
11
11
|
export type SourceVectorContextSync = {
|
|
12
12
|
readonly active: boolean;
|
|
@@ -90,7 +90,7 @@ export function createSourceVectorContextSync(
|
|
|
90
90
|
const addFeatures = (features: Feature[]): void => {
|
|
91
91
|
// TODO we should make this non-blocking to better handle larger data sets check in RIWA Impl
|
|
92
92
|
features.forEach((f) => {
|
|
93
|
-
addFeature(f).catch((err) => {
|
|
93
|
+
addFeature(f).catch((err: unknown) => {
|
|
94
94
|
getLogger('SourceVectorContextSync').error(
|
|
95
95
|
'failed to convert feature',
|
|
96
96
|
f,
|
|
@@ -120,7 +120,7 @@ export function createSourceVectorContextSync(
|
|
|
120
120
|
removeFeature(event.feature as Feature);
|
|
121
121
|
}),
|
|
122
122
|
source.on('changefeature', (event) => {
|
|
123
|
-
featureChanged(event.feature as Feature).catch((
|
|
123
|
+
featureChanged(event.feature as Feature).catch(() => {
|
|
124
124
|
getLogger().error('failed to convert feature');
|
|
125
125
|
});
|
|
126
126
|
}),
|
|
@@ -2,7 +2,7 @@ import type { CesiumTerrainProvider } from '@vcmap-cesium/engine';
|
|
|
2
2
|
import LayerImplementation from '../layerImplementation.js';
|
|
3
3
|
import { vcsLayerName } from '../layerSymbols.js';
|
|
4
4
|
import { getTerrainProviderForUrl } from '../terrainHelpers.js';
|
|
5
|
-
import CesiumMap from '../../map/cesiumMap.js';
|
|
5
|
+
import type CesiumMap from '../../map/cesiumMap.js';
|
|
6
6
|
import type { TerrainImplementationOptions } from '../terrainLayer.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { QuadtreeTile, TileBoundingRegion } from '@vcmap-cesium/engine';
|
|
1
|
+
import type { QuadtreeTile, TileBoundingRegion } from '@vcmap-cesium/engine';
|
|
2
|
+
import type { VcsTile } from './vcsTileHelpers.js';
|
|
2
3
|
import {
|
|
3
4
|
getTileBoundingRegion,
|
|
4
|
-
VcsTile,
|
|
5
5
|
VcsTileState,
|
|
6
6
|
VcsTileType,
|
|
7
7
|
} from './vcsTileHelpers.js';
|
|
@@ -26,6 +26,6 @@ export default class VcsChildTile implements VcsTile {
|
|
|
26
26
|
return this._tile.parent?.data?.show ?? false;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
// eslint-disable-next-line class-methods-use-this,@typescript-eslint/no-empty-function
|
|
29
|
+
// eslint-disable-next-line class-methods-use-this,@typescript-eslint/no-empty-function,no-empty-function
|
|
30
30
|
set show(_show: boolean) {}
|
|
31
31
|
}
|
|
@@ -1,24 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
QuadtreeTile,
|
|
4
|
-
SplitDirection,
|
|
5
|
-
TileBoundingRegion,
|
|
6
|
-
} from '@vcmap-cesium/engine';
|
|
1
|
+
import type { QuadtreeTile, TileBoundingRegion } from '@vcmap-cesium/engine';
|
|
2
|
+
import { PrimitiveCollection, SplitDirection } from '@vcmap-cesium/engine';
|
|
7
3
|
import { getLogger } from '@vcsuite/logger';
|
|
8
4
|
import { Feature } from 'ol';
|
|
9
5
|
import { Point } from 'ol/geom.js';
|
|
10
6
|
import { getCenter } from 'ol/extent.js';
|
|
11
7
|
import { fromExtent } from 'ol/geom/Polygon.js';
|
|
12
8
|
import { Style, Text as OLText } from 'ol/style.js';
|
|
13
|
-
import { StyleLike } from 'ol/style/Style.js';
|
|
9
|
+
import type { StyleLike } from 'ol/style/Style.js';
|
|
14
10
|
import VectorContext from '../vectorContext.js';
|
|
15
11
|
import { vcsLayerName } from '../../layerSymbols.js';
|
|
12
|
+
import type { VcsTile, VcsTileOptions } from './vcsTileHelpers.js';
|
|
16
13
|
import {
|
|
17
14
|
getTileBoundingRegion,
|
|
18
15
|
getTileHash,
|
|
19
16
|
getTileWgs84Extent,
|
|
20
|
-
VcsTile,
|
|
21
|
-
VcsTileOptions,
|
|
22
17
|
VcsTileState,
|
|
23
18
|
VcsTileType,
|
|
24
19
|
} from './vcsTileHelpers.js';
|
|
@@ -28,7 +23,7 @@ import Projection, {
|
|
|
28
23
|
} from '../../../util/projection.js';
|
|
29
24
|
import { createSync } from '../../vectorSymbols.js';
|
|
30
25
|
import VectorProperties from '../../vectorProperties.js';
|
|
31
|
-
import CesiumMap from '../../../map/cesiumMap.js';
|
|
26
|
+
import type CesiumMap from '../../../map/cesiumMap.js';
|
|
32
27
|
import type TileProvider from '../../tileProvider/tileProvider.js';
|
|
33
28
|
|
|
34
29
|
let vectorProperties: VectorProperties | undefined;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { QuadtreeTile, TileBoundingRegion } from '@vcmap-cesium/engine';
|
|
1
|
+
import type { QuadtreeTile, TileBoundingRegion } from '@vcmap-cesium/engine';
|
|
2
2
|
import type CesiumMap from '../../../map/cesiumMap.js';
|
|
3
|
+
import type { VcsTile } from './vcsTileHelpers.js';
|
|
3
4
|
import {
|
|
4
5
|
getTileBoundingRegion,
|
|
5
|
-
VcsTile,
|
|
6
6
|
VcsTileState,
|
|
7
7
|
VcsTileType,
|
|
8
8
|
} from './vcsTileHelpers.js';
|
|
@@ -25,6 +25,6 @@ export default class VcsNoDataTile implements VcsTile {
|
|
|
25
25
|
return false;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
// eslint-disable-next-line class-methods-use-this,@typescript-eslint/no-empty-function
|
|
28
|
+
// eslint-disable-next-line class-methods-use-this,@typescript-eslint/no-empty-function,no-empty-function
|
|
29
29
|
set show(_show: boolean) {}
|
|
30
30
|
}
|