@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"panoramaTileMaterial.js","sourceRoot":"","sources":["../../../src/panorama/panoramaTileMaterial.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,UAAU,EACV,UAAU,EACV,KAAK,EACL,QAAQ,EACR,aAAa,EACb,WAAW,EACX,OAAO,EACP,OAAO,GACR,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACL,gBAAgB,GAEjB,MAAM,6BAA6B,CAAC;AACrC,OAAO,MAAM,MAAM,oCAAoC,CAAC;AAMxD,MAAM,CAAC,MAAM,kBAAkB,GAAG,yBAAyB,CAAC;AAE5D;;GAEG;AACH,MAAM,CAAN,IAAY,mBAIX;AAJD,WAAY,mBAAmB;IAC7B,6DAAQ,CAAA;IACR,uEAAa,CAAA;IACb,+DAAS,CAAA;AACX,CAAC,EAJW,mBAAmB,KAAnB,mBAAmB,QAI9B;AAqBD,SAAS,iBAAiB,CAAC,QAAc,EAAE,IAAY;IACrD,MAAM,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;IAChD,MAAM,CAAC,KAAK,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;IAC3B,MAAM,CAAC,MAAM,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;IAE5B,MAAM,GAAG,GAAG,MAAM,CAAC,UAAU,CAAC,IAAI,CAAE,CAAC;IACrC,GAAG,CAAC,WAAW,GAAG,SAAS,CAAC;IAC5B,GAAG,CAAC,SAAS,GAAG,CAAC,CAAC;IAClB,GAAG,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;IAE/C,GAAG,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,EA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AC;gBAC1B,kBAAkB,EAAE,IAAI,CAAC,mBAAmB;gBAC5C,mBAAmB,EAAE,IAAI,CAAC,oBAAoB;aAC/C,CAAC,CAAC;YAEH,IAAI,CAAC,QAAQ,CAAC,OAAO,GAAG,IAAI,OAAO,CAAC;gBAClC,OAAO;gBACP,aAAa,EAAE,aAAa,CAAC,KAAK;gBAClC,WAAW,EAAE,WAAW,CAAC,GAAG;gBAC5B,MAAM,EAAE;oBACN,eAAe,EAAE,IAAI,CAAC,UAAU;oBAChC,KAAK,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC;oBACxB,MAAM,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC;iBAC1B;gBACD,OAAO;aACR,CAAC,CAAC;QACL,CAAC;aAAM,IACL,CAAC,IAAI,CAAC,QAAQ,CAAC,YAAY;YAC3B,IAAI,CAAC,QAAQ,CAAC,OAAO,KAAK,QAAQ,CAAC,cAAc,EACjD,CAAC;YACD,IAAI,CAAC,QAAQ,CAAC,YAAY,GAAG,IAAI,CAAC;QACpC,CAAC;QAED,uCAAuC;QACvC,6DAA6D;QAC7D,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAEtB,IAAI,YAAY,EAAE,CAAC;YACjB,IAAI,CAAC,QAAQ,CAAC,YAAY,GAAG,IAAI,CAAC;QACpC,CAAC;QAED,IAAI,gBAAgB,EAAE,CAAC;YACrB,IAAI,CAAC,QAAQ,CAAC,gBAAgB,GAAG,IAAI,CAAC;QACxC,CAAC;IACH,CAAC;CACF"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: "\n/**\n * Fragment shader for panorama tile rendering\n *\n * This shader handles rendering of panorama tiles with support for:\n * - RGB image display\n * - Intensity data visualization\n * - Depth information processing\n * - Debug mode overlays\n * - Interactive cursor highlighting\n *\n * @uniform {sampler2D} u_rgb - RGB panorama texture\n * @uniform {sampler2D} u_intensity - Intensity data texture\n * @uniform {sampler2D} u_depth - Depth data texture (16-bit encoded in RG channels)\n * @uniform {sampler2D} u_debug - Debug visualization texture\n * @uniform {vec3} u_cursorPosition - 3D cursor position for interaction\n * @uniform {vec2} u_minUV, u_maxSt - Texture coordinate bounds\n * @unifrom {vec3} u_maxUV - Texture coordinate bounds\n * @uniform {float} u_opacity - Overall opacity of the material\n * @uniform {float} u_overlayIntensity - Overlay intensity (for both modes)\n * @uniform {int} u_overlay - Overlay mode (0 = intensity, 1 = depth)\n * @uniform {bool} u_imageReady - Flag indicating if image data is ready\n * @uniform {bool} u_intensityReady - Flag indicating if intensity data is ready\n * @uniform {bool} u_depthReady - Flag indicating if depth data is ready\n * @uniform {vec4} u_overlayNaNColor - Color used for missing/NaN overlay values\n */\n\n#define OVERLAY_INTENSITY 1.0\n#define OVERLAY_DEPTH 2.0\n\n/**\n * hardcoded constants for cursor rendering. calculated as follows:\n * radius = 0.01\n * number_of_rings = 3\n * width = (radius * 2) / ((number_of_rings * 2) + 1)\n * jerks = [width / 2];\n * num_jerks = number_of_rings * 2 - 1;\n * for (let i = 1; i < num_jerks; i++) {\n * jerks.push(jerks[i - 1] + width);\n * }\n */\n#define CURSOR_CENTER_RADIUS 0.00111111111111111\n#define CURSOR_WIDTH_1_IN 0.00333333333333333\n#define CURSOR_WIDTH_1_OUT 0.0055555555555555\n#define CURSOR_WIDTH_2_IN 0.00777777777777777\n#define CURSOR_WIDTH_2_OUT 0.01\n\n/**\n * Converts spherical texture coordinates (x, y) to Cartesian coordinates. see spherical coordinates for more details on the coordinate system.\n * @param {float} st_x - spherical texture coordinates .\n * @param {float} st_y - spherical texture coordinates y.\n * @returns {vec3} - Cartesian coordinates\n */\nvec3 getCartesian(float st_x, float st_y)\n{\n float phi = st_x * 2.0 * 3.14159265359;\n // texture coordinates are flipped in y axis\n float theta = 3.14159265359 - st_y * 3.14159265359;\n return vec3(\n sin(theta) * cos(phi),\n sin(theta) * sin(phi),\n cos(theta)\n );\n}\n\n/**\n * Fetches the texel value from the intensity or depth texture.\n * @param {sampler2D} source - The texture to sample from (intensity or depth).\n * @param {vec2} scaled_st - Scaled texture coordinates.\n * @returns {float} - The sampled value.\n */\nfloat get_texel_value(sampler2D source, vec2 scaled_uv)\n{\n ivec2 texSize = textureSize(source, 0);\n ivec2 pixelCoord = ivec2(scaled_uv * vec2(texSize));\n\n vec4 texel_value = texelFetch(source, pixelCoord, 0);\n\n float sample_value = 0.0;\n sample_value = texel_value.r;\n\n return sample_value;\n}\n\nczm_material czm_getMaterial(czm_materialInput materialInput)\n{\n czm_material m = czm_getDefaultMaterial(materialInput);\n if (!u_imageReady) {\n m.alpha = 0.0;\n return m;\n }\n\n vec2 clamped_uv = clamp(materialInput.st, u_minUV, u_maxUV);\n vec2 scaled_uv = (clamped_uv - u_minUV) / (u_maxUV - u_minUV);\n\n vec4 t_color = texture(u_rgb, scaled_uv);\n if (u_intensityReady && u_overlay == OVERLAY_INTENSITY)\n {\n float inensity_value = get_texel_value(u_intensity, scaled_uv);\n vec4 intensity_color;\n if (inensity_value > 0.0)\n {\n intensity_color = vec4(inensity_value, inensity_value, inensity_value, 1.0);\n }\n else\n {\n intensity_color = u_overlayNaNColor;\n }\n t_color = mix(t_color, intensity_color, u_overlayOpacity);\n }\n\n bool has_position = u_cursorPosition != vec3(-1.0, -1.0, -1.0) && u_cursorColor.a > 0.0;\n bool show_depth = u_overlay == OVERLAY_DEPTH;\n if (u_depthReady && (show_depth || has_position))\n {\n float avg_depth = get_texel_value(u_depth, scaled_uv);\n if (show_depth)\n {\n vec4 depth_color;\n if (avg_depth > 0.0)\n {\n depth_color = vec4(avg_depth, avg_depth, avg_depth, 1.0);\n }\n else\n {\n depth_color = u_overlayNaNColor;\n }\n t_color = mix(t_color, depth_color, u_overlayOpacity);\n }\n\n if (has_position && avg_depth > 0.0)\n {\n vec3 fragment_position = getCartesian(materialInput.st.x, materialInput.st.y);\n fragment_position *= avg_depth;\n float dist_to_cursor = distance(fragment_position, u_cursorPosition);\n\n if (dist_to_cursor < CURSOR_CENTER_RADIUS)\n {\n t_color = mix(t_color, u_cursorColor, u_cursorColor.a);\n }\n else if (dist_to_cursor > CURSOR_WIDTH_1_IN && dist_to_cursor < CURSOR_WIDTH_1_OUT)\n {\n t_color = mix(t_color, u_cursorColor, u_cursorColor.a);\n }\n else if (dist_to_cursor > CURSOR_WIDTH_2_IN && dist_to_cursor < CURSOR_WIDTH_2_OUT)\n {\n t_color = mix(t_color, u_cursorColor, u_cursorColor.a);\n }\n }\n }\n\n if (u_showDebug)\n {\n vec4 debug = texture(u_debug, scaled_uv);\n if (debug.a > 0.0)\n {\n t_color = vec4(debug.r, debug.g, debug.b, 1.0);\n }\n }\n\n m.diffuse = t_color.rgb;\n m.specular = 0.5;\n m.emission = t_color.rgb * vec3(0.5);\n m.alpha = u_opacity;\n return m;\n}\n\n";
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
// This file is auto-generated. Do not edit it directly.
|
|
2
|
+
export default `
|
|
3
|
+
/**
|
|
4
|
+
* Fragment shader for panorama tile rendering
|
|
5
|
+
*
|
|
6
|
+
* This shader handles rendering of panorama tiles with support for:
|
|
7
|
+
* - RGB image display
|
|
8
|
+
* - Intensity data visualization
|
|
9
|
+
* - Depth information processing
|
|
10
|
+
* - Debug mode overlays
|
|
11
|
+
* - Interactive cursor highlighting
|
|
12
|
+
*
|
|
13
|
+
* @uniform {sampler2D} u_rgb - RGB panorama texture
|
|
14
|
+
* @uniform {sampler2D} u_intensity - Intensity data texture
|
|
15
|
+
* @uniform {sampler2D} u_depth - Depth data texture (16-bit encoded in RG channels)
|
|
16
|
+
* @uniform {sampler2D} u_debug - Debug visualization texture
|
|
17
|
+
* @uniform {vec3} u_cursorPosition - 3D cursor position for interaction
|
|
18
|
+
* @uniform {vec2} u_minUV, u_maxSt - Texture coordinate bounds
|
|
19
|
+
* @unifrom {vec3} u_maxUV - Texture coordinate bounds
|
|
20
|
+
* @uniform {float} u_opacity - Overall opacity of the material
|
|
21
|
+
* @uniform {float} u_overlayIntensity - Overlay intensity (for both modes)
|
|
22
|
+
* @uniform {int} u_overlay - Overlay mode (0 = intensity, 1 = depth)
|
|
23
|
+
* @uniform {bool} u_imageReady - Flag indicating if image data is ready
|
|
24
|
+
* @uniform {bool} u_intensityReady - Flag indicating if intensity data is ready
|
|
25
|
+
* @uniform {bool} u_depthReady - Flag indicating if depth data is ready
|
|
26
|
+
* @uniform {vec4} u_overlayNaNColor - Color used for missing/NaN overlay values
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
#define OVERLAY_INTENSITY 1.0
|
|
30
|
+
#define OVERLAY_DEPTH 2.0
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* hardcoded constants for cursor rendering. calculated as follows:
|
|
34
|
+
* radius = 0.01
|
|
35
|
+
* number_of_rings = 3
|
|
36
|
+
* width = (radius * 2) / ((number_of_rings * 2) + 1)
|
|
37
|
+
* jerks = [width / 2];
|
|
38
|
+
* num_jerks = number_of_rings * 2 - 1;
|
|
39
|
+
* for (let i = 1; i < num_jerks; i++) {
|
|
40
|
+
* jerks.push(jerks[i - 1] + width);
|
|
41
|
+
* }
|
|
42
|
+
*/
|
|
43
|
+
#define CURSOR_CENTER_RADIUS 0.00111111111111111
|
|
44
|
+
#define CURSOR_WIDTH_1_IN 0.00333333333333333
|
|
45
|
+
#define CURSOR_WIDTH_1_OUT 0.0055555555555555
|
|
46
|
+
#define CURSOR_WIDTH_2_IN 0.00777777777777777
|
|
47
|
+
#define CURSOR_WIDTH_2_OUT 0.01
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Converts spherical texture coordinates (x, y) to Cartesian coordinates. see spherical coordinates for more details on the coordinate system.
|
|
51
|
+
* @param {float} st_x - spherical texture coordinates .
|
|
52
|
+
* @param {float} st_y - spherical texture coordinates y.
|
|
53
|
+
* @returns {vec3} - Cartesian coordinates
|
|
54
|
+
*/
|
|
55
|
+
vec3 getCartesian(float st_x, float st_y)
|
|
56
|
+
{
|
|
57
|
+
float phi = st_x * 2.0 * 3.14159265359;
|
|
58
|
+
// texture coordinates are flipped in y axis
|
|
59
|
+
float theta = 3.14159265359 - st_y * 3.14159265359;
|
|
60
|
+
return vec3(
|
|
61
|
+
sin(theta) * cos(phi),
|
|
62
|
+
sin(theta) * sin(phi),
|
|
63
|
+
cos(theta)
|
|
64
|
+
);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Fetches the texel value from the intensity or depth texture.
|
|
69
|
+
* @param {sampler2D} source - The texture to sample from (intensity or depth).
|
|
70
|
+
* @param {vec2} scaled_st - Scaled texture coordinates.
|
|
71
|
+
* @returns {float} - The sampled value.
|
|
72
|
+
*/
|
|
73
|
+
float get_texel_value(sampler2D source, vec2 scaled_uv)
|
|
74
|
+
{
|
|
75
|
+
ivec2 texSize = textureSize(source, 0);
|
|
76
|
+
ivec2 pixelCoord = ivec2(scaled_uv * vec2(texSize));
|
|
77
|
+
|
|
78
|
+
vec4 texel_value = texelFetch(source, pixelCoord, 0);
|
|
79
|
+
|
|
80
|
+
float sample_value = 0.0;
|
|
81
|
+
sample_value = texel_value.r;
|
|
82
|
+
|
|
83
|
+
return sample_value;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
czm_material czm_getMaterial(czm_materialInput materialInput)
|
|
87
|
+
{
|
|
88
|
+
czm_material m = czm_getDefaultMaterial(materialInput);
|
|
89
|
+
if (!u_imageReady) {
|
|
90
|
+
m.alpha = 0.0;
|
|
91
|
+
return m;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
vec2 clamped_uv = clamp(materialInput.st, u_minUV, u_maxUV);
|
|
95
|
+
vec2 scaled_uv = (clamped_uv - u_minUV) / (u_maxUV - u_minUV);
|
|
96
|
+
|
|
97
|
+
vec4 t_color = texture(u_rgb, scaled_uv);
|
|
98
|
+
if (u_intensityReady && u_overlay == OVERLAY_INTENSITY)
|
|
99
|
+
{
|
|
100
|
+
float inensity_value = get_texel_value(u_intensity, scaled_uv);
|
|
101
|
+
vec4 intensity_color;
|
|
102
|
+
if (inensity_value > 0.0)
|
|
103
|
+
{
|
|
104
|
+
intensity_color = vec4(inensity_value, inensity_value, inensity_value, 1.0);
|
|
105
|
+
}
|
|
106
|
+
else
|
|
107
|
+
{
|
|
108
|
+
intensity_color = u_overlayNaNColor;
|
|
109
|
+
}
|
|
110
|
+
t_color = mix(t_color, intensity_color, u_overlayOpacity);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
bool has_position = u_cursorPosition != vec3(-1.0, -1.0, -1.0) && u_cursorColor.a > 0.0;
|
|
114
|
+
bool show_depth = u_overlay == OVERLAY_DEPTH;
|
|
115
|
+
if (u_depthReady && (show_depth || has_position))
|
|
116
|
+
{
|
|
117
|
+
float avg_depth = get_texel_value(u_depth, scaled_uv);
|
|
118
|
+
if (show_depth)
|
|
119
|
+
{
|
|
120
|
+
vec4 depth_color;
|
|
121
|
+
if (avg_depth > 0.0)
|
|
122
|
+
{
|
|
123
|
+
depth_color = vec4(avg_depth, avg_depth, avg_depth, 1.0);
|
|
124
|
+
}
|
|
125
|
+
else
|
|
126
|
+
{
|
|
127
|
+
depth_color = u_overlayNaNColor;
|
|
128
|
+
}
|
|
129
|
+
t_color = mix(t_color, depth_color, u_overlayOpacity);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
if (has_position && avg_depth > 0.0)
|
|
133
|
+
{
|
|
134
|
+
vec3 fragment_position = getCartesian(materialInput.st.x, materialInput.st.y);
|
|
135
|
+
fragment_position *= avg_depth;
|
|
136
|
+
float dist_to_cursor = distance(fragment_position, u_cursorPosition);
|
|
137
|
+
|
|
138
|
+
if (dist_to_cursor < CURSOR_CENTER_RADIUS)
|
|
139
|
+
{
|
|
140
|
+
t_color = mix(t_color, u_cursorColor, u_cursorColor.a);
|
|
141
|
+
}
|
|
142
|
+
else if (dist_to_cursor > CURSOR_WIDTH_1_IN && dist_to_cursor < CURSOR_WIDTH_1_OUT)
|
|
143
|
+
{
|
|
144
|
+
t_color = mix(t_color, u_cursorColor, u_cursorColor.a);
|
|
145
|
+
}
|
|
146
|
+
else if (dist_to_cursor > CURSOR_WIDTH_2_IN && dist_to_cursor < CURSOR_WIDTH_2_OUT)
|
|
147
|
+
{
|
|
148
|
+
t_color = mix(t_color, u_cursorColor, u_cursorColor.a);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
if (u_showDebug)
|
|
154
|
+
{
|
|
155
|
+
vec4 debug = texture(u_debug, scaled_uv);
|
|
156
|
+
if (debug.a > 0.0)
|
|
157
|
+
{
|
|
158
|
+
t_color = vec4(debug.r, debug.g, debug.b, 1.0);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
m.diffuse = t_color.rgb;
|
|
163
|
+
m.specular = 0.5;
|
|
164
|
+
m.emission = t_color.rgb * vec3(0.5);
|
|
165
|
+
m.alpha = u_opacity;
|
|
166
|
+
return m;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
`;
|
|
170
|
+
//# sourceMappingURL=panoramaTileMaterialFS.shader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"panoramaTileMaterialFS.shader.js","sourceRoot":"","sources":["../../../src/panorama/panoramaTileMaterialFS.shader.ts"],"names":[],"mappings":"AAAA,wDAAwD;AACxD,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuKd,CAAA"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { Primitive } from '@vcmap-cesium/engine';
|
|
2
|
+
import { Cartesian3, Color, PrimitiveCollection } from '@vcmap-cesium/engine';
|
|
3
|
+
import { PanoramaOverlayMode } from './panoramaTileMaterial.js';
|
|
4
|
+
import VcsEvent from '../vcsEvent.js';
|
|
5
|
+
export default class PanoramaTilePrimitiveCollection extends PrimitiveCollection {
|
|
6
|
+
private _primitives;
|
|
7
|
+
private _showDebug;
|
|
8
|
+
private _opacity;
|
|
9
|
+
private _cursorPosition;
|
|
10
|
+
private _overlay;
|
|
11
|
+
private _overlayOpacity;
|
|
12
|
+
private _overlayNaNColor;
|
|
13
|
+
private _cursorColor;
|
|
14
|
+
overlayChanged: VcsEvent<PanoramaOverlayMode>;
|
|
15
|
+
constructor(options?: ConstructorParameters<typeof PrimitiveCollection>[0]);
|
|
16
|
+
get overlay(): PanoramaOverlayMode;
|
|
17
|
+
set overlay(value: PanoramaOverlayMode);
|
|
18
|
+
get overlayOpacity(): number;
|
|
19
|
+
set overlayOpacity(value: number);
|
|
20
|
+
get overlayNaNColor(): Color;
|
|
21
|
+
set overlayNaNColor(value: Color);
|
|
22
|
+
get showDebug(): boolean;
|
|
23
|
+
set showDebug(value: boolean);
|
|
24
|
+
get opacity(): number;
|
|
25
|
+
set opacity(value: number);
|
|
26
|
+
get cursorPosition(): Cartesian3;
|
|
27
|
+
set cursorPosition(value: Cartesian3);
|
|
28
|
+
get cursorColor(): Color;
|
|
29
|
+
set cursorColor(value: Color);
|
|
30
|
+
add(primitive: Primitive, index?: number): Primitive;
|
|
31
|
+
}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { Cartesian3, Color, Math as CesiumMath, PrimitiveCollection, } from '@vcmap-cesium/engine';
|
|
2
|
+
import PanoramaTileMaterial, { defaultCursorColor, PanoramaOverlayMode, } from './panoramaTileMaterial.js';
|
|
3
|
+
import VcsEvent from '../vcsEvent.js';
|
|
4
|
+
export default class PanoramaTilePrimitiveCollection extends PrimitiveCollection {
|
|
5
|
+
_showDebug = false;
|
|
6
|
+
_opacity = 1.0;
|
|
7
|
+
_cursorPosition = new Cartesian3(-1, -1, -1);
|
|
8
|
+
_overlay = PanoramaOverlayMode.None;
|
|
9
|
+
_overlayOpacity = 1.0;
|
|
10
|
+
_overlayNaNColor = Color.RED;
|
|
11
|
+
_cursorColor = Color.fromCssColorString(defaultCursorColor);
|
|
12
|
+
overlayChanged = new VcsEvent();
|
|
13
|
+
constructor(options) {
|
|
14
|
+
super(options ?? { destroyPrimitives: false });
|
|
15
|
+
}
|
|
16
|
+
get overlay() {
|
|
17
|
+
return this._overlay;
|
|
18
|
+
}
|
|
19
|
+
set overlay(value) {
|
|
20
|
+
if (this._overlay !== value) {
|
|
21
|
+
this._overlay = value;
|
|
22
|
+
this._primitives.forEach((primitive) => {
|
|
23
|
+
primitive.appearance.material.overlay = value;
|
|
24
|
+
});
|
|
25
|
+
this.overlayChanged.raiseEvent(value);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
get overlayOpacity() {
|
|
29
|
+
return this._overlayOpacity;
|
|
30
|
+
}
|
|
31
|
+
set overlayOpacity(value) {
|
|
32
|
+
if (this._overlayOpacity !== value) {
|
|
33
|
+
this._overlayOpacity = value;
|
|
34
|
+
this._primitives.forEach((primitive) => {
|
|
35
|
+
primitive.appearance.material.overlayOpacity =
|
|
36
|
+
value;
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
get overlayNaNColor() {
|
|
41
|
+
return this._overlayNaNColor;
|
|
42
|
+
}
|
|
43
|
+
set overlayNaNColor(value) {
|
|
44
|
+
if (!this._overlayNaNColor.equals(value)) {
|
|
45
|
+
this._overlayNaNColor = value;
|
|
46
|
+
this._primitives.forEach((primitive) => {
|
|
47
|
+
primitive.appearance.material.overlayNaNColor = value;
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
get showDebug() {
|
|
52
|
+
return this._showDebug;
|
|
53
|
+
}
|
|
54
|
+
set showDebug(value) {
|
|
55
|
+
if (this._showDebug !== value) {
|
|
56
|
+
this._showDebug = value;
|
|
57
|
+
this._primitives.forEach((primitive) => {
|
|
58
|
+
primitive.appearance.material.showDebug =
|
|
59
|
+
value;
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
get opacity() {
|
|
64
|
+
return this._opacity;
|
|
65
|
+
}
|
|
66
|
+
set opacity(value) {
|
|
67
|
+
if (this._opacity !== value) {
|
|
68
|
+
this._opacity = value;
|
|
69
|
+
this._primitives.forEach((primitive) => {
|
|
70
|
+
primitive.appearance.material.opacity = value;
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
get cursorPosition() {
|
|
75
|
+
return this._cursorPosition;
|
|
76
|
+
}
|
|
77
|
+
set cursorPosition(value) {
|
|
78
|
+
if (!Cartesian3.equalsEpsilon(this._cursorPosition, value, CesiumMath.EPSILON8)) {
|
|
79
|
+
this._cursorPosition = value;
|
|
80
|
+
this._primitives.forEach((primitive) => {
|
|
81
|
+
primitive.appearance.material.cursorPosition =
|
|
82
|
+
value;
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
get cursorColor() {
|
|
87
|
+
return this._cursorColor;
|
|
88
|
+
}
|
|
89
|
+
set cursorColor(value) {
|
|
90
|
+
if (!this._cursorColor.equals(value)) {
|
|
91
|
+
this._cursorColor = value;
|
|
92
|
+
this._primitives.forEach((primitive) => {
|
|
93
|
+
primitive.appearance.material.cursorColor =
|
|
94
|
+
value;
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
add(primitive, index) {
|
|
99
|
+
const { material } = primitive.appearance;
|
|
100
|
+
if (!(material instanceof PanoramaTileMaterial)) {
|
|
101
|
+
throw new Error('Material is not a PanoramaTileMaterial');
|
|
102
|
+
}
|
|
103
|
+
material.overlay = this.overlay;
|
|
104
|
+
material.overlayOpacity = this.overlayOpacity;
|
|
105
|
+
material.overlayNaNColor = this.overlayNaNColor;
|
|
106
|
+
material.showDebug = this.showDebug;
|
|
107
|
+
material.opacity = this.opacity;
|
|
108
|
+
material.cursorPosition = this.cursorPosition;
|
|
109
|
+
material.cursorColor = this.cursorColor;
|
|
110
|
+
return super.add(primitive, index);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
//# sourceMappingURL=panoramaTilePrimitiveCollection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"panoramaTilePrimitiveCollection.js","sourceRoot":"","sources":["../../../src/panorama/panoramaTilePrimitiveCollection.ts"],"names":[],"mappings":"AACA,OAAO,EACL,UAAU,EACV,KAAK,EACL,IAAI,IAAI,UAAU,EAClB,mBAAmB,GACpB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,oBAAoB,EAAE,EAC3B,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AAEtC,MAAM,CAAC,OAAO,OAAO,+BAAgC,SAAQ,mBAAmB;IAGtE,UAAU,GAAG,KAAK,CAAC;IAEnB,QAAQ,GAAG,GAAG,CAAC;IAEf,eAAe,GAAe,IAAI,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IAEzD,QAAQ,GAAwB,mBAAmB,CAAC,IAAI,CAAC;IAEzD,eAAe,GAAG,GAAG,CAAC;IAEtB,gBAAgB,GAAU,KAAK,CAAC,GAAG,CAAC;IAEpC,YAAY,GAAU,KAAK,CAAC,kBAAkB,CAAC,kBAAkB,CAAC,CAAC;IAE3E,cAAc,GAAG,IAAI,QAAQ,EAAuB,CAAC;IAErD,YAAY,OAA8D;QACxE,KAAK,CAAC,OAAO,IAAI,EAAE,iBAAiB,EAAE,KAAK,EAAE,CAAC,CAAC;IACjD,CAAC;IAED,IAAI,OAAO;QACT,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAED,IAAI,OAAO,CAAC,KAA0B;QACpC,IAAI,IAAI,CAAC,QAAQ,KAAK,KAAK,EAAE,CAAC;YAC5B,IAAI,CAAC,QAAQ,GAAG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AO,CAAC,CAAC,SAAS,EAAE,EAAE;gBACpC,SAAS,CAAC,UAAU,CAAC,QAAiC,CAAC,WAAW;oBACjE,KAAK,CAAC;YACV,CAAC,CAAC,CAAC;QACL,CAAC;IACH,CAAC;IAED,GAAG,CAAC,SAAoB,EAAE,KAAc;QACtC,MAAM,EAAE,QAAQ,EAAE,GAAG,SAAS,CAAC,UAAU,CAAC;QAE1C,IAAI,CAAC,CAAC,QAAQ,YAAY,oBAAoB,CAAC,EAAE,CAAC;YAChD,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;QAC5D,CAAC;QAED,QAAQ,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;QAChC,QAAQ,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC;QAC9C,QAAQ,CAAC,eAAe,GAAG,IAAI,CAAC,eAAe,CAAC;QAChD,QAAQ,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;QACpC,QAAQ,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;QAChC,QAAQ,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC;QAC9C,QAAQ,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC;QAExC,OAAO,KAAK,CAAC,GAAG,CAAC,SAAS,EAAE,KAAK,CAAc,CAAC;IAClD,CAAC;CACF"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import type { Matrix4 } from '@vcmap-cesium/engine';
|
|
2
|
+
import type { GeoTIFFImage } from 'geotiff';
|
|
3
|
+
import { Pool } from 'geotiff';
|
|
4
|
+
import type { Size } from 'ol/size.js';
|
|
5
|
+
import type { PanoramaTile } from './panoramaTile.js';
|
|
6
|
+
import VcsEvent from '../vcsEvent.js';
|
|
7
|
+
import { type PanoramaTileCoordinate } from './panoramaTileCoordinate.js';
|
|
8
|
+
import type { DepthGDALMetadata, PanoramaFileDirectoryMetadata } from './panoramaImage.js';
|
|
9
|
+
export type PanoramaResourceType = 'rgb' | 'intensity' | 'depth';
|
|
10
|
+
export type PanoramaResourceData<T extends PanoramaResourceType> = T extends 'rgb' ? ImageBitmap : T extends 'intensity' ? ImageBitmap : T extends 'depth' ? Float32Array : never;
|
|
11
|
+
export type PanoramaTileLoadError = {
|
|
12
|
+
tileCoordinate: PanoramaTileCoordinate;
|
|
13
|
+
error: Error;
|
|
14
|
+
type: PanoramaResourceType;
|
|
15
|
+
};
|
|
16
|
+
export type PanoramaImageDecoder = {
|
|
17
|
+
decode(fileDirectory: {
|
|
18
|
+
vcsPanorama: PanoramaFileDirectoryMetadata;
|
|
19
|
+
}, buffer: ArrayBuffer): Promise<PanoramaResourceData<PanoramaResourceType>>;
|
|
20
|
+
};
|
|
21
|
+
export type PanoramaTileProvider = {
|
|
22
|
+
/**
|
|
23
|
+
* Creates or the visible tiles for the given tile coordinates or retrieves them from the cache.
|
|
24
|
+
*/
|
|
25
|
+
createVisibleTiles(tileCoordinates: PanoramaTileCoordinate[]): PanoramaTile[];
|
|
26
|
+
/**
|
|
27
|
+
* Gets the depth at the given image coordinate for the current level.
|
|
28
|
+
*/
|
|
29
|
+
getDepthAtImageCoordinate(imageCoordinate: [number, number]): Promise<number | undefined>;
|
|
30
|
+
/**
|
|
31
|
+
* Gets the depth at the given image coordinate for the most detailed level.
|
|
32
|
+
*/
|
|
33
|
+
getDepthAtImageCoordinateMostDetailed(imageCoordinate: [number, number]): Promise<number | undefined>;
|
|
34
|
+
/**
|
|
35
|
+
* The promise that resolves when the intensity images are loaded and ready to be used.
|
|
36
|
+
*/
|
|
37
|
+
intensityReady: Promise<void>;
|
|
38
|
+
/**
|
|
39
|
+
* Load & show intensity images.
|
|
40
|
+
*/
|
|
41
|
+
showIntensity: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* 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.
|
|
44
|
+
*/
|
|
45
|
+
currentLevel: number;
|
|
46
|
+
readonly loading: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Raised with true, if we start loading new data. raised with false, if all tiles are loaded.
|
|
49
|
+
*/
|
|
50
|
+
loadingStateChanged: VcsEvent<boolean>;
|
|
51
|
+
tileError: VcsEvent<PanoramaTileLoadError>;
|
|
52
|
+
destroy(): void;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* Creates a panorama tile provider for the given images.
|
|
56
|
+
* @param rgbImages - the images ordered by level. lowest level (smallest overview) first. that level is given by minLevel. all other levels must be consecutive.
|
|
57
|
+
* @param modelMatrix - the model matrix of the image
|
|
58
|
+
* @param tileSize - the size of the tile in pixels
|
|
59
|
+
* @param minLevel - the minimum level of the images
|
|
60
|
+
* @param maxCacheSize - the cache size for the number of tiles to cache. (LRU cache in use)
|
|
61
|
+
* @param concurrency - the number of concurrent web requests to load tiles with
|
|
62
|
+
* @param poolOrDecoder - an optional pool to decode directly to image bitmaps. most scenarios will use the default, mainly used for headless testing
|
|
63
|
+
*/
|
|
64
|
+
export declare function createPanoramaTileProvider(rgbImages: GeoTIFFImage[], modelMatrix: Matrix4, tileSize: Size, minLevel: number, maxLevel: number, getIntensityImages?: () => Promise<GeoTIFFImage[]>, depth?: {
|
|
65
|
+
levelImages: GeoTIFFImage[];
|
|
66
|
+
metadata: DepthGDALMetadata;
|
|
67
|
+
}, maxCacheSize?: number, concurrency?: number, poolOrDecoder?: Pool | PanoramaImageDecoder): PanoramaTileProvider;
|