@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,313 @@
|
|
|
1
|
+
import { getLogger } from '@vcsuite/logger';
|
|
2
|
+
import { Pool } from 'geotiff';
|
|
3
|
+
import { createPanoramaTile } from './panoramaTile.js';
|
|
4
|
+
import VcsEvent from '../vcsEvent.js';
|
|
5
|
+
import { addTileToCache, PanoramaTileCache } from './panoramaTileCache.js';
|
|
6
|
+
import { tileCoordinateFromImageCoordinate, getTileSphericalExtent, } from './panoramaTileCoordinate.js';
|
|
7
|
+
let defaultImagePool;
|
|
8
|
+
function getDefaultImagePool() {
|
|
9
|
+
if (!defaultImagePool) {
|
|
10
|
+
let workerUrl;
|
|
11
|
+
if (window.vcs.workerBase) {
|
|
12
|
+
workerUrl = new URL(`${window.vcs.workerBase}/panoramaImageWorker.js`, window.location.href);
|
|
13
|
+
}
|
|
14
|
+
else {
|
|
15
|
+
workerUrl = new URL('../workers/panoramaImageWorker.js', import.meta.url);
|
|
16
|
+
}
|
|
17
|
+
defaultImagePool = new Pool(undefined, () => {
|
|
18
|
+
return new Worker(workerUrl, {
|
|
19
|
+
type: 'module',
|
|
20
|
+
});
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
return defaultImagePool;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* The priority order in which the panorama resources are loaded.
|
|
27
|
+
*/
|
|
28
|
+
const typeOrder = {
|
|
29
|
+
rgb: 0,
|
|
30
|
+
intensity: 1,
|
|
31
|
+
depth: 2,
|
|
32
|
+
};
|
|
33
|
+
function createPanoramaResourceProvider(resources, minLevel, poolOrDecoder, concurrency = 6) {
|
|
34
|
+
let currentlyVisibleTiles = [];
|
|
35
|
+
let loading = false;
|
|
36
|
+
let showIntensity = false;
|
|
37
|
+
const tileError = new VcsEvent();
|
|
38
|
+
const loadingStateChanged = new VcsEvent();
|
|
39
|
+
const loadResource = async (request) => {
|
|
40
|
+
const { tile, resource } = request;
|
|
41
|
+
const { type } = resource;
|
|
42
|
+
if (!tile.material.hasTexture(type)) {
|
|
43
|
+
const { levelImages } = resource;
|
|
44
|
+
const { tileCoordinate } = tile;
|
|
45
|
+
const levelImage = levelImages[tileCoordinate.level - minLevel];
|
|
46
|
+
if (levelImage) {
|
|
47
|
+
try {
|
|
48
|
+
const resourceData = await levelImage.getTileOrStrip(tileCoordinate.x, tileCoordinate.y, levelImage.getSamplesPerPixel(), poolOrDecoder);
|
|
49
|
+
tile.material.setTexture(type, resourceData.data);
|
|
50
|
+
}
|
|
51
|
+
catch (error) {
|
|
52
|
+
tileError.raiseEvent({
|
|
53
|
+
tileCoordinate,
|
|
54
|
+
error: error,
|
|
55
|
+
type,
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
let currentQueue = [];
|
|
62
|
+
const loadingTiles = new Map();
|
|
63
|
+
const startQueue = () => {
|
|
64
|
+
async function* loadNextTileGenerator() {
|
|
65
|
+
while (currentQueue?.length) {
|
|
66
|
+
const currentTile = currentQueue.pop();
|
|
67
|
+
if (!loadingTiles.has(currentTile.tile)) {
|
|
68
|
+
loadingTiles.set(currentTile.tile, {
|
|
69
|
+
rgb: undefined,
|
|
70
|
+
intensity: undefined,
|
|
71
|
+
depth: undefined,
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
const currentTileTypes = loadingTiles.get(currentTile.tile);
|
|
75
|
+
const promise = loadResource(currentTile);
|
|
76
|
+
currentTileTypes[currentTile.resource.type] = promise;
|
|
77
|
+
// eslint-disable-next-line no-await-in-loop
|
|
78
|
+
await promise;
|
|
79
|
+
currentTileTypes[currentTile.resource.type] = undefined;
|
|
80
|
+
if (!currentTileTypes.rgb &&
|
|
81
|
+
!currentTileTypes.depth &&
|
|
82
|
+
!currentTileTypes.intensity) {
|
|
83
|
+
loadingTiles.delete(currentTile.tile);
|
|
84
|
+
}
|
|
85
|
+
yield;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
// we create N generators. thus, AT MOST N web requests are made in parallel.
|
|
89
|
+
// this allows us to not abort web request and still keep the queue dynamic
|
|
90
|
+
const generators = Array.from({ length: concurrency }, () => loadNextTileGenerator());
|
|
91
|
+
const promises = generators.map(async (gen) => {
|
|
92
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention,@typescript-eslint/no-unused-vars
|
|
93
|
+
for await (const _ of gen) {
|
|
94
|
+
// just iterating
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
Promise.all(promises)
|
|
98
|
+
.then(() => {
|
|
99
|
+
loading = false;
|
|
100
|
+
loadingStateChanged.raiseEvent(false);
|
|
101
|
+
})
|
|
102
|
+
.catch((e) => {
|
|
103
|
+
getLogger('PanoramaTileProvider').warning('Error loading tiles');
|
|
104
|
+
getLogger('PanoramaTileProvider').warning(String(e));
|
|
105
|
+
});
|
|
106
|
+
};
|
|
107
|
+
const createOrUpdateQueue = (panoramaTile) => {
|
|
108
|
+
const newResources = panoramaTile.flatMap((tile) => {
|
|
109
|
+
const resourceRequests = [];
|
|
110
|
+
if (!tile.material.hasTexture('rgb') && !loadingTiles.get(tile)?.rgb) {
|
|
111
|
+
resourceRequests.push({
|
|
112
|
+
tile,
|
|
113
|
+
resource: resources.rgb,
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
if (resources.depth) {
|
|
117
|
+
if (!tile.material.hasTexture('depth') &&
|
|
118
|
+
!loadingTiles.get(tile)?.depth) {
|
|
119
|
+
resourceRequests.push({
|
|
120
|
+
tile,
|
|
121
|
+
resource: resources.depth,
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
if (showIntensity && resources.intensity) {
|
|
126
|
+
if (!tile.material.hasTexture('intensity') &&
|
|
127
|
+
!loadingTiles.get(tile)?.intensity) {
|
|
128
|
+
resourceRequests.push({
|
|
129
|
+
tile,
|
|
130
|
+
resource: resources.intensity,
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
return resourceRequests;
|
|
135
|
+
});
|
|
136
|
+
if (newResources.length === 0) {
|
|
137
|
+
return;
|
|
138
|
+
}
|
|
139
|
+
newResources.sort((a, b) => typeOrder[b.resource.type] - typeOrder[a.resource.type]);
|
|
140
|
+
if (currentQueue.length > 0) {
|
|
141
|
+
currentQueue.splice(0, currentQueue.length, ...newResources);
|
|
142
|
+
}
|
|
143
|
+
else {
|
|
144
|
+
loading = true;
|
|
145
|
+
loadingStateChanged.raiseEvent(true);
|
|
146
|
+
currentQueue = newResources;
|
|
147
|
+
startQueue();
|
|
148
|
+
}
|
|
149
|
+
};
|
|
150
|
+
return {
|
|
151
|
+
setVisibleTiles(panoramaTiles) {
|
|
152
|
+
currentlyVisibleTiles = panoramaTiles.slice();
|
|
153
|
+
createOrUpdateQueue(currentlyVisibleTiles);
|
|
154
|
+
},
|
|
155
|
+
get showIntensity() {
|
|
156
|
+
return showIntensity;
|
|
157
|
+
},
|
|
158
|
+
set showIntensity(value) {
|
|
159
|
+
showIntensity = value;
|
|
160
|
+
if (value && resources.intensity) {
|
|
161
|
+
createOrUpdateQueue(currentlyVisibleTiles);
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
loadResource(tile, type) {
|
|
165
|
+
if (!resources[type]) {
|
|
166
|
+
throw new Error(`Resource type ${type} not found`);
|
|
167
|
+
}
|
|
168
|
+
if (tile.material.hasTexture(type)) {
|
|
169
|
+
return Promise.resolve();
|
|
170
|
+
}
|
|
171
|
+
if (loadingTiles.has(tile) && loadingTiles.get(tile)?.[type]) {
|
|
172
|
+
return loadingTiles.get(tile)[type];
|
|
173
|
+
}
|
|
174
|
+
return loadResource({ tile, resource: resources[type] });
|
|
175
|
+
},
|
|
176
|
+
get loading() {
|
|
177
|
+
return loading;
|
|
178
|
+
},
|
|
179
|
+
tileError,
|
|
180
|
+
loadingStateChanged,
|
|
181
|
+
destroy() {
|
|
182
|
+
currentQueue = [];
|
|
183
|
+
tileError.destroy();
|
|
184
|
+
},
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
function interpolateDepth(value, min, max, minValue = 1 / 65535, maxValue = 1) {
|
|
188
|
+
return min + ((value - minValue) / (maxValue - minValue)) * (max - min);
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* Creates a panorama tile provider for the given images.
|
|
192
|
+
* @param rgbImages - the images ordered by level. lowest level (smallest overview) first. that level is given by minLevel. all other levels must be consecutive.
|
|
193
|
+
* @param modelMatrix - the model matrix of the image
|
|
194
|
+
* @param tileSize - the size of the tile in pixels
|
|
195
|
+
* @param minLevel - the minimum level of the images
|
|
196
|
+
* @param maxCacheSize - the cache size for the number of tiles to cache. (LRU cache in use)
|
|
197
|
+
* @param concurrency - the number of concurrent web requests to load tiles with
|
|
198
|
+
* @param poolOrDecoder - an optional pool to decode directly to image bitmaps. most scenarios will use the default, mainly used for headless testing
|
|
199
|
+
*/
|
|
200
|
+
export function createPanoramaTileProvider(rgbImages, modelMatrix, tileSize, minLevel, maxLevel, getIntensityImages, depth, maxCacheSize, concurrency = 6, poolOrDecoder = getDefaultImagePool()) {
|
|
201
|
+
const cache = new PanoramaTileCache(maxCacheSize);
|
|
202
|
+
const resources = {
|
|
203
|
+
rgb: {
|
|
204
|
+
type: 'rgb',
|
|
205
|
+
levelImages: rgbImages,
|
|
206
|
+
},
|
|
207
|
+
};
|
|
208
|
+
if (depth) {
|
|
209
|
+
resources.depth = {
|
|
210
|
+
...depth,
|
|
211
|
+
type: 'depth',
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
const resourceProvider = createPanoramaResourceProvider(resources, minLevel, poolOrDecoder, concurrency);
|
|
215
|
+
let showIntensity = false;
|
|
216
|
+
const destroy = () => {
|
|
217
|
+
cache.clear();
|
|
218
|
+
resourceProvider.destroy();
|
|
219
|
+
};
|
|
220
|
+
let currentlyVisibleTileCoordinates = {};
|
|
221
|
+
const createTile = (tileCoordinate) => {
|
|
222
|
+
if (cache.containsKey(tileCoordinate.key)) {
|
|
223
|
+
return cache.get(tileCoordinate.key);
|
|
224
|
+
}
|
|
225
|
+
const newTile = createPanoramaTile(tileCoordinate, modelMatrix, tileSize);
|
|
226
|
+
addTileToCache(newTile, cache, currentlyVisibleTileCoordinates);
|
|
227
|
+
return newTile;
|
|
228
|
+
};
|
|
229
|
+
const getDepthAtImageCoordinate = async (imageCoordinate, level) => {
|
|
230
|
+
if (!resources.depth) {
|
|
231
|
+
return undefined;
|
|
232
|
+
}
|
|
233
|
+
const tileCoordinate = tileCoordinateFromImageCoordinate(imageCoordinate, level);
|
|
234
|
+
const tile = createTile(tileCoordinate);
|
|
235
|
+
await resourceProvider.loadResource(tile, 'depth');
|
|
236
|
+
const [minPhi, minTheta, maxPhi, maxTheta] = getTileSphericalExtent(tileCoordinate);
|
|
237
|
+
const offsetX = imageCoordinate[0] - minPhi;
|
|
238
|
+
const offsetY = imageCoordinate[1] - minTheta;
|
|
239
|
+
const width = maxPhi - minPhi;
|
|
240
|
+
const height = maxTheta - minTheta;
|
|
241
|
+
const x = tileSize[0] - Math.floor((offsetX / width) * tileSize[0]);
|
|
242
|
+
const y = Math.floor((offsetY / height) * tileSize[1]);
|
|
243
|
+
const depthValue = tile.material.getDepthAtPixel(x, y);
|
|
244
|
+
if (depthValue) {
|
|
245
|
+
return interpolateDepth(depthValue, depth?.metadata?.min ?? 0, depth?.metadata?.max ?? 50);
|
|
246
|
+
}
|
|
247
|
+
return depthValue;
|
|
248
|
+
};
|
|
249
|
+
let resolveIntensity;
|
|
250
|
+
let rejectIntensity;
|
|
251
|
+
const intensityReady = new Promise((resolve, reject) => {
|
|
252
|
+
resolveIntensity = resolve;
|
|
253
|
+
rejectIntensity = reject;
|
|
254
|
+
});
|
|
255
|
+
const loadIntensityImages = () => {
|
|
256
|
+
if (!resources.intensity && getIntensityImages) {
|
|
257
|
+
getIntensityImages()
|
|
258
|
+
.then((intensityImages) => {
|
|
259
|
+
resources.intensity = {
|
|
260
|
+
type: 'intensity',
|
|
261
|
+
levelImages: intensityImages,
|
|
262
|
+
};
|
|
263
|
+
if (showIntensity) {
|
|
264
|
+
resourceProvider.showIntensity = true;
|
|
265
|
+
}
|
|
266
|
+
resolveIntensity();
|
|
267
|
+
})
|
|
268
|
+
.catch((e) => {
|
|
269
|
+
getLogger('PanoramaTileProvider').warning('Error loading intensity images');
|
|
270
|
+
getLogger('PanoramaTileProvider').warning(String(e));
|
|
271
|
+
rejectIntensity(e);
|
|
272
|
+
});
|
|
273
|
+
}
|
|
274
|
+
};
|
|
275
|
+
return {
|
|
276
|
+
createVisibleTiles(tileCoordinates) {
|
|
277
|
+
currentlyVisibleTileCoordinates = Object.fromEntries(tileCoordinates.map((tile) => [tile.key, true]));
|
|
278
|
+
const panoramaTiles = tileCoordinates.map(createTile);
|
|
279
|
+
resourceProvider.setVisibleTiles(panoramaTiles.slice());
|
|
280
|
+
return panoramaTiles;
|
|
281
|
+
},
|
|
282
|
+
currentLevel: minLevel,
|
|
283
|
+
get loading() {
|
|
284
|
+
return resourceProvider.loading;
|
|
285
|
+
},
|
|
286
|
+
get intensityReady() {
|
|
287
|
+
return intensityReady;
|
|
288
|
+
},
|
|
289
|
+
get showIntensity() {
|
|
290
|
+
return showIntensity;
|
|
291
|
+
},
|
|
292
|
+
set showIntensity(value) {
|
|
293
|
+
showIntensity = value;
|
|
294
|
+
// XXX this entire thing is a mess
|
|
295
|
+
if (resources.intensity) {
|
|
296
|
+
resourceProvider.showIntensity = value;
|
|
297
|
+
}
|
|
298
|
+
else if (value) {
|
|
299
|
+
loadIntensityImages();
|
|
300
|
+
}
|
|
301
|
+
},
|
|
302
|
+
getDepthAtImageCoordinateMostDetailed(imageCoordinate) {
|
|
303
|
+
return getDepthAtImageCoordinate(imageCoordinate, maxLevel);
|
|
304
|
+
},
|
|
305
|
+
getDepthAtImageCoordinate(imageCoordinate) {
|
|
306
|
+
return getDepthAtImageCoordinate(imageCoordinate, this.currentLevel);
|
|
307
|
+
},
|
|
308
|
+
tileError: resourceProvider.tileError,
|
|
309
|
+
loadingStateChanged: resourceProvider.loadingStateChanged,
|
|
310
|
+
destroy,
|
|
311
|
+
};
|
|
312
|
+
}
|
|
313
|
+
//# sourceMappingURL=panoramaTileProvider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"panoramaTileProvider.js","sourceRoot":"","sources":["../../../src/panorama/panoramaTileProvider.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAG/B,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3E,OAAO,EACL,iCAAiC,EAEjC,sBAAsB,GACvB,MAAM,6BAA6B,CAAC;AA4GrC,IAAI,gBAAkC,CAAC;AACvC,SAAS,mBAAmB;IAC1B,IAAI,CAAC,gBAAgB,EAAE,CAAC;QACtB,IAAI,SAAc,CAAC;QACnB,IAAI,MAAM,CAAC,GAAG,CAAC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,CAAC,CAAC;QAC9D,CAAC;QACD,yBAAyB,CACvB,eAAiC;YAEjC,OAAO,yBAAyB,CAAC,eAAe,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC;QACvE,CAAC;QACD,SAAS,EAAE,gBAAgB,CAAC,SAAS;QACrC,mBAAmB,EAAE,gBAAgB,CAAC,mBAAmB;QACzD,OAAO;KACR,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Cartesian3, Matrix4 } from '@vcmap-cesium/engine';
|
|
2
|
+
/**
|
|
3
|
+
* Converts a cartesian coordinate in the spheres reference system to spherical coordinates in the flipped image reference system.
|
|
4
|
+
* @param cartesian
|
|
5
|
+
* @returns The spherical coordinates [phi, theta].
|
|
6
|
+
*/
|
|
7
|
+
export declare function cartesianToImageSpherical(cartesian: Cartesian3): [number, number];
|
|
8
|
+
/**
|
|
9
|
+
* Converts image (flipped) spherical coordinates to cartesian coordinates in the spheres reference system.
|
|
10
|
+
* @param spherical - The spherical coordinates [phi, theta].
|
|
11
|
+
* @param [result] - The cartesian coordinate to write to.
|
|
12
|
+
* @returns
|
|
13
|
+
*/
|
|
14
|
+
export declare function imageSphericalToCartesian(spherical: [number, number], result?: Cartesian3): Cartesian3;
|
|
15
|
+
/**
|
|
16
|
+
* Takes a global cesium cartesian in ECEF and converts it to spherical coordinates on the flipped image.
|
|
17
|
+
* @param cartesian
|
|
18
|
+
* @param invModelMatrix - the inverse model matrix of the image.
|
|
19
|
+
*/
|
|
20
|
+
export declare function globalCartesianToImageSpherical(cartesian: Cartesian3, invModelMatrix: Matrix4): [number, number];
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { Cartesian3, Math as CesiumMath, Matrix4 } from '@vcmap-cesium/engine';
|
|
2
|
+
/**
|
|
3
|
+
* Spherical coordinates for a unit sphere where:
|
|
4
|
+
* The north pole is [0, 0],
|
|
5
|
+
* The south pole is [0, PI],
|
|
6
|
+
* And the valid range for phi is 0 to 2 * PI.
|
|
7
|
+
* There are two cartesian and two spherical coordinate systems in use:
|
|
8
|
+
* - The spheres spherical reference system.
|
|
9
|
+
* - The image spherical reference system, where x is inverted from the spheres reference system.
|
|
10
|
+
* - The spheres cartesian reference system, where the cartesian is transformed by the inverse model matrix of the image.
|
|
11
|
+
* - the global cartesian reference system.
|
|
12
|
+
*
|
|
13
|
+
* Spherical coordinates are orderd [phi, theta], where phi is the angle in the xy-plane (azimuth angle)
|
|
14
|
+
* from the x-axis and theta is the angle from the z-axis (polar angle) {@link https://en.wikipedia.org/wiki/Spherical_coordinate_system}
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* Wraps longitude around the globe (0 to 2 * PI) in image spherical coordinates.
|
|
18
|
+
* @param angle
|
|
19
|
+
*/
|
|
20
|
+
function convertImageLongitudeAngle(angle) {
|
|
21
|
+
const twoPI = CesiumMath.TWO_PI;
|
|
22
|
+
const simplified = angle - Math.floor(angle / twoPI) * twoPI;
|
|
23
|
+
if (simplified < 0) {
|
|
24
|
+
return simplified + twoPI;
|
|
25
|
+
}
|
|
26
|
+
if (simplified >= twoPI) {
|
|
27
|
+
return simplified - twoPI;
|
|
28
|
+
}
|
|
29
|
+
return simplified;
|
|
30
|
+
}
|
|
31
|
+
const scratchNormal = new Cartesian3();
|
|
32
|
+
/**
|
|
33
|
+
* Converts a Cartesian coordinate in the spheres reference system to spherical coordinates (of the spheres reference system).
|
|
34
|
+
* @param cartesian
|
|
35
|
+
* @returns The spherical coordinates [phi, theta].
|
|
36
|
+
*/
|
|
37
|
+
function cartesianToSpherical(cartesian) {
|
|
38
|
+
Cartesian3.normalize(cartesian, scratchNormal);
|
|
39
|
+
const { x, y, z } = scratchNormal;
|
|
40
|
+
const phi = Math.atan2(y, x);
|
|
41
|
+
const theta = Math.acos(z);
|
|
42
|
+
return [phi, theta];
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Converts a cartesian coordinate in the spheres reference system to spherical coordinates in the flipped image reference system.
|
|
46
|
+
* @param cartesian
|
|
47
|
+
* @returns The spherical coordinates [phi, theta].
|
|
48
|
+
*/
|
|
49
|
+
export function cartesianToImageSpherical(cartesian) {
|
|
50
|
+
const spherical = cartesianToSpherical(cartesian);
|
|
51
|
+
return [convertImageLongitudeAngle(-spherical[0]), spherical[1]];
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Converts image (flipped) spherical coordinates to cartesian coordinates in the spheres reference system.
|
|
55
|
+
* @param spherical - The spherical coordinates [phi, theta].
|
|
56
|
+
* @param [result] - The cartesian coordinate to write to.
|
|
57
|
+
* @returns
|
|
58
|
+
*/
|
|
59
|
+
export function imageSphericalToCartesian(spherical, result) {
|
|
60
|
+
const [phi, theta] = spherical;
|
|
61
|
+
const cartesian = result || new Cartesian3();
|
|
62
|
+
cartesian.x = Math.sin(theta) * Math.cos(-phi);
|
|
63
|
+
cartesian.y = Math.sin(theta) * Math.sin(-phi);
|
|
64
|
+
cartesian.z = Math.cos(theta);
|
|
65
|
+
return cartesian;
|
|
66
|
+
}
|
|
67
|
+
const scratchLocal = new Cartesian3();
|
|
68
|
+
/**
|
|
69
|
+
* Takes a global cesium cartesian in ECEF and converts it to spherical coordinates on the flipped image.
|
|
70
|
+
* @param cartesian
|
|
71
|
+
* @param invModelMatrix - the inverse model matrix of the image.
|
|
72
|
+
*/
|
|
73
|
+
export function globalCartesianToImageSpherical(cartesian, invModelMatrix) {
|
|
74
|
+
Matrix4.multiplyByPoint(invModelMatrix, cartesian, scratchLocal);
|
|
75
|
+
Cartesian3.normalize(scratchLocal, scratchLocal);
|
|
76
|
+
return cartesianToImageSpherical(scratchLocal);
|
|
77
|
+
}
|
|
78
|
+
//# sourceMappingURL=sphericalCoordinates.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sphericalCoordinates.js","sourceRoot":"","sources":["../../../src/panorama/sphericalCoordinates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,IA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nB,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,GAAG,SAAS,CAAC;IAC/B,MAAM,SAAS,GAAG,MAAM,IAAI,IAAI,UAAU,EAAE,CAAC;IAC7C,SAAS,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC;IAC/C,SAAS,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC;IAC/C,SAAS,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IAC9B,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,MAAM,YAAY,GAAG,IAAI,UAAU,EAAE,CAAC;AAEtC;;;;GAIG;AACH,MAAM,UAAU,+BAA+B,CAC7C,SAAqB,EACrB,cAAuB;IAEvB,OAAO,CAAC,eAAe,CAAC,cAAc,EAAE,SAAS,EAAE,YAAY,CAAC,CAAC;IACjE,UAAU,CAAC,SAAS,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC;IACjD,OAAO,yBAAyB,CAAC,YAAY,CAAC,CAAC;AACjD,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Style, Image as OlImage } from 'ol/style.js';
|
|
2
2
|
import type { Options as IconOptions } from 'ol/style/Icon.js';
|
|
3
|
-
import { VectorPropertiesPrimitiveOptions } from '../layer/vectorProperties.js';
|
|
3
|
+
import type { VectorPropertiesPrimitiveOptions } from '../layer/vectorProperties.js';
|
|
4
4
|
import type { ColorType } from './vectorStyleItem.js';
|
|
5
5
|
export declare enum ArrowEnd {
|
|
6
6
|
NONE = "none",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"arrowStyle.js","sourceRoot":"","sources":["../../../src/style/arrowStyle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,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AAK;YACjB,SAAS,EAAE,IAAI,CAAC,QAAQ,EAAG,CAAC,KAAK,EAAE;YACnC,MAAM,EAAE,IAAI,CAAC,SAAS,EAAE;SACzB,CAAC;IACJ,CAAC;IAED,KAAK;QACH,OAAO,IAAI,UAAU,CAAC,IAAI,CAAC,gBAAgB,EAAE,CAAC,CAAC;IACjD,CAAC;CACF;AAED,eAAe,UAAU,CAAC"}
|
|
@@ -46,7 +46,7 @@ declare class DeclarativeStyleItem extends StyleItem {
|
|
|
46
46
|
get styleOptions(): DeclarativeStyleOptions;
|
|
47
47
|
toJSON(): DeclarativeStyleItemOptions;
|
|
48
48
|
clone(result?: DeclarativeStyleItem): DeclarativeStyleItem;
|
|
49
|
-
assign(styleItem: DeclarativeStyleItem):
|
|
49
|
+
assign(styleItem: DeclarativeStyleItem): this;
|
|
50
50
|
private _styleFunction;
|
|
51
51
|
private _stylePolygon;
|
|
52
52
|
private _styleLineString;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
1
|
import { Color, ConditionsExpression, Expression, Cesium3DTileStyle, TrustedServers, } from '@vcmap-cesium/engine';
|
|
3
2
|
import { is } from '@vcsuite/check';
|
|
4
3
|
import Style from 'ol/style/Style.js';
|
|
@@ -32,8 +31,7 @@ function addCustomProperty(style, key, options) {
|
|
|
32
31
|
else {
|
|
33
32
|
expression = new Expression(options[key], options.defines);
|
|
34
33
|
}
|
|
35
|
-
//
|
|
36
|
-
// @ts-ignore
|
|
34
|
+
// @ts-expect-error key of issues
|
|
37
35
|
style[key] = expression;
|
|
38
36
|
}
|
|
39
37
|
/**
|
|
@@ -211,7 +209,7 @@ class DeclarativeStyleItem extends StyleItem {
|
|
|
211
209
|
else if (!isSameOrigin(src)) {
|
|
212
210
|
iconOptions.crossOrigin = 'anonymous';
|
|
213
211
|
}
|
|
214
|
-
const iconCacheKey = `${src}${iconOptions.crossOrigin}`;
|
|
212
|
+
const iconCacheKey = `${src}${String(iconOptions.crossOrigin)}`;
|
|
215
213
|
if (!this._iconCache.has(iconCacheKey)) {
|
|
216
214
|
this._iconCache.set(iconCacheKey, new Icon(iconOptions));
|
|
217
215
|
}
|
|
@@ -234,7 +232,7 @@ class DeclarativeStyleItem extends StyleItem {
|
|
|
234
232
|
}
|
|
235
233
|
radius += width / 2;
|
|
236
234
|
}
|
|
237
|
-
const circleCacheKey = `${radius}${String(color)}${String(width)}${String(pointOutlineColor)}`;
|
|
235
|
+
const circleCacheKey = `${String(radius)}${String(color)}${String(width)}${String(pointOutlineColor)}`;
|
|
238
236
|
if (!this._circleCache.has(circleCacheKey)) {
|
|
239
237
|
const circleOptions = {
|
|
240
238
|
radius,
|
|
@@ -280,7 +278,7 @@ class DeclarativeStyleItem extends StyleItem {
|
|
|
280
278
|
}
|
|
281
279
|
set show(show) {
|
|
282
280
|
this._styleOptions.show = show;
|
|
283
|
-
// @ts-
|
|
281
|
+
// @ts-expect-error setter != getter
|
|
284
282
|
this.cesiumStyle.show = show;
|
|
285
283
|
this._styleChanged();
|
|
286
284
|
}
|
|
@@ -289,7 +287,7 @@ class DeclarativeStyleItem extends StyleItem {
|
|
|
289
287
|
}
|
|
290
288
|
set color(color) {
|
|
291
289
|
this._styleOptions.color = color;
|
|
292
|
-
// @ts-
|
|
290
|
+
// @ts-expect-error setter != getter
|
|
293
291
|
this.cesiumStyle.color = color;
|
|
294
292
|
this._styleChanged();
|
|
295
293
|
}
|
|
@@ -298,7 +296,7 @@ class DeclarativeStyleItem extends StyleItem {
|
|
|
298
296
|
}
|
|
299
297
|
set strokeColor(color) {
|
|
300
298
|
this._styleOptions.strokeColor = color;
|
|
301
|
-
// @ts-
|
|
299
|
+
// @ts-expect-error setter != getter
|
|
302
300
|
this.cesiumStyle.strokeColor = color;
|
|
303
301
|
this._styleChanged();
|
|
304
302
|
}
|
|
@@ -307,7 +305,7 @@ class DeclarativeStyleItem extends StyleItem {
|
|
|
307
305
|
}
|
|
308
306
|
set strokeWidth(width) {
|
|
309
307
|
this._styleOptions.strokeWidth = width;
|
|
310
|
-
// @ts-
|
|
308
|
+
// @ts-expect-error setter != getter
|
|
311
309
|
this.cesiumStyle.strokeWidth = width;
|
|
312
310
|
this._styleChanged();
|
|
313
311
|
}
|
|
@@ -316,7 +314,7 @@ class DeclarativeStyleItem extends StyleItem {
|
|
|
316
314
|
}
|
|
317
315
|
set image(src) {
|
|
318
316
|
this._styleOptions.image = src;
|
|
319
|
-
// @ts-
|
|
317
|
+
// @ts-expect-error setter != getter
|
|
320
318
|
this.cesiumStyle.image = src;
|
|
321
319
|
this._styleChanged();
|
|
322
320
|
}
|
|
@@ -325,7 +323,7 @@ class DeclarativeStyleItem extends StyleItem {
|
|
|
325
323
|
}
|
|
326
324
|
set labelText(text) {
|
|
327
325
|
this._styleOptions.labelText = text;
|
|
328
|
-
// @ts-
|
|
326
|
+
// @ts-expect-error setter != getter
|
|
329
327
|
this.cesiumStyle.labelText = text;
|
|
330
328
|
this._styleChanged();
|
|
331
329
|
}
|
|
@@ -334,7 +332,7 @@ class DeclarativeStyleItem extends StyleItem {
|
|
|
334
332
|
}
|
|
335
333
|
set labelColor(color) {
|
|
336
334
|
this._styleOptions.labelColor = color;
|
|
337
|
-
// @ts-
|
|
335
|
+
// @ts-expect-error setter != getter
|
|
338
336
|
this.cesiumStyle.labelColor = color;
|
|
339
337
|
this._styleChanged();
|
|
340
338
|
}
|
|
@@ -343,7 +341,7 @@ class DeclarativeStyleItem extends StyleItem {
|
|
|
343
341
|
}
|
|
344
342
|
set font(font) {
|
|
345
343
|
this._styleOptions.font = font;
|
|
346
|
-
// @ts-
|
|
344
|
+
// @ts-expect-error setter != getter
|
|
347
345
|
this.cesiumStyle.font = font;
|
|
348
346
|
this._styleChanged();
|
|
349
347
|
}
|
|
@@ -352,7 +350,7 @@ class DeclarativeStyleItem extends StyleItem {
|
|
|
352
350
|
}
|
|
353
351
|
set pointSize(pointSize) {
|
|
354
352
|
this._styleOptions.pointSize = pointSize;
|
|
355
|
-
// @ts-
|
|
353
|
+
// @ts-expect-error setter != getter
|
|
356
354
|
this.cesiumStyle.pointSize = pointSize;
|
|
357
355
|
this._styleChanged();
|
|
358
356
|
}
|