@vcmap/core 6.1.11 → 6.2.0-rc.1
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 +52 -18
- package/dist/geojson.d.ts +3 -2
- package/dist/index.d.ts +239 -109
- package/dist/index.js +78 -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/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/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/layerOpenlayersImpl.d.ts +1 -1
- package/dist/src/layer/openlayers/layerOpenlayersImpl.js +0 -1
- 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 +54 -0
- package/dist/src/layer/panoramaDatasetLayer.js +201 -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 +293 -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/panoramaImageCache.d.ts +8 -0
- package/dist/src/panorama/panoramaImageCache.js +18 -0
- package/dist/src/panorama/panoramaImageCache.js.map +1 -0
- package/dist/src/panorama/panoramaImageView.d.ts +25 -0
- package/dist/src/panorama/panoramaImageView.js +331 -0
- package/dist/src/panorama/panoramaImageView.js.map +1 -0
- package/dist/src/panorama/panoramaTile.d.ts +19 -0
- package/dist/src/panorama/panoramaTile.js +57 -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 +102 -0
- package/dist/src/panorama/panoramaTileMaterial.js +225 -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 +313 -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/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/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/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 +316 -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 +52 -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/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/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/layerOpenlayersImpl.ts +2 -3
- 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 +283 -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 +410 -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/panoramaImageCache.ts +19 -0
- package/src/panorama/panoramaImageView.ts +448 -0
- package/src/panorama/panoramaTile.ts +89 -0
- package/src/panorama/panoramaTileCache.ts +40 -0
- package/src/panorama/panoramaTileCoordinate.ts +166 -0
- package/src/panorama/panoramaTileMaterial.ts +323 -0
- package/src/panorama/panoramaTileMaterialFS.glsl +165 -0
- package/src/panorama/panoramaTilePrimitiveCollection.ts +158 -0
- package/src/panorama/panoramaTileProvider.ts +536 -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/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/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
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import type { Primitive } from '@vcmap-cesium/engine';
|
|
2
|
+
import {
|
|
3
|
+
Cartesian3,
|
|
4
|
+
Color,
|
|
5
|
+
Math as CesiumMath,
|
|
6
|
+
PrimitiveCollection,
|
|
7
|
+
} from '@vcmap-cesium/engine';
|
|
8
|
+
import PanoramaTileMaterial, {
|
|
9
|
+
defaultCursorColor,
|
|
10
|
+
PanoramaOverlayMode,
|
|
11
|
+
} from './panoramaTileMaterial.js';
|
|
12
|
+
import VcsEvent from '../vcsEvent.js';
|
|
13
|
+
|
|
14
|
+
export default class PanoramaTilePrimitiveCollection extends PrimitiveCollection {
|
|
15
|
+
declare private _primitives: Primitive[];
|
|
16
|
+
|
|
17
|
+
private _showDebug = false;
|
|
18
|
+
|
|
19
|
+
private _opacity = 1.0;
|
|
20
|
+
|
|
21
|
+
private _cursorPosition: Cartesian3 = new Cartesian3(-1, -1, -1);
|
|
22
|
+
|
|
23
|
+
private _overlay: PanoramaOverlayMode = PanoramaOverlayMode.None;
|
|
24
|
+
|
|
25
|
+
private _overlayOpacity = 1.0;
|
|
26
|
+
|
|
27
|
+
private _overlayNaNColor: Color = Color.RED;
|
|
28
|
+
|
|
29
|
+
private _cursorColor: Color = Color.fromCssColorString(defaultCursorColor);
|
|
30
|
+
|
|
31
|
+
overlayChanged = new VcsEvent<PanoramaOverlayMode>();
|
|
32
|
+
|
|
33
|
+
constructor(options?: ConstructorParameters<typeof PrimitiveCollection>[0]) {
|
|
34
|
+
super(options ?? { destroyPrimitives: false });
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
get overlay(): PanoramaOverlayMode {
|
|
38
|
+
return this._overlay;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
set overlay(value: PanoramaOverlayMode) {
|
|
42
|
+
if (this._overlay !== value) {
|
|
43
|
+
this._overlay = value;
|
|
44
|
+
this._primitives.forEach((primitive) => {
|
|
45
|
+
(primitive.appearance.material as PanoramaTileMaterial).overlay = value;
|
|
46
|
+
});
|
|
47
|
+
this.overlayChanged.raiseEvent(value);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
get overlayOpacity(): number {
|
|
52
|
+
return this._overlayOpacity;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
set overlayOpacity(value: number) {
|
|
56
|
+
if (this._overlayOpacity !== value) {
|
|
57
|
+
this._overlayOpacity = value;
|
|
58
|
+
this._primitives.forEach((primitive) => {
|
|
59
|
+
(primitive.appearance.material as PanoramaTileMaterial).overlayOpacity =
|
|
60
|
+
value;
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
get overlayNaNColor(): Color {
|
|
66
|
+
return this._overlayNaNColor;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
set overlayNaNColor(value: Color) {
|
|
70
|
+
if (!this._overlayNaNColor.equals(value)) {
|
|
71
|
+
this._overlayNaNColor = value;
|
|
72
|
+
this._primitives.forEach((primitive) => {
|
|
73
|
+
(
|
|
74
|
+
primitive.appearance.material as PanoramaTileMaterial
|
|
75
|
+
).overlayNaNColor = value;
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
get showDebug(): boolean {
|
|
81
|
+
return this._showDebug;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
set showDebug(value: boolean) {
|
|
85
|
+
if (this._showDebug !== value) {
|
|
86
|
+
this._showDebug = value;
|
|
87
|
+
this._primitives.forEach((primitive) => {
|
|
88
|
+
(primitive.appearance.material as PanoramaTileMaterial).showDebug =
|
|
89
|
+
value;
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
get opacity(): number {
|
|
95
|
+
return this._opacity;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
set opacity(value: number) {
|
|
99
|
+
if (this._opacity !== value) {
|
|
100
|
+
this._opacity = value;
|
|
101
|
+
this._primitives.forEach((primitive) => {
|
|
102
|
+
(primitive.appearance.material as PanoramaTileMaterial).opacity = value;
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
get cursorPosition(): Cartesian3 {
|
|
108
|
+
return this._cursorPosition;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
set cursorPosition(value: Cartesian3) {
|
|
112
|
+
if (
|
|
113
|
+
!Cartesian3.equalsEpsilon(
|
|
114
|
+
this._cursorPosition,
|
|
115
|
+
value,
|
|
116
|
+
CesiumMath.EPSILON8,
|
|
117
|
+
)
|
|
118
|
+
) {
|
|
119
|
+
this._cursorPosition = value;
|
|
120
|
+
this._primitives.forEach((primitive) => {
|
|
121
|
+
(primitive.appearance.material as PanoramaTileMaterial).cursorPosition =
|
|
122
|
+
value;
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
get cursorColor(): Color {
|
|
128
|
+
return this._cursorColor;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
set cursorColor(value: Color) {
|
|
132
|
+
if (!this._cursorColor.equals(value)) {
|
|
133
|
+
this._cursorColor = value;
|
|
134
|
+
this._primitives.forEach((primitive) => {
|
|
135
|
+
(primitive.appearance.material as PanoramaTileMaterial).cursorColor =
|
|
136
|
+
value;
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
add(primitive: Primitive, index?: number): Primitive {
|
|
142
|
+
const { material } = primitive.appearance;
|
|
143
|
+
|
|
144
|
+
if (!(material instanceof PanoramaTileMaterial)) {
|
|
145
|
+
throw new Error('Material is not a PanoramaTileMaterial');
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
material.overlay = this.overlay;
|
|
149
|
+
material.overlayOpacity = this.overlayOpacity;
|
|
150
|
+
material.overlayNaNColor = this.overlayNaNColor;
|
|
151
|
+
material.showDebug = this.showDebug;
|
|
152
|
+
material.opacity = this.opacity;
|
|
153
|
+
material.cursorPosition = this.cursorPosition;
|
|
154
|
+
material.cursorColor = this.cursorColor;
|
|
155
|
+
|
|
156
|
+
return super.add(primitive, index) as Primitive;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
@@ -0,0 +1,536 @@
|
|
|
1
|
+
import type { Matrix4 } from '@vcmap-cesium/engine';
|
|
2
|
+
import { getLogger } from '@vcsuite/logger';
|
|
3
|
+
import type { GeoTIFFImage } from 'geotiff';
|
|
4
|
+
import { Pool } from 'geotiff';
|
|
5
|
+
import type { Size } from 'ol/size.js';
|
|
6
|
+
import type { PanoramaTile } from './panoramaTile.js';
|
|
7
|
+
import { createPanoramaTile } from './panoramaTile.js';
|
|
8
|
+
import VcsEvent from '../vcsEvent.js';
|
|
9
|
+
import { addTileToCache, PanoramaTileCache } from './panoramaTileCache.js';
|
|
10
|
+
import {
|
|
11
|
+
tileCoordinateFromImageCoordinate,
|
|
12
|
+
type PanoramaTileCoordinate,
|
|
13
|
+
getTileSphericalExtent,
|
|
14
|
+
} from './panoramaTileCoordinate.js';
|
|
15
|
+
import type {
|
|
16
|
+
DepthGDALMetadata,
|
|
17
|
+
PanoramaFileDirectoryMetadata,
|
|
18
|
+
} from './panoramaImage.js';
|
|
19
|
+
|
|
20
|
+
export type PanoramaResourceType = 'rgb' | 'intensity' | 'depth';
|
|
21
|
+
export type PanoramaResourceData<T extends PanoramaResourceType> =
|
|
22
|
+
T extends 'rgb'
|
|
23
|
+
? ImageBitmap
|
|
24
|
+
: T extends 'intensity'
|
|
25
|
+
? ImageBitmap
|
|
26
|
+
: T extends 'depth'
|
|
27
|
+
? Float32Array
|
|
28
|
+
: never;
|
|
29
|
+
|
|
30
|
+
export type PanoramaTileLoadError = {
|
|
31
|
+
tileCoordinate: PanoramaTileCoordinate;
|
|
32
|
+
error: Error;
|
|
33
|
+
type: PanoramaResourceType;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
type PanoramaResourceProvider = {
|
|
37
|
+
destroy(): void;
|
|
38
|
+
/**
|
|
39
|
+
* Sets the currently visible tiles and creates or updates the queue for loading resources.
|
|
40
|
+
*/
|
|
41
|
+
setVisibleTiles(panoramaTiles: PanoramaTile[]): void;
|
|
42
|
+
/**
|
|
43
|
+
* Loads the resource for the given tile and type. If the resource is already loaded, it returns a resolved promise.
|
|
44
|
+
* If the resource is currently loading, it returns the promise of that loading operation. Mainly used to request depth.
|
|
45
|
+
* @param tile - The panorama tile to load the resource for.
|
|
46
|
+
* @param type - The type of resource to load.
|
|
47
|
+
*/
|
|
48
|
+
loadResource(tile: PanoramaTile, type: PanoramaResourceType): Promise<void>;
|
|
49
|
+
showIntensity: boolean;
|
|
50
|
+
readonly loading: boolean;
|
|
51
|
+
loadingStateChanged: VcsEvent<boolean>;
|
|
52
|
+
tileError: VcsEvent<PanoramaTileLoadError>;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
export type PanoramaImageDecoder = {
|
|
56
|
+
decode(
|
|
57
|
+
fileDirectory: { vcsPanorama: PanoramaFileDirectoryMetadata },
|
|
58
|
+
buffer: ArrayBuffer,
|
|
59
|
+
): Promise<PanoramaResourceData<PanoramaResourceType>>;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
type PanoramaResource<T extends PanoramaResourceType> = {
|
|
63
|
+
type: T;
|
|
64
|
+
levelImages: GeoTIFFImage[];
|
|
65
|
+
} & (T extends 'depth'
|
|
66
|
+
? {
|
|
67
|
+
metadata: DepthGDALMetadata;
|
|
68
|
+
}
|
|
69
|
+
: {
|
|
70
|
+
metadata?: never;
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
type TileResourceRequest<T extends PanoramaResourceType> = {
|
|
74
|
+
tile: PanoramaTile;
|
|
75
|
+
resource: PanoramaResource<T>;
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
type ResourceOptions = {
|
|
79
|
+
rgb: PanoramaResource<'rgb'>;
|
|
80
|
+
intensity?: PanoramaResource<'intensity'>;
|
|
81
|
+
depth?: PanoramaResource<'depth'>;
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
export type PanoramaTileProvider = {
|
|
85
|
+
/**
|
|
86
|
+
* Creates or the visible tiles for the given tile coordinates or retrieves them from the cache.
|
|
87
|
+
*/
|
|
88
|
+
createVisibleTiles(tileCoordinates: PanoramaTileCoordinate[]): PanoramaTile[];
|
|
89
|
+
/**
|
|
90
|
+
* Gets the depth at the given image coordinate for the current level.
|
|
91
|
+
*/
|
|
92
|
+
getDepthAtImageCoordinate(
|
|
93
|
+
imageCoordinate: [number, number],
|
|
94
|
+
): Promise<number | undefined>;
|
|
95
|
+
/**
|
|
96
|
+
* Gets the depth at the given image coordinate for the most detailed level.
|
|
97
|
+
*/
|
|
98
|
+
getDepthAtImageCoordinateMostDetailed(
|
|
99
|
+
imageCoordinate: [number, number],
|
|
100
|
+
): Promise<number | undefined>;
|
|
101
|
+
/**
|
|
102
|
+
* The promise that resolves when the intensity images are loaded and ready to be used.
|
|
103
|
+
*/
|
|
104
|
+
intensityReady: Promise<void>;
|
|
105
|
+
/**
|
|
106
|
+
* Load & show intensity images.
|
|
107
|
+
*/
|
|
108
|
+
showIntensity: boolean;
|
|
109
|
+
/**
|
|
110
|
+
* The current level of the panorama tile provider. This is set by the panorama viewer and is used to determine which depth tiles to query.
|
|
111
|
+
*/
|
|
112
|
+
currentLevel: number;
|
|
113
|
+
readonly loading: boolean;
|
|
114
|
+
/**
|
|
115
|
+
* Raised with true, if we start loading new data. raised with false, if all tiles are loaded.
|
|
116
|
+
*/
|
|
117
|
+
loadingStateChanged: VcsEvent<boolean>;
|
|
118
|
+
tileError: VcsEvent<PanoramaTileLoadError>;
|
|
119
|
+
destroy(): void;
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
let defaultImagePool: Pool | undefined;
|
|
123
|
+
function getDefaultImagePool(): Pool {
|
|
124
|
+
if (!defaultImagePool) {
|
|
125
|
+
let workerUrl: URL;
|
|
126
|
+
if (window.vcs.workerBase) {
|
|
127
|
+
workerUrl = new URL(
|
|
128
|
+
`${window.vcs.workerBase}/panoramaImageWorker.js`,
|
|
129
|
+
window.location.href,
|
|
130
|
+
);
|
|
131
|
+
} else {
|
|
132
|
+
workerUrl = new URL('../workers/panoramaImageWorker.js', import.meta.url);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
defaultImagePool = new Pool(undefined, () => {
|
|
136
|
+
return new Worker(workerUrl, {
|
|
137
|
+
type: 'module',
|
|
138
|
+
});
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
return defaultImagePool;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* The priority order in which the panorama resources are loaded.
|
|
146
|
+
*/
|
|
147
|
+
const typeOrder: Record<PanoramaResourceType, number> = {
|
|
148
|
+
rgb: 0,
|
|
149
|
+
intensity: 1,
|
|
150
|
+
depth: 2,
|
|
151
|
+
} as const;
|
|
152
|
+
|
|
153
|
+
function createPanoramaResourceProvider(
|
|
154
|
+
resources: ResourceOptions,
|
|
155
|
+
minLevel: number,
|
|
156
|
+
poolOrDecoder: Pool | PanoramaImageDecoder,
|
|
157
|
+
concurrency = 6,
|
|
158
|
+
): PanoramaResourceProvider {
|
|
159
|
+
let currentlyVisibleTiles: PanoramaTile[] = [];
|
|
160
|
+
let loading = false;
|
|
161
|
+
let showIntensity = false;
|
|
162
|
+
|
|
163
|
+
const tileError = new VcsEvent<PanoramaTileLoadError>();
|
|
164
|
+
const loadingStateChanged = new VcsEvent<boolean>();
|
|
165
|
+
|
|
166
|
+
const loadResource = async (
|
|
167
|
+
request: TileResourceRequest<PanoramaResourceType>,
|
|
168
|
+
): Promise<void> => {
|
|
169
|
+
const { tile, resource } = request;
|
|
170
|
+
const { type } = resource;
|
|
171
|
+
if (!tile.material.hasTexture(type)) {
|
|
172
|
+
const { levelImages } = resource;
|
|
173
|
+
const { tileCoordinate } = tile;
|
|
174
|
+
const levelImage = levelImages[tileCoordinate.level - minLevel];
|
|
175
|
+
if (levelImage) {
|
|
176
|
+
try {
|
|
177
|
+
const resourceData = await levelImage.getTileOrStrip(
|
|
178
|
+
tileCoordinate.x,
|
|
179
|
+
tileCoordinate.y,
|
|
180
|
+
levelImage.getSamplesPerPixel(),
|
|
181
|
+
poolOrDecoder,
|
|
182
|
+
);
|
|
183
|
+
|
|
184
|
+
tile.material.setTexture(
|
|
185
|
+
type,
|
|
186
|
+
resourceData.data as unknown as PanoramaResourceData<PanoramaResourceType>,
|
|
187
|
+
);
|
|
188
|
+
} catch (error) {
|
|
189
|
+
tileError.raiseEvent({
|
|
190
|
+
tileCoordinate,
|
|
191
|
+
error: error as Error,
|
|
192
|
+
type,
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
};
|
|
198
|
+
|
|
199
|
+
let currentQueue: TileResourceRequest<PanoramaResourceType>[] = [];
|
|
200
|
+
const loadingTiles = new Map<
|
|
201
|
+
PanoramaTile,
|
|
202
|
+
Record<PanoramaResourceType, Promise<void> | undefined>
|
|
203
|
+
>();
|
|
204
|
+
|
|
205
|
+
const startQueue = (): void => {
|
|
206
|
+
async function* loadNextTileGenerator(): AsyncGenerator<void> {
|
|
207
|
+
while (currentQueue?.length) {
|
|
208
|
+
const currentTile = currentQueue.pop()!;
|
|
209
|
+
if (!loadingTiles.has(currentTile.tile)) {
|
|
210
|
+
loadingTiles.set(currentTile.tile, {
|
|
211
|
+
rgb: undefined,
|
|
212
|
+
intensity: undefined,
|
|
213
|
+
depth: undefined,
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
const currentTileTypes = loadingTiles.get(currentTile.tile)!;
|
|
217
|
+
const promise = loadResource(currentTile);
|
|
218
|
+
currentTileTypes[currentTile.resource.type] = promise;
|
|
219
|
+
// eslint-disable-next-line no-await-in-loop
|
|
220
|
+
await promise;
|
|
221
|
+
currentTileTypes[currentTile.resource.type] = undefined;
|
|
222
|
+
if (
|
|
223
|
+
!currentTileTypes.rgb &&
|
|
224
|
+
!currentTileTypes.depth &&
|
|
225
|
+
!currentTileTypes.intensity
|
|
226
|
+
) {
|
|
227
|
+
loadingTiles.delete(currentTile.tile);
|
|
228
|
+
}
|
|
229
|
+
yield;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
// we create N generators. thus, AT MOST N web requests are made in parallel.
|
|
234
|
+
// this allows us to not abort web request and still keep the queue dynamic
|
|
235
|
+
const generators = Array.from({ length: concurrency }, () =>
|
|
236
|
+
loadNextTileGenerator(),
|
|
237
|
+
);
|
|
238
|
+
|
|
239
|
+
const promises = generators.map(async (gen) => {
|
|
240
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention,@typescript-eslint/no-unused-vars
|
|
241
|
+
for await (const _ of gen) {
|
|
242
|
+
// just iterating
|
|
243
|
+
}
|
|
244
|
+
});
|
|
245
|
+
|
|
246
|
+
Promise.all(promises)
|
|
247
|
+
.then(() => {
|
|
248
|
+
loading = false;
|
|
249
|
+
loadingStateChanged.raiseEvent(false);
|
|
250
|
+
})
|
|
251
|
+
.catch((e: unknown) => {
|
|
252
|
+
getLogger('PanoramaTileProvider').warning('Error loading tiles');
|
|
253
|
+
getLogger('PanoramaTileProvider').warning(String(e));
|
|
254
|
+
});
|
|
255
|
+
};
|
|
256
|
+
|
|
257
|
+
const createOrUpdateQueue = (panoramaTile: PanoramaTile[]): void => {
|
|
258
|
+
const newResources = panoramaTile.flatMap((tile) => {
|
|
259
|
+
const resourceRequests: TileResourceRequest<PanoramaResourceType>[] = [];
|
|
260
|
+
if (!tile.material.hasTexture('rgb') && !loadingTiles.get(tile)?.rgb) {
|
|
261
|
+
resourceRequests.push({
|
|
262
|
+
tile,
|
|
263
|
+
resource: resources.rgb,
|
|
264
|
+
});
|
|
265
|
+
}
|
|
266
|
+
if (resources.depth) {
|
|
267
|
+
if (
|
|
268
|
+
!tile.material.hasTexture('depth') &&
|
|
269
|
+
!loadingTiles.get(tile)?.depth
|
|
270
|
+
) {
|
|
271
|
+
resourceRequests.push({
|
|
272
|
+
tile,
|
|
273
|
+
resource: resources.depth,
|
|
274
|
+
});
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
if (showIntensity && resources.intensity) {
|
|
278
|
+
if (
|
|
279
|
+
!tile.material.hasTexture('intensity') &&
|
|
280
|
+
!loadingTiles.get(tile)?.intensity
|
|
281
|
+
) {
|
|
282
|
+
resourceRequests.push({
|
|
283
|
+
tile,
|
|
284
|
+
resource: resources.intensity,
|
|
285
|
+
});
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
return resourceRequests;
|
|
290
|
+
});
|
|
291
|
+
|
|
292
|
+
if (newResources.length === 0) {
|
|
293
|
+
return;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
newResources.sort(
|
|
297
|
+
(a, b) => typeOrder[b.resource.type] - typeOrder[a.resource.type],
|
|
298
|
+
);
|
|
299
|
+
|
|
300
|
+
if (currentQueue.length > 0) {
|
|
301
|
+
currentQueue.splice(0, currentQueue.length, ...newResources);
|
|
302
|
+
} else {
|
|
303
|
+
loading = true;
|
|
304
|
+
loadingStateChanged.raiseEvent(true);
|
|
305
|
+
currentQueue = newResources;
|
|
306
|
+
startQueue();
|
|
307
|
+
}
|
|
308
|
+
};
|
|
309
|
+
|
|
310
|
+
return {
|
|
311
|
+
setVisibleTiles(panoramaTiles: PanoramaTile[]): void {
|
|
312
|
+
currentlyVisibleTiles = panoramaTiles.slice();
|
|
313
|
+
createOrUpdateQueue(currentlyVisibleTiles);
|
|
314
|
+
},
|
|
315
|
+
get showIntensity(): boolean {
|
|
316
|
+
return showIntensity;
|
|
317
|
+
},
|
|
318
|
+
set showIntensity(value: boolean) {
|
|
319
|
+
showIntensity = value;
|
|
320
|
+
if (value && resources.intensity) {
|
|
321
|
+
createOrUpdateQueue(currentlyVisibleTiles);
|
|
322
|
+
}
|
|
323
|
+
},
|
|
324
|
+
loadResource(
|
|
325
|
+
tile: PanoramaTile,
|
|
326
|
+
type: PanoramaResourceType,
|
|
327
|
+
): Promise<void> {
|
|
328
|
+
if (!resources[type]) {
|
|
329
|
+
throw new Error(`Resource type ${type} not found`);
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
if (tile.material.hasTexture(type)) {
|
|
333
|
+
return Promise.resolve();
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
if (loadingTiles.has(tile) && loadingTiles.get(tile)?.[type]) {
|
|
337
|
+
return loadingTiles.get(tile)![type]!;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
return loadResource({ tile, resource: resources[type] });
|
|
341
|
+
},
|
|
342
|
+
get loading(): boolean {
|
|
343
|
+
return loading;
|
|
344
|
+
},
|
|
345
|
+
tileError,
|
|
346
|
+
loadingStateChanged,
|
|
347
|
+
destroy(): void {
|
|
348
|
+
currentQueue = [];
|
|
349
|
+
tileError.destroy();
|
|
350
|
+
},
|
|
351
|
+
};
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
function interpolateDepth(
|
|
355
|
+
value: number,
|
|
356
|
+
min: number,
|
|
357
|
+
max: number,
|
|
358
|
+
minValue = 1 / 65535,
|
|
359
|
+
maxValue = 1,
|
|
360
|
+
): number {
|
|
361
|
+
return min + ((value - minValue) / (maxValue - minValue)) * (max - min);
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
/**
|
|
365
|
+
* Creates a panorama tile provider for the given images.
|
|
366
|
+
* @param rgbImages - the images ordered by level. lowest level (smallest overview) first. that level is given by minLevel. all other levels must be consecutive.
|
|
367
|
+
* @param modelMatrix - the model matrix of the image
|
|
368
|
+
* @param tileSize - the size of the tile in pixels
|
|
369
|
+
* @param minLevel - the minimum level of the images
|
|
370
|
+
* @param maxCacheSize - the cache size for the number of tiles to cache. (LRU cache in use)
|
|
371
|
+
* @param concurrency - the number of concurrent web requests to load tiles with
|
|
372
|
+
* @param poolOrDecoder - an optional pool to decode directly to image bitmaps. most scenarios will use the default, mainly used for headless testing
|
|
373
|
+
*/
|
|
374
|
+
export function createPanoramaTileProvider(
|
|
375
|
+
rgbImages: GeoTIFFImage[],
|
|
376
|
+
modelMatrix: Matrix4,
|
|
377
|
+
tileSize: Size,
|
|
378
|
+
minLevel: number,
|
|
379
|
+
maxLevel: number,
|
|
380
|
+
getIntensityImages?: () => Promise<GeoTIFFImage[]>,
|
|
381
|
+
depth?: { levelImages: GeoTIFFImage[]; metadata: DepthGDALMetadata },
|
|
382
|
+
maxCacheSize?: number,
|
|
383
|
+
concurrency = 6,
|
|
384
|
+
poolOrDecoder: Pool | PanoramaImageDecoder = getDefaultImagePool(),
|
|
385
|
+
): PanoramaTileProvider {
|
|
386
|
+
const cache = new PanoramaTileCache(maxCacheSize);
|
|
387
|
+
const resources: ResourceOptions = {
|
|
388
|
+
rgb: {
|
|
389
|
+
type: 'rgb',
|
|
390
|
+
levelImages: rgbImages,
|
|
391
|
+
},
|
|
392
|
+
};
|
|
393
|
+
|
|
394
|
+
if (depth) {
|
|
395
|
+
resources.depth = {
|
|
396
|
+
...depth,
|
|
397
|
+
type: 'depth',
|
|
398
|
+
};
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
const resourceProvider = createPanoramaResourceProvider(
|
|
402
|
+
resources,
|
|
403
|
+
minLevel,
|
|
404
|
+
poolOrDecoder,
|
|
405
|
+
concurrency,
|
|
406
|
+
);
|
|
407
|
+
let showIntensity = false;
|
|
408
|
+
|
|
409
|
+
const destroy = (): void => {
|
|
410
|
+
cache.clear();
|
|
411
|
+
resourceProvider.destroy();
|
|
412
|
+
};
|
|
413
|
+
|
|
414
|
+
let currentlyVisibleTileCoordinates: Record<string, boolean> = {};
|
|
415
|
+
const createTile = (tileCoordinate: PanoramaTileCoordinate): PanoramaTile => {
|
|
416
|
+
if (cache.containsKey(tileCoordinate.key)) {
|
|
417
|
+
return cache.get(tileCoordinate.key);
|
|
418
|
+
}
|
|
419
|
+
const newTile = createPanoramaTile(tileCoordinate, modelMatrix, tileSize);
|
|
420
|
+
addTileToCache(newTile, cache, currentlyVisibleTileCoordinates);
|
|
421
|
+
return newTile;
|
|
422
|
+
};
|
|
423
|
+
|
|
424
|
+
const getDepthAtImageCoordinate = async (
|
|
425
|
+
imageCoordinate: [number, number],
|
|
426
|
+
level: number,
|
|
427
|
+
): Promise<number | undefined> => {
|
|
428
|
+
if (!resources.depth) {
|
|
429
|
+
return undefined;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
const tileCoordinate = tileCoordinateFromImageCoordinate(
|
|
433
|
+
imageCoordinate,
|
|
434
|
+
level,
|
|
435
|
+
);
|
|
436
|
+
const tile = createTile(tileCoordinate);
|
|
437
|
+
await resourceProvider.loadResource(tile, 'depth');
|
|
438
|
+
|
|
439
|
+
const [minPhi, minTheta, maxPhi, maxTheta] =
|
|
440
|
+
getTileSphericalExtent(tileCoordinate);
|
|
441
|
+
const offsetX = imageCoordinate[0] - minPhi;
|
|
442
|
+
const offsetY = imageCoordinate[1] - minTheta;
|
|
443
|
+
|
|
444
|
+
const width = maxPhi - minPhi;
|
|
445
|
+
const height = maxTheta - minTheta;
|
|
446
|
+
|
|
447
|
+
const x = tileSize[0] - Math.floor((offsetX / width) * tileSize[0]);
|
|
448
|
+
const y = Math.floor((offsetY / height) * tileSize[1]);
|
|
449
|
+
|
|
450
|
+
const depthValue = tile.material.getDepthAtPixel(x, y);
|
|
451
|
+
if (depthValue) {
|
|
452
|
+
return interpolateDepth(
|
|
453
|
+
depthValue,
|
|
454
|
+
depth?.metadata?.min ?? 0,
|
|
455
|
+
depth?.metadata?.max ?? 50,
|
|
456
|
+
);
|
|
457
|
+
}
|
|
458
|
+
return depthValue;
|
|
459
|
+
};
|
|
460
|
+
|
|
461
|
+
let resolveIntensity: () => void;
|
|
462
|
+
let rejectIntensity: (reason?: unknown) => void;
|
|
463
|
+
const intensityReady = new Promise<void>((resolve, reject) => {
|
|
464
|
+
resolveIntensity = resolve;
|
|
465
|
+
rejectIntensity = reject;
|
|
466
|
+
});
|
|
467
|
+
|
|
468
|
+
const loadIntensityImages = (): void => {
|
|
469
|
+
if (!resources.intensity && getIntensityImages) {
|
|
470
|
+
getIntensityImages()
|
|
471
|
+
.then((intensityImages) => {
|
|
472
|
+
resources.intensity = {
|
|
473
|
+
type: 'intensity',
|
|
474
|
+
levelImages: intensityImages,
|
|
475
|
+
};
|
|
476
|
+
if (showIntensity) {
|
|
477
|
+
resourceProvider.showIntensity = true;
|
|
478
|
+
}
|
|
479
|
+
resolveIntensity();
|
|
480
|
+
})
|
|
481
|
+
.catch((e: unknown) => {
|
|
482
|
+
getLogger('PanoramaTileProvider').warning(
|
|
483
|
+
'Error loading intensity images',
|
|
484
|
+
);
|
|
485
|
+
getLogger('PanoramaTileProvider').warning(String(e));
|
|
486
|
+
rejectIntensity(e);
|
|
487
|
+
});
|
|
488
|
+
}
|
|
489
|
+
};
|
|
490
|
+
|
|
491
|
+
return {
|
|
492
|
+
createVisibleTiles(
|
|
493
|
+
tileCoordinates: PanoramaTileCoordinate[],
|
|
494
|
+
): PanoramaTile[] {
|
|
495
|
+
currentlyVisibleTileCoordinates = Object.fromEntries(
|
|
496
|
+
tileCoordinates.map((tile) => [tile.key, true]),
|
|
497
|
+
);
|
|
498
|
+
|
|
499
|
+
const panoramaTiles = tileCoordinates.map(createTile);
|
|
500
|
+
resourceProvider.setVisibleTiles(panoramaTiles.slice());
|
|
501
|
+
return panoramaTiles;
|
|
502
|
+
},
|
|
503
|
+
currentLevel: minLevel,
|
|
504
|
+
get loading(): boolean {
|
|
505
|
+
return resourceProvider.loading;
|
|
506
|
+
},
|
|
507
|
+
get intensityReady(): Promise<void> {
|
|
508
|
+
return intensityReady;
|
|
509
|
+
},
|
|
510
|
+
get showIntensity(): boolean {
|
|
511
|
+
return showIntensity;
|
|
512
|
+
},
|
|
513
|
+
set showIntensity(value: boolean) {
|
|
514
|
+
showIntensity = value;
|
|
515
|
+
// XXX this entire thing is a mess
|
|
516
|
+
if (resources.intensity) {
|
|
517
|
+
resourceProvider.showIntensity = value;
|
|
518
|
+
} else if (value) {
|
|
519
|
+
loadIntensityImages();
|
|
520
|
+
}
|
|
521
|
+
},
|
|
522
|
+
getDepthAtImageCoordinateMostDetailed(
|
|
523
|
+
imageCoordinate: [number, number],
|
|
524
|
+
): Promise<number | undefined> {
|
|
525
|
+
return getDepthAtImageCoordinate(imageCoordinate, maxLevel);
|
|
526
|
+
},
|
|
527
|
+
getDepthAtImageCoordinate(
|
|
528
|
+
imageCoordinate: [number, number],
|
|
529
|
+
): Promise<number | undefined> {
|
|
530
|
+
return getDepthAtImageCoordinate(imageCoordinate, this.currentLevel);
|
|
531
|
+
},
|
|
532
|
+
tileError: resourceProvider.tileError,
|
|
533
|
+
loadingStateChanged: resourceProvider.loadingStateChanged,
|
|
534
|
+
destroy,
|
|
535
|
+
};
|
|
536
|
+
}
|