@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
|
@@ -3,7 +3,7 @@ import type { Layer as OLLayer } from 'ol/layer.js';
|
|
|
3
3
|
import type { Coordinate } from 'ol/coordinate.js';
|
|
4
4
|
import VcsMap from './vcsMap.js';
|
|
5
5
|
import type Layer from '../layer/layer.js';
|
|
6
|
-
import { DisableMapControlOptions } from '../util/mapCollection.js';
|
|
6
|
+
import type { DisableMapControlOptions } from '../util/mapCollection.js';
|
|
7
7
|
/**
|
|
8
8
|
* @group Map
|
|
9
9
|
*/
|
|
@@ -45,6 +45,21 @@ function ensureLayerInCollection(layers, layer, layerCollection) {
|
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
+
function getPointerKeyType(button) {
|
|
49
|
+
if (button === 0) {
|
|
50
|
+
return PointerKeyType.LEFT;
|
|
51
|
+
}
|
|
52
|
+
if (button === 2) {
|
|
53
|
+
return PointerKeyType.RIGHT;
|
|
54
|
+
}
|
|
55
|
+
if (button === 1) {
|
|
56
|
+
return PointerKeyType.MIDDLE;
|
|
57
|
+
}
|
|
58
|
+
if (button === -1) {
|
|
59
|
+
return PointerKeyType.ALL;
|
|
60
|
+
}
|
|
61
|
+
return PointerKeyType.LEFT;
|
|
62
|
+
}
|
|
48
63
|
/**
|
|
49
64
|
* @group Map
|
|
50
65
|
*/
|
|
@@ -65,12 +80,6 @@ class BaseOLMap extends VcsMap {
|
|
|
65
80
|
return this._olMap;
|
|
66
81
|
}
|
|
67
82
|
_raisePointerInteraction(olEvent, pointerEvent) {
|
|
68
|
-
const pointerMap = {
|
|
69
|
-
'-1': PointerKeyType.ALL,
|
|
70
|
-
0: PointerKeyType.LEFT,
|
|
71
|
-
1: PointerKeyType.MIDDLE,
|
|
72
|
-
2: PointerKeyType.RIGHT,
|
|
73
|
-
};
|
|
74
83
|
let key = olEvent.originalEvent.shiftKey
|
|
75
84
|
? ModificationKeyType.SHIFT
|
|
76
85
|
: ModificationKeyType.NONE;
|
|
@@ -87,7 +96,7 @@ class BaseOLMap extends VcsMap {
|
|
|
87
96
|
positionOrPixel: position,
|
|
88
97
|
windowPosition: Cartesian2.fromArray(olEvent.pixel, 0, new Cartesian2()),
|
|
89
98
|
key,
|
|
90
|
-
pointer:
|
|
99
|
+
pointer: getPointerKeyType(olEvent.originalEvent.button),
|
|
91
100
|
pointerEvent,
|
|
92
101
|
});
|
|
93
102
|
}
|
|
@@ -175,7 +184,7 @@ class BaseOLMap extends VcsMap {
|
|
|
175
184
|
});
|
|
176
185
|
}
|
|
177
186
|
}
|
|
178
|
-
// eslint-disable-next-line no-unused-vars
|
|
187
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
179
188
|
getCurrentResolution(_coordinate) {
|
|
180
189
|
const view = this.olMap ? this.olMap.getView() : null;
|
|
181
190
|
if (view) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"baseOLMap.js","sourceRoot":"","sources":["../../../src/map/baseOLMap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,KAAK,MAAM,WAAW,CAAC;AAC9B,OAAO,EAAE,QAAQ,IAAI,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAMpE,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EAChB,cAAc,GACf,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAIvD,OAAO,EAAE,sBAAsB,EAAE,MAAM,0CAA0C,CAAC;AAElF,SAAS,uBAAuB,CAC9B,MAA6B,EAC7B,KAAc,EACd,eAAgC;IAEhC,MAA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C,6BAA6B,CAAC,CAAC;YACnD,CAAC,CAAC,CAAC;QACL,CAAC;IACH,CAAC;IAED,6DAA6D;IAC7D,oBAAoB,CAAC,WAAuB;QAC1C,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;QACtD,IAAI,IAAI,EAAE,CAAC;YACT,OAAO,IAAI,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC;QACnC,CAAC;QACD,OAAO,CAAC,CAAC;IACX,CAAC;IAED,aAAa;QACX,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;YAChB,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC;QACvB,CAAC;IACH,CAAC;IAED,OAAO;QACL,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;YAChB,IAAI,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC;QAC1B,CAAC;QACD,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC3B,KAAK,CAAC,OAAO,EAAE,CAAC;IAClB,CAAC;CACF;AAED,gBAAgB,CAAC,aAAa,CAAC,SAAS,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;AAC/D,eAAe,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cameraLimiter.js","sourceRoot":"","sources":["../../../src/map/cameraLimiter.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"cameraLimiter.js","sourceRoot":"","sources":["../../../src/map/cameraLimiter.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,iBAAiB,CAAC;AAExC,OAAO,EACL,YAAY,EACZ,SAAS,EACT,IAAI,IAAI,UAAU,EAClB,aAAa,EACb,yBAAyB,GAC1B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,KAAK,EAAE,KAAK,EAA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CAAC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;CACF;AAED,eAAe,aAAa,CAAC"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { JulianDate, Clock, DataSourceClock, Color, CesiumWidget, DataSourceDisplay, DataSourceCollection, ScreenSpaceEventHandler, Cartesian3, CustomDataSource, ImageryLayer, PrimitiveCollection, type Scene, type ImageryLayerCollection, type Cesium3DTileset, type TerrainProvider, type Event as CesiumEvent, type CzmlDataSource, type EntityCollection, type ShadowMap, type ContextOptions } from '@vcmap-cesium/engine';
|
|
2
2
|
import type { Coordinate } from 'ol/coordinate.js';
|
|
3
3
|
import VcsMap, { type VcsMapOptions } from './vcsMap.js';
|
|
4
|
-
import Viewpoint from '../util/viewpoint.js';
|
|
5
|
-
import
|
|
4
|
+
import type Viewpoint from '../util/viewpoint.js';
|
|
5
|
+
import type { CameraLimiterOptions } from './cameraLimiter.js';
|
|
6
|
+
import CameraLimiter from './cameraLimiter.js';
|
|
6
7
|
import type LayerCollection from '../util/layerCollection.js';
|
|
7
8
|
import type Layer from '../layer/layer.js';
|
|
8
9
|
import VcsEvent from '../vcsEvent.js';
|
|
9
|
-
import { DisableMapControlOptions } from '../util/mapCollection.js';
|
|
10
|
+
import type { DisableMapControlOptions } from '../util/mapCollection.js';
|
|
10
11
|
export type CesiumMapOptions = VcsMapOptions & {
|
|
11
12
|
/**
|
|
12
13
|
* if true, lighting will be activated.
|
|
@@ -113,7 +114,7 @@ declare class CesiumMap extends VcsMap<CesiumVisualisationType> {
|
|
|
113
114
|
enableLightning: boolean;
|
|
114
115
|
tileCacheSize: number;
|
|
115
116
|
screenSpaceEventHandler: ScreenSpaceEventHandler | null;
|
|
116
|
-
private
|
|
117
|
+
private _screenSpaceListener;
|
|
117
118
|
defaultJDate: JulianDate;
|
|
118
119
|
/**
|
|
119
120
|
* The defaultShadowMap which is created when calling the constructor of the CesiumWidet in {@link initialize}. This is a reference, not a clone.
|
|
@@ -135,7 +136,6 @@ declare class CesiumMap extends VcsMap<CesiumVisualisationType> {
|
|
|
135
136
|
private _preUpdateListener;
|
|
136
137
|
private _clockSyncListener;
|
|
137
138
|
private _listeners;
|
|
138
|
-
private _lastEventFrameNumber;
|
|
139
139
|
private _lightIntensity;
|
|
140
140
|
private _contextOptions;
|
|
141
141
|
constructor(options: CesiumMapOptions);
|
|
@@ -157,8 +157,6 @@ declare class CesiumMap extends VcsMap<CesiumVisualisationType> {
|
|
|
157
157
|
get cameraLimiter(): CameraLimiter | null;
|
|
158
158
|
set cameraLimiter(limiter: CameraLimiter | null);
|
|
159
159
|
private _setupPreUpdateListener;
|
|
160
|
-
private _raisePointerInteraction;
|
|
161
|
-
private _setupInteractions;
|
|
162
160
|
initialize(): Promise<void>;
|
|
163
161
|
activate(): Promise<void>;
|
|
164
162
|
deactivate(): void;
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import { JulianDate, Clock, DataSourceClock, Color, CesiumWidget, ShadowMode, DataSourceDisplay, DataSourceCollection, RequestScheduler,
|
|
1
|
+
import { JulianDate, Clock, DataSourceClock, Color, CesiumWidget, ShadowMode, DataSourceDisplay, DataSourceCollection, RequestScheduler, ScreenSpaceEventHandler, Cartesian3, Math as CesiumMath, Camera, BillboardVisualizer, LabelVisualizer, PointVisualizer, CustomDataSource, BoundingSphere, Intersect, ImageryLayer, PrimitiveCollection, } from '@vcmap-cesium/engine';
|
|
2
2
|
import { check, maybe } from '@vcsuite/check';
|
|
3
3
|
import { parseBoolean, parseInteger, parseNumber } from '@vcsuite/parsers';
|
|
4
4
|
import VcsMap from './vcsMap.js';
|
|
5
|
-
import Viewpoint from '../util/viewpoint.js';
|
|
6
5
|
import Projection, { mercatorProjection } from '../util/projection.js';
|
|
7
6
|
import { getHeightFromTerrainProvider } from '../layer/terrainHelpers.js';
|
|
8
7
|
import { vcsLayerName } from '../layer/layerSymbols.js';
|
|
9
|
-
import { ModificationKeyType, PointerEventType, PointerKeyType, } from '../interaction/interactionType.js';
|
|
10
8
|
import CameraLimiter from './cameraLimiter.js';
|
|
11
9
|
import { mapClassRegistry } from '../classRegistry.js';
|
|
12
10
|
import VcsEvent from '../vcsEvent.js';
|
|
13
11
|
import { vectorClusterGroupName } from '../vectorCluster/vectorClusterSymbols.js';
|
|
12
|
+
import { getResolution, getViewpointFromScene, setupCesiumInteractions, } from './cesiumMapHelpers.js';
|
|
14
13
|
/**
|
|
15
14
|
* Ensures, a primitive/imageryLayer/entity is part of a collection and placed at the correct location
|
|
16
15
|
* @param cesiumCollection
|
|
@@ -161,8 +160,8 @@ class CesiumMap extends VcsMap {
|
|
|
161
160
|
contextOptions: undefined,
|
|
162
161
|
};
|
|
163
162
|
}
|
|
164
|
-
_cesiumWidget;
|
|
165
|
-
dataSourceDisplay;
|
|
163
|
+
_cesiumWidget = null;
|
|
164
|
+
dataSourceDisplay = null;
|
|
166
165
|
/**
|
|
167
166
|
* clock for animated data
|
|
168
167
|
*/
|
|
@@ -175,66 +174,49 @@ class CesiumMap extends VcsMap {
|
|
|
175
174
|
* clocks of active data sources
|
|
176
175
|
* the last clock of the array corresponds to the active dataSourceDisplayClock
|
|
177
176
|
*/
|
|
178
|
-
_dataSourceClocks;
|
|
177
|
+
_dataSourceClocks = [];
|
|
179
178
|
enableLightning;
|
|
180
179
|
tileCacheSize;
|
|
181
|
-
screenSpaceEventHandler;
|
|
182
|
-
|
|
180
|
+
screenSpaceEventHandler = null;
|
|
181
|
+
_screenSpaceListener;
|
|
183
182
|
defaultJDate;
|
|
184
183
|
/**
|
|
185
184
|
* The defaultShadowMap which is created when calling the constructor of the CesiumWidet in {@link initialize}. This is a reference, not a clone.
|
|
186
185
|
*/
|
|
187
|
-
_defaultShadowMap;
|
|
186
|
+
_defaultShadowMap = null;
|
|
188
187
|
/**
|
|
189
188
|
* A cache of the shadowMap that is set, before {@link initialize} is called. It is applied as soon the instance is initialized.
|
|
190
189
|
*/
|
|
191
190
|
_initialShadowMap;
|
|
192
|
-
shadowMapChanged;
|
|
191
|
+
shadowMapChanged = new VcsEvent();
|
|
193
192
|
webGLaa;
|
|
194
193
|
globeColor;
|
|
195
194
|
_clusterDataSourceDisplay;
|
|
196
|
-
_terrainProvider;
|
|
197
|
-
defaultTerrainProvider;
|
|
195
|
+
_terrainProvider = null;
|
|
196
|
+
defaultTerrainProvider = null;
|
|
198
197
|
useOriginalCesiumShader;
|
|
199
|
-
_cameraLimiter;
|
|
198
|
+
_cameraLimiter = null;
|
|
200
199
|
_cameraLimiterOptions;
|
|
201
200
|
_preUpdateListener;
|
|
202
201
|
_clockSyncListener;
|
|
203
|
-
_listeners;
|
|
204
|
-
_lastEventFrameNumber;
|
|
202
|
+
_listeners = [];
|
|
205
203
|
_lightIntensity;
|
|
206
204
|
_contextOptions;
|
|
207
205
|
constructor(options) {
|
|
208
206
|
super(options);
|
|
209
207
|
const defaultOptions = CesiumMap.getDefaultOptions();
|
|
210
|
-
this._cesiumWidget = null;
|
|
211
|
-
this.dataSourceDisplay = null;
|
|
212
208
|
this.dataSourceDisplayClock = new Clock({ shouldAnimate: true });
|
|
213
209
|
const defaultClock = new DataSourceClock();
|
|
214
210
|
defaultClock.currentTime = this.dataSourceDisplayClock.currentTime;
|
|
215
211
|
this._defaultClock = defaultClock;
|
|
216
|
-
this._dataSourceClocks = [];
|
|
217
212
|
this.enableLightning = parseBoolean(options.enableLightning, defaultOptions.enableLightning);
|
|
218
213
|
this.tileCacheSize = parseInteger(options.tileCacheSize, defaultOptions.tileCacheSize);
|
|
219
|
-
this.screenSpaceEventHandler = null;
|
|
220
|
-
this._screenSpaceListeners = [];
|
|
221
214
|
this.defaultJDate = JulianDate.fromDate(new Date(2014, 6, 20, 13, 0, 0, 0));
|
|
222
|
-
this._defaultShadowMap = null;
|
|
223
|
-
this._initialShadowMap = null;
|
|
224
|
-
this.shadowMapChanged = new VcsEvent();
|
|
225
215
|
this.webGLaa = parseBoolean(options.webGLaa, defaultOptions.webGLaa);
|
|
226
216
|
this.useOriginalCesiumShader = parseBoolean(options.useOriginalCesiumShader, defaultOptions.useOriginalCesiumShader);
|
|
227
217
|
this.globeColor = Color.fromCssColorString(options.globeColor || defaultOptions.globeColor);
|
|
228
|
-
this._clusterDataSourceDisplay = null;
|
|
229
|
-
this._terrainProvider = null;
|
|
230
|
-
this.defaultTerrainProvider = null;
|
|
231
|
-
this._cameraLimiter = null;
|
|
232
218
|
this._cameraLimiterOptions =
|
|
233
219
|
options.cameraLimiter || defaultOptions.cameraLimiter;
|
|
234
|
-
this._preUpdateListener = null;
|
|
235
|
-
this._clockSyncListener = null;
|
|
236
|
-
this._listeners = [];
|
|
237
|
-
this._lastEventFrameNumber = null;
|
|
238
220
|
this._lightIntensity = parseNumber(options.lightIntensity, defaultOptions.lightIntensity);
|
|
239
221
|
this._contextOptions = structuredClone(options.contextOptions);
|
|
240
222
|
}
|
|
@@ -285,7 +267,7 @@ class CesiumMap extends VcsMap {
|
|
|
285
267
|
}
|
|
286
268
|
else if (!this._cameraLimiter && this._preUpdateListener) {
|
|
287
269
|
this._preUpdateListener();
|
|
288
|
-
this._preUpdateListener =
|
|
270
|
+
this._preUpdateListener = undefined;
|
|
289
271
|
}
|
|
290
272
|
}
|
|
291
273
|
}
|
|
@@ -300,114 +282,13 @@ class CesiumMap extends VcsMap {
|
|
|
300
282
|
});
|
|
301
283
|
}
|
|
302
284
|
}
|
|
303
|
-
_raisePointerInteraction(key, pointer, pointerEvent, csEvent) {
|
|
304
|
-
const multipleTouch =
|
|
305
|
-
// eslint-disable-next-line no-underscore-dangle
|
|
306
|
-
(this.screenSpaceEventHandler?._positions?.length ?? 0) > 1;
|
|
307
|
-
const windowPosition = csEvent
|
|
308
|
-
.position
|
|
309
|
-
? csEvent.position
|
|
310
|
-
: csEvent.endPosition;
|
|
311
|
-
this.pointerInteractionEvent.raiseEvent({
|
|
312
|
-
map: this,
|
|
313
|
-
windowPosition,
|
|
314
|
-
key,
|
|
315
|
-
pointer,
|
|
316
|
-
multipleTouch,
|
|
317
|
-
pointerEvent,
|
|
318
|
-
});
|
|
319
|
-
}
|
|
320
|
-
_setupInteractions() {
|
|
321
|
-
if (!(this._cesiumWidget && this.screenSpaceEventHandler)) {
|
|
322
|
-
throw new Error('Cannot setup interactions on uninitailized map');
|
|
323
|
-
}
|
|
324
|
-
const mods = [
|
|
325
|
-
{
|
|
326
|
-
csModifier: KeyboardEventModifier.ALT,
|
|
327
|
-
vcsModifier: ModificationKeyType.ALT,
|
|
328
|
-
},
|
|
329
|
-
{
|
|
330
|
-
csModifier: KeyboardEventModifier.CTRL,
|
|
331
|
-
vcsModifier: ModificationKeyType.CTRL,
|
|
332
|
-
},
|
|
333
|
-
{
|
|
334
|
-
csModifier: KeyboardEventModifier.SHIFT,
|
|
335
|
-
vcsModifier: ModificationKeyType.SHIFT,
|
|
336
|
-
},
|
|
337
|
-
{ csModifier: undefined, vcsModifier: ModificationKeyType.NONE },
|
|
338
|
-
];
|
|
339
|
-
const types = [
|
|
340
|
-
{
|
|
341
|
-
type: ScreenSpaceEventType.LEFT_DOWN,
|
|
342
|
-
pointerEvent: PointerEventType.DOWN,
|
|
343
|
-
pointer: PointerKeyType.LEFT,
|
|
344
|
-
},
|
|
345
|
-
{
|
|
346
|
-
type: ScreenSpaceEventType.LEFT_UP,
|
|
347
|
-
pointerEvent: PointerEventType.UP,
|
|
348
|
-
pointer: PointerKeyType.LEFT,
|
|
349
|
-
},
|
|
350
|
-
{
|
|
351
|
-
type: ScreenSpaceEventType.RIGHT_DOWN,
|
|
352
|
-
pointerEvent: PointerEventType.DOWN,
|
|
353
|
-
pointer: PointerKeyType.RIGHT,
|
|
354
|
-
},
|
|
355
|
-
{
|
|
356
|
-
type: ScreenSpaceEventType.RIGHT_UP,
|
|
357
|
-
pointerEvent: PointerEventType.UP,
|
|
358
|
-
pointer: PointerKeyType.RIGHT,
|
|
359
|
-
},
|
|
360
|
-
{
|
|
361
|
-
type: ScreenSpaceEventType.MIDDLE_DOWN,
|
|
362
|
-
pointerEvent: PointerEventType.DOWN,
|
|
363
|
-
pointer: PointerKeyType.MIDDLE,
|
|
364
|
-
},
|
|
365
|
-
{
|
|
366
|
-
type: ScreenSpaceEventType.MIDDLE_UP,
|
|
367
|
-
pointerEvent: PointerEventType.UP,
|
|
368
|
-
pointer: PointerKeyType.MIDDLE,
|
|
369
|
-
},
|
|
370
|
-
{
|
|
371
|
-
type: ScreenSpaceEventType.MOUSE_MOVE,
|
|
372
|
-
pointerEvent: PointerEventType.MOVE,
|
|
373
|
-
pointer: PointerKeyType.ALL,
|
|
374
|
-
},
|
|
375
|
-
];
|
|
376
|
-
this._screenSpaceListeners = types
|
|
377
|
-
.map(({ pointerEvent, pointer, type }) => {
|
|
378
|
-
return mods.map(({ csModifier, vcsModifier }) => {
|
|
379
|
-
const handler = type === ScreenSpaceEventType.MOUSE_MOVE
|
|
380
|
-
? (csEvent) => {
|
|
381
|
-
const widget = this._cesiumWidget;
|
|
382
|
-
if (widget.scene.frameState.frameNumber !==
|
|
383
|
-
this._lastEventFrameNumber) {
|
|
384
|
-
this._lastEventFrameNumber =
|
|
385
|
-
widget.scene.frameState.frameNumber;
|
|
386
|
-
this._raisePointerInteraction(vcsModifier, pointer, pointerEvent, csEvent);
|
|
387
|
-
}
|
|
388
|
-
}
|
|
389
|
-
: (csEvent) => {
|
|
390
|
-
this._raisePointerInteraction(vcsModifier, pointer, pointerEvent, csEvent);
|
|
391
|
-
};
|
|
392
|
-
this.screenSpaceEventHandler?.setInputAction?.(handler, type, csModifier);
|
|
393
|
-
return () => {
|
|
394
|
-
this?.screenSpaceEventHandler?.removeInputAction?.(type, csModifier);
|
|
395
|
-
};
|
|
396
|
-
});
|
|
397
|
-
})
|
|
398
|
-
.flat();
|
|
399
|
-
}
|
|
400
285
|
initialize() {
|
|
401
286
|
if (!this.initialized) {
|
|
402
287
|
if (!this.useOriginalCesiumShader) {
|
|
403
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
404
|
-
// @ts-ignore
|
|
405
288
|
globalThis.useVcsCustomShading = true;
|
|
406
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
407
|
-
// @ts-ignore
|
|
408
289
|
}
|
|
409
290
|
else if (globalThis.useVcsCustomShading) {
|
|
410
|
-
|
|
291
|
+
this.getLogger().error('Cannot activate Original Cesium Shader, flag to use VCS Shader is already set by another Cesium Map or VCMap Instance');
|
|
411
292
|
}
|
|
412
293
|
const contextOptions = {
|
|
413
294
|
...this._contextOptions,
|
|
@@ -471,7 +352,7 @@ class CesiumMap extends VcsMap {
|
|
|
471
352
|
this._setupPreUpdateListener();
|
|
472
353
|
}
|
|
473
354
|
this.screenSpaceEventHandler = new ScreenSpaceEventHandler(this._cesiumWidget.scene.canvas);
|
|
474
|
-
this.
|
|
355
|
+
this._screenSpaceListener = setupCesiumInteractions(this, this._cesiumWidget.scene, this.screenSpaceEventHandler);
|
|
475
356
|
this.initialized = true;
|
|
476
357
|
this.defaultTerrainProvider = this._cesiumWidget.scene.terrainProvider;
|
|
477
358
|
this._terrainProvider = this.defaultTerrainProvider;
|
|
@@ -485,7 +366,7 @@ class CesiumMap extends VcsMap {
|
|
|
485
366
|
this._defaultShadowMap = this._cesiumWidget.scene.shadowMap;
|
|
486
367
|
if (this._initialShadowMap) {
|
|
487
368
|
this.setShadowMap(this._initialShadowMap);
|
|
488
|
-
this._initialShadowMap =
|
|
369
|
+
this._initialShadowMap = undefined;
|
|
489
370
|
}
|
|
490
371
|
}
|
|
491
372
|
return Promise.resolve();
|
|
@@ -525,35 +406,7 @@ class CesiumMap extends VcsMap {
|
|
|
525
406
|
if (!this._cesiumWidget || !this._cesiumWidget.scene || !this.target) {
|
|
526
407
|
return null;
|
|
527
408
|
}
|
|
528
|
-
|
|
529
|
-
const cameraPositionCartesian = cam.position;
|
|
530
|
-
let groundPosition;
|
|
531
|
-
let distance;
|
|
532
|
-
const ray = new Ray(cam.position, cam.direction);
|
|
533
|
-
const groundPositionCartesian = this._cesiumWidget.scene.globe.pick(ray, this._cesiumWidget.scene);
|
|
534
|
-
if (groundPositionCartesian) {
|
|
535
|
-
distance = Cartesian3.distance(groundPositionCartesian, cameraPositionCartesian);
|
|
536
|
-
const groundPositionCartographic = Ellipsoid.WGS84.cartesianToCartographic(groundPositionCartesian);
|
|
537
|
-
groundPosition = [
|
|
538
|
-
CesiumMath.toDegrees(groundPositionCartographic.longitude),
|
|
539
|
-
CesiumMath.toDegrees(groundPositionCartographic.latitude),
|
|
540
|
-
groundPositionCartographic.height,
|
|
541
|
-
];
|
|
542
|
-
}
|
|
543
|
-
const cameraPositionCartographic = cam.positionCartographic;
|
|
544
|
-
const cameraPosition = [
|
|
545
|
-
CesiumMath.toDegrees(cameraPositionCartographic.longitude),
|
|
546
|
-
CesiumMath.toDegrees(cameraPositionCartographic.latitude),
|
|
547
|
-
cameraPositionCartographic.height,
|
|
548
|
-
];
|
|
549
|
-
return new Viewpoint({
|
|
550
|
-
groundPosition,
|
|
551
|
-
cameraPosition,
|
|
552
|
-
distance,
|
|
553
|
-
heading: CesiumMath.toDegrees(cam.heading),
|
|
554
|
-
pitch: CesiumMath.toDegrees(cam.pitch),
|
|
555
|
-
roll: CesiumMath.toDegrees(cam.roll),
|
|
556
|
-
});
|
|
409
|
+
return getViewpointFromScene(this._cesiumWidget.scene);
|
|
557
410
|
}
|
|
558
411
|
async gotoViewpoint(viewpoint, optMaximumHeight) {
|
|
559
412
|
if (this.movementApiCallsDisabled ||
|
|
@@ -638,17 +491,7 @@ class CesiumMap extends VcsMap {
|
|
|
638
491
|
if (!this._cesiumWidget) {
|
|
639
492
|
return 1;
|
|
640
493
|
}
|
|
641
|
-
|
|
642
|
-
const distance = Cartesian3.distance(cartesian, cam.position);
|
|
643
|
-
const fov = Math.PI / 3.0;
|
|
644
|
-
const width = this.mapElement.offsetWidth;
|
|
645
|
-
const height = this.mapElement.offsetHeight;
|
|
646
|
-
const aspectRatio = width / height;
|
|
647
|
-
const fovy = Math.atan(Math.tan(fov * 0.5) / aspectRatio) * 2.0;
|
|
648
|
-
const visibleMeters = 2 * distance * Math.tan(fovy / 2);
|
|
649
|
-
const relativeCircumference = Math.cos(Math.abs(latitude));
|
|
650
|
-
const visibleMapUnits = visibleMeters / relativeCircumference;
|
|
651
|
-
return visibleMapUnits / height;
|
|
494
|
+
return getResolution(cartesian, this._cesiumWidget.camera, this.mapElement, latitude);
|
|
652
495
|
}
|
|
653
496
|
getCurrentResolution(coordinate) {
|
|
654
497
|
const wgs84Coordinate = Projection.mercatorToWgs84(coordinate);
|
|
@@ -656,7 +499,7 @@ class CesiumMap extends VcsMap {
|
|
|
656
499
|
return this._getCurrentResolutionFromCartesianLatitude(cartesian, CesiumMath.toRadians(wgs84Coordinate[1]));
|
|
657
500
|
}
|
|
658
501
|
getCurrentResolutionFromCartesian(cartesian) {
|
|
659
|
-
return this._getCurrentResolutionFromCartesianLatitude(cartesian
|
|
502
|
+
return this._getCurrentResolutionFromCartesianLatitude(cartesian);
|
|
660
503
|
}
|
|
661
504
|
disableMovement(prevent) {
|
|
662
505
|
super.disableMovement(prevent);
|
|
@@ -673,7 +516,7 @@ class CesiumMap extends VcsMap {
|
|
|
673
516
|
if (clock !== activeClock) {
|
|
674
517
|
if (this._clockSyncListener) {
|
|
675
518
|
this._clockSyncListener();
|
|
676
|
-
this._clockSyncListener =
|
|
519
|
+
this._clockSyncListener = undefined;
|
|
677
520
|
}
|
|
678
521
|
this._clockSyncListener = synchronizeClock(clock, this.dataSourceDisplayClock);
|
|
679
522
|
}
|
|
@@ -691,7 +534,7 @@ class CesiumMap extends VcsMap {
|
|
|
691
534
|
this._defaultClock;
|
|
692
535
|
if (this._clockSyncListener) {
|
|
693
536
|
this._clockSyncListener();
|
|
694
|
-
this._clockSyncListener =
|
|
537
|
+
this._clockSyncListener = undefined;
|
|
695
538
|
}
|
|
696
539
|
this._clockSyncListener = synchronizeClock(activeClock, this.dataSourceDisplayClock);
|
|
697
540
|
}
|
|
@@ -739,7 +582,7 @@ class CesiumMap extends VcsMap {
|
|
|
739
582
|
*/
|
|
740
583
|
setDefaultShadowMap() {
|
|
741
584
|
if (!this._cesiumWidget || !this._defaultShadowMap) {
|
|
742
|
-
this._initialShadowMap =
|
|
585
|
+
this._initialShadowMap = undefined;
|
|
743
586
|
return;
|
|
744
587
|
}
|
|
745
588
|
this.setShadowMap(this._defaultShadowMap);
|
|
@@ -1002,9 +845,7 @@ class CesiumMap extends VcsMap {
|
|
|
1002
845
|
if (this.dataSourceDisplay && !this.dataSourceDisplay.isDestroyed()) {
|
|
1003
846
|
this.dataSourceDisplay.destroy();
|
|
1004
847
|
}
|
|
1005
|
-
this.
|
|
1006
|
-
cb();
|
|
1007
|
-
});
|
|
848
|
+
this._screenSpaceListener?.();
|
|
1008
849
|
if (this.screenSpaceEventHandler) {
|
|
1009
850
|
this.screenSpaceEventHandler.destroy();
|
|
1010
851
|
this.screenSpaceEventHandler = null;
|
|
@@ -1017,11 +858,11 @@ class CesiumMap extends VcsMap {
|
|
|
1017
858
|
this.defaultTerrainProvider = null;
|
|
1018
859
|
if (this._clockSyncListener) {
|
|
1019
860
|
this._clockSyncListener();
|
|
1020
|
-
this._clockSyncListener =
|
|
861
|
+
this._clockSyncListener = undefined;
|
|
1021
862
|
}
|
|
1022
863
|
if (this._preUpdateListener) {
|
|
1023
864
|
this._preUpdateListener();
|
|
1024
|
-
this._preUpdateListener =
|
|
865
|
+
this._preUpdateListener = undefined;
|
|
1025
866
|
}
|
|
1026
867
|
if (this._cameraLimiter) {
|
|
1027
868
|
this._cameraLimiter = null;
|
|
@@ -1036,7 +877,7 @@ class CesiumMap extends VcsMap {
|
|
|
1036
877
|
this._cesiumWidget.destroy();
|
|
1037
878
|
this._cesiumWidget = null;
|
|
1038
879
|
}
|
|
1039
|
-
this._initialShadowMap =
|
|
880
|
+
this._initialShadowMap = undefined;
|
|
1040
881
|
this._defaultShadowMap = null;
|
|
1041
882
|
this.shadowMapChanged.destroy();
|
|
1042
883
|
super.destroy();
|