@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
|
@@ -2,11 +2,11 @@ import { SplitDirection } from '@vcmap-cesium/engine';
|
|
|
2
2
|
import { unByKey } from 'ol/Observable.js';
|
|
3
3
|
import type { EventsKey } from 'ol/events.js';
|
|
4
4
|
import type OLLayer from 'ol/layer/Layer.js';
|
|
5
|
-
import RenderEvent from 'ol/render/Event.js';
|
|
5
|
+
import type RenderEvent from 'ol/render/Event.js';
|
|
6
6
|
import { vcsLayerName } from '../layerSymbols.js';
|
|
7
7
|
import LayerImplementation from '../layerImplementation.js';
|
|
8
8
|
import type OpenlayersMap from '../../map/openlayersMap.js';
|
|
9
|
-
import { LayerImplementationOptions } from '../layer.js';
|
|
9
|
+
import type { LayerImplementationOptions } from '../layer.js';
|
|
10
10
|
|
|
11
11
|
export type LayerOpenlayersImplementationOptions =
|
|
12
12
|
LayerImplementationOptions & {
|
|
@@ -88,17 +88,14 @@ class LayerOpenlayersImpl extends LayerImplementation<OpenlayersMap> {
|
|
|
88
88
|
this.olLayer!.on('prerender', this._splitPreRender.bind(this)),
|
|
89
89
|
);
|
|
90
90
|
this._splitDirectionRenderListeners.push(
|
|
91
|
-
this.olLayer!.on('postrender', (
|
|
92
|
-
(event.context as CanvasRenderingContext2D).restore();
|
|
93
|
-
}),
|
|
91
|
+
this.olLayer!.on('postrender', this._splitPostReder.bind(this)),
|
|
94
92
|
);
|
|
95
93
|
this.olLayer!.changed();
|
|
96
94
|
}
|
|
97
95
|
}
|
|
98
96
|
}
|
|
99
97
|
|
|
100
|
-
|
|
101
|
-
// eslint-disable-next-line prefer-destructuring
|
|
98
|
+
protected _splitPreRender(event: RenderEvent): void {
|
|
102
99
|
const context = event.context as CanvasRenderingContext2D;
|
|
103
100
|
const width = context.canvas.width * this.map.splitPosition;
|
|
104
101
|
context.save();
|
|
@@ -117,6 +114,11 @@ class LayerOpenlayersImpl extends LayerImplementation<OpenlayersMap> {
|
|
|
117
114
|
context.clip();
|
|
118
115
|
}
|
|
119
116
|
|
|
117
|
+
// eslint-disable-next-line class-methods-use-this
|
|
118
|
+
protected _splitPostReder(event: RenderEvent): void {
|
|
119
|
+
(event.context as CanvasRenderingContext2D).restore();
|
|
120
|
+
}
|
|
121
|
+
|
|
120
122
|
destroy(): void {
|
|
121
123
|
if (this.olLayer) {
|
|
122
124
|
this.map.removeOLLayer(this.olLayer);
|
|
@@ -3,7 +3,6 @@ import type { ImageTile } from 'ol';
|
|
|
3
3
|
import TileState from 'ol/TileState.js';
|
|
4
4
|
import { getInitForUrl, requestObjectUrl } from '../../util/fetch.js';
|
|
5
5
|
|
|
6
|
-
// eslint-disable-next-line import/prefer-default-export
|
|
7
6
|
export function getTileLoadFunction(
|
|
8
7
|
headers: Record<string, string>,
|
|
9
8
|
): LoadFunction {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Tile from 'ol/layer/Tile.js';
|
|
2
2
|
import TileDebug from 'ol/source/TileDebug.js';
|
|
3
3
|
import LayerOpenlayersImpl from './layerOpenlayersImpl.js';
|
|
4
|
-
import { VectorTileImplementation } from '../vectorTileLayer.js';
|
|
4
|
+
import type { VectorTileImplementation } from '../vectorTileLayer.js';
|
|
5
5
|
import type StyleItem from '../../style/styleItem.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -22,10 +22,10 @@ class TileDebugOpenlayersImpl
|
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
// eslint-disable-next-line class-methods-use-this
|
|
25
|
+
// eslint-disable-next-line class-methods-use-this,@typescript-eslint/no-unused-vars
|
|
26
26
|
updateStyle(_styleItem: StyleItem, _silent?: boolean): void {}
|
|
27
27
|
|
|
28
|
-
// eslint-disable-next-line class-methods-use-this
|
|
28
|
+
// eslint-disable-next-line class-methods-use-this,@typescript-eslint/no-unused-vars
|
|
29
29
|
updateTiles(_args: string[]): void {}
|
|
30
30
|
}
|
|
31
31
|
|
|
@@ -46,7 +46,7 @@ class VectorOpenlayersImpl
|
|
|
46
46
|
this.globalHider = options.globalHider as GlobalHider;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
// eslint-disable-next-line no-unused-vars
|
|
49
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
50
50
|
updateStyle(style: StyleItem, _silent?: boolean): void {
|
|
51
51
|
this.style = style;
|
|
52
52
|
if (this.initialized) {
|
|
@@ -3,7 +3,7 @@ import VectorTileSource from 'ol/source/VectorTile.js';
|
|
|
3
3
|
import TileState from 'ol/TileState.js';
|
|
4
4
|
import type { Size } from 'ol/size.js';
|
|
5
5
|
import type VectorTile from 'ol/VectorTile.js';
|
|
6
|
-
import { Feature } from 'ol';
|
|
6
|
+
import type { Feature } from 'ol';
|
|
7
7
|
import LayerOpenlayersImpl from './layerOpenlayersImpl.js';
|
|
8
8
|
import { mercatorProjection } from '../../util/projection.js';
|
|
9
9
|
import type {
|
|
@@ -72,7 +72,7 @@ class VectorTileOpenlayersImpl
|
|
|
72
72
|
tile.setState(TileState.EMPTY);
|
|
73
73
|
}
|
|
74
74
|
})
|
|
75
|
-
.catch((err) => {
|
|
75
|
+
.catch((err: unknown) => {
|
|
76
76
|
this.getLogger().error((err as Error).message);
|
|
77
77
|
});
|
|
78
78
|
},
|
|
@@ -108,7 +108,7 @@ class VectorTileOpenlayersImpl
|
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
-
// eslint-disable-next-line no-unused-vars
|
|
111
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
112
112
|
updateStyle(_style: StyleItem, _silent?: boolean): void {
|
|
113
113
|
if (this.initialized) {
|
|
114
114
|
this.olLayer?.changed();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Tile from 'ol/layer/Tile.js';
|
|
2
2
|
import type { Size } from 'ol/size.js';
|
|
3
3
|
import type TileWMS from 'ol/source/TileWMS.js';
|
|
4
|
-
import ImageWMS from 'ol/source/ImageWMS.js';
|
|
4
|
+
import type ImageWMS from 'ol/source/ImageWMS.js';
|
|
5
5
|
import ImageLayer from 'ol/layer/Image.js';
|
|
6
6
|
import RasterLayerOpenlayersImpl from './rasterLayerOpenlayersImpl.js';
|
|
7
7
|
import { getImageWMSSource, getWMSSource } from '../wmsHelpers.js';
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import VectorTilePanoramaImpl from './vectorTilePanoramaImpl.js';
|
|
2
|
+
import type { VectorTileImplementationOptions } from '../vectorTileLayer.js';
|
|
3
|
+
import type PanoramaMap from '../../map/panoramaMap.js';
|
|
4
|
+
import { panoramaFeature } from '../vectorSymbols.js';
|
|
5
|
+
|
|
6
|
+
export type PanoramaDatasetPanoramaImplOptions =
|
|
7
|
+
VectorTileImplementationOptions & {
|
|
8
|
+
hideInPanorama?: boolean;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export default class PanoramaDatasetPanoramaImpl extends VectorTilePanoramaImpl {
|
|
12
|
+
private _hideInPanorama = false;
|
|
13
|
+
|
|
14
|
+
constructor(map: PanoramaMap, options: PanoramaDatasetPanoramaImplOptions) {
|
|
15
|
+
super(map, options);
|
|
16
|
+
|
|
17
|
+
this._hideInPanorama = options.hideInPanorama ?? false;
|
|
18
|
+
|
|
19
|
+
this.source.on('addfeature', ({ feature }) => {
|
|
20
|
+
const panoramaProps = feature![panoramaFeature]!;
|
|
21
|
+
if (
|
|
22
|
+
panoramaProps.dataset.tileProvider === options.tileProvider &&
|
|
23
|
+
panoramaProps.name === this._currentImage?.name
|
|
24
|
+
) {
|
|
25
|
+
setTimeout(() => {
|
|
26
|
+
this.source.removeFeature(feature!);
|
|
27
|
+
}, 0);
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
get hideInPanorama(): boolean {
|
|
33
|
+
return this._hideInPanorama;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
set hideInPanorama(value: boolean) {
|
|
37
|
+
if (this._hideInPanorama !== value) {
|
|
38
|
+
this._hideInPanorama = value;
|
|
39
|
+
if (this._primitiveCollection) {
|
|
40
|
+
this._primitiveCollection.show = !value;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
override async activate(): Promise<void> {
|
|
46
|
+
await super.activate();
|
|
47
|
+
this._primitiveCollection.show = !this.hideInPanorama;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import { PrimitiveCollection, SplitDirection } from '@vcmap-cesium/engine';
|
|
2
|
+
import VectorSource from 'ol/source/Vector.js';
|
|
3
|
+
import type StyleItem from '../../style/styleItem.js';
|
|
4
|
+
import LayerImplementation from '../layerImplementation.js';
|
|
5
|
+
import type {
|
|
6
|
+
VectorTileImplementation,
|
|
7
|
+
VectorTileImplementationOptions,
|
|
8
|
+
} from '../vectorTileLayer.js';
|
|
9
|
+
import { vcsLayerName } from '../layerSymbols.js';
|
|
10
|
+
import type PanoramaMap from '../../map/panoramaMap.js';
|
|
11
|
+
import type { PanoramaImage } from '../../panorama/panoramaImage.js';
|
|
12
|
+
import type TileProvider from '../tileProvider/tileProvider.js';
|
|
13
|
+
import VectorContext from '../cesium/vectorContext.js';
|
|
14
|
+
import type { SourceVectorContextSync } from '../cesium/sourceVectorContextSync.js';
|
|
15
|
+
import { createSourceVectorContextSync } from '../cesium/sourceVectorContextSync.js';
|
|
16
|
+
import type VectorProperties from '../vectorProperties.js';
|
|
17
|
+
import { cartesianToMercator } from '../../util/math.js';
|
|
18
|
+
import { mercatorProjection } from '../../util/projection.js';
|
|
19
|
+
import Extent from '../../util/extent.js';
|
|
20
|
+
|
|
21
|
+
export default class VectorTilePanoramaImpl
|
|
22
|
+
extends LayerImplementation<PanoramaMap>
|
|
23
|
+
implements VectorTileImplementation
|
|
24
|
+
{
|
|
25
|
+
static get className(): string {
|
|
26
|
+
return 'VectorTilePanoramaImpl';
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
protected _primitiveCollection = new PrimitiveCollection();
|
|
30
|
+
|
|
31
|
+
private _imageChangedLister: () => void;
|
|
32
|
+
|
|
33
|
+
private _tileProvider: TileProvider;
|
|
34
|
+
|
|
35
|
+
readonly source = new VectorSource();
|
|
36
|
+
|
|
37
|
+
private _style: StyleItem;
|
|
38
|
+
|
|
39
|
+
private _vectorProperties: VectorProperties;
|
|
40
|
+
|
|
41
|
+
private _sourceVectorContextSync: SourceVectorContextSync | undefined;
|
|
42
|
+
|
|
43
|
+
private _context: VectorContext | null = null;
|
|
44
|
+
|
|
45
|
+
protected _currentImage: PanoramaImage | undefined;
|
|
46
|
+
|
|
47
|
+
constructor(map: PanoramaMap, options: VectorTileImplementationOptions) {
|
|
48
|
+
super(map, options);
|
|
49
|
+
|
|
50
|
+
this._primitiveCollection[vcsLayerName] = this.name;
|
|
51
|
+
this._primitiveCollection.show = false;
|
|
52
|
+
this._tileProvider = options.tileProvider;
|
|
53
|
+
this._style = options.style;
|
|
54
|
+
this._vectorProperties = options.vectorProperties;
|
|
55
|
+
|
|
56
|
+
this._imageChangedLister = map.currentImageChanged.addEventListener(
|
|
57
|
+
(image) => {
|
|
58
|
+
this._setImage(image);
|
|
59
|
+
},
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
private _setImage(image?: PanoramaImage): void {
|
|
64
|
+
if (image === this._currentImage) {
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
if (this.active) {
|
|
69
|
+
this.source.clear();
|
|
70
|
+
|
|
71
|
+
if (image) {
|
|
72
|
+
const position = cartesianToMercator(image.position);
|
|
73
|
+
const maxDistance = image.maxDepth ?? 50;
|
|
74
|
+
const extent = [
|
|
75
|
+
position[0] - maxDistance,
|
|
76
|
+
position[1] - maxDistance,
|
|
77
|
+
position[0] + maxDistance,
|
|
78
|
+
position[1] + maxDistance,
|
|
79
|
+
];
|
|
80
|
+
this._currentImage = image;
|
|
81
|
+
this._tileProvider
|
|
82
|
+
.getFeaturesForExtent(
|
|
83
|
+
new Extent({
|
|
84
|
+
coordinates: extent,
|
|
85
|
+
projection: mercatorProjection.toJSON(),
|
|
86
|
+
}),
|
|
87
|
+
)
|
|
88
|
+
.then((features) => {
|
|
89
|
+
if (this._currentImage === image) {
|
|
90
|
+
this.source.addFeatures(features);
|
|
91
|
+
}
|
|
92
|
+
})
|
|
93
|
+
.catch(() => {
|
|
94
|
+
this.getLogger().warning('failed to load tiles');
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
async initialize(): Promise<void> {
|
|
101
|
+
if (!this.initialized) {
|
|
102
|
+
this._context = new VectorContext(
|
|
103
|
+
this.map,
|
|
104
|
+
this._primitiveCollection,
|
|
105
|
+
SplitDirection.NONE,
|
|
106
|
+
);
|
|
107
|
+
this.map.addPrimitiveCollection(this._primitiveCollection);
|
|
108
|
+
this._sourceVectorContextSync = createSourceVectorContextSync(
|
|
109
|
+
this.source,
|
|
110
|
+
this._context,
|
|
111
|
+
this.map.getCesiumWidget().scene,
|
|
112
|
+
this._style.style,
|
|
113
|
+
this._vectorProperties,
|
|
114
|
+
);
|
|
115
|
+
}
|
|
116
|
+
await super.initialize();
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
async activate(): Promise<void> {
|
|
120
|
+
await super.activate();
|
|
121
|
+
this._primitiveCollection.show = true;
|
|
122
|
+
this._sourceVectorContextSync?.activate();
|
|
123
|
+
this._setImage(this.map.currentPanoramaImage);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
deactivate(): void {
|
|
127
|
+
this._primitiveCollection.show = false;
|
|
128
|
+
this._sourceVectorContextSync?.deactivate();
|
|
129
|
+
super.deactivate();
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
updateStyle(style: StyleItem, silent?: boolean): void {
|
|
133
|
+
this._style = style;
|
|
134
|
+
this._sourceVectorContextSync?.setStyle(style.style, silent);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
updateTiles(_tiles: string[], featureVisibility: boolean): void {
|
|
138
|
+
if (!featureVisibility && this._currentImage) {
|
|
139
|
+
const currentImage = this._currentImage;
|
|
140
|
+
this._setImage();
|
|
141
|
+
this._setImage(currentImage);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
// eslint-disable-next-line class-methods-use-this
|
|
146
|
+
updateSplitDirection(): void {}
|
|
147
|
+
|
|
148
|
+
destroy(): void {
|
|
149
|
+
if (!this.isDestroyed) {
|
|
150
|
+
if (this.map.initialized) {
|
|
151
|
+
this.map.removePrimitiveCollection(this._primitiveCollection);
|
|
152
|
+
} else {
|
|
153
|
+
this._primitiveCollection.destroy();
|
|
154
|
+
}
|
|
155
|
+
this._sourceVectorContextSync?.destroy();
|
|
156
|
+
this._imageChangedLister();
|
|
157
|
+
this.source.clear(true);
|
|
158
|
+
this.source.dispose();
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
super.destroy();
|
|
162
|
+
}
|
|
163
|
+
}
|
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
import { parseInteger, parseNumber } from '@vcsuite/parsers';
|
|
2
|
+
import type { Coordinate } from 'ol/coordinate.js';
|
|
3
|
+
import { buffer, createOrUpdateFromCoordinate } from 'ol/extent.js';
|
|
4
|
+
import { type Point } from 'ol/geom.js';
|
|
5
|
+
import VectorTileLayer, {
|
|
6
|
+
type VectorTileImpls,
|
|
7
|
+
type VectorTileOptions,
|
|
8
|
+
} from './vectorTileLayer.js';
|
|
9
|
+
import PanoramaDatasetPanoramaImpl from './panorama/panoramaDatasetPanoramaImpl.js';
|
|
10
|
+
import type VcsMap from '../map/vcsMap.js';
|
|
11
|
+
import PanoramaMap from '../map/panoramaMap.js';
|
|
12
|
+
import VectorProperties, { PrimitiveOptionsType } from './vectorProperties.js';
|
|
13
|
+
import { maxZIndexMin50 } from '../util/layerCollection.js';
|
|
14
|
+
import { layerClassRegistry } from '../classRegistry.js';
|
|
15
|
+
import FlatGeobufTileProvider from './tileProvider/flatGeobufTileProvider.js';
|
|
16
|
+
import { mercatorProjection, wgs84Projection } from '../util/projection.js';
|
|
17
|
+
import { panoramaFeature } from './vectorSymbols.js';
|
|
18
|
+
import {
|
|
19
|
+
createPanoramaImageFromURL,
|
|
20
|
+
type PanoramaImage,
|
|
21
|
+
} from '../panorama/panoramaImage.js';
|
|
22
|
+
import Extent from '../util/extent.js';
|
|
23
|
+
import { cartesian2DDistanceSquared } from '../util/math.js';
|
|
24
|
+
import { getStyleOrDefaultStyle } from '../style/styleFactory.js';
|
|
25
|
+
|
|
26
|
+
export type PanoramaDatasetOptions = Omit<
|
|
27
|
+
VectorTileOptions,
|
|
28
|
+
'url' | 'tileProvider'
|
|
29
|
+
> & {
|
|
30
|
+
url: string;
|
|
31
|
+
baseLevel?: number;
|
|
32
|
+
cameraOffset?: number;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export type PanoramaDatasetFeatureProperties = {
|
|
36
|
+
name: string;
|
|
37
|
+
time: string;
|
|
38
|
+
dataset: PanoramaDatasetLayer;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export default class PanoramaDatasetLayer extends VectorTileLayer<PanoramaDatasetPanoramaImpl> {
|
|
42
|
+
static get className(): string {
|
|
43
|
+
return 'PanoramaDatasetLayer';
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
static getDefaultOptions(): PanoramaDatasetOptions {
|
|
47
|
+
return {
|
|
48
|
+
...VectorTileLayer.getDefaultOptions(),
|
|
49
|
+
url: '',
|
|
50
|
+
baseLevel: 15,
|
|
51
|
+
activeOnStartup: false,
|
|
52
|
+
cameraOffset: 0,
|
|
53
|
+
minLevel: 15,
|
|
54
|
+
maxLevel: 22,
|
|
55
|
+
zIndex: maxZIndexMin50,
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
declare tileProvider: FlatGeobufTileProvider;
|
|
60
|
+
|
|
61
|
+
private _hideInPanorama = false;
|
|
62
|
+
|
|
63
|
+
private _panoramaVectorProperties = new VectorProperties({});
|
|
64
|
+
|
|
65
|
+
private _dataExtent?: Extent;
|
|
66
|
+
|
|
67
|
+
readonly baseUrl: string;
|
|
68
|
+
|
|
69
|
+
readonly baseLevel: number;
|
|
70
|
+
|
|
71
|
+
cameraOffset: number;
|
|
72
|
+
|
|
73
|
+
constructor(options: PanoramaDatasetOptions) {
|
|
74
|
+
const defaultOptions = PanoramaDatasetLayer.getDefaultOptions();
|
|
75
|
+
|
|
76
|
+
const baseLevel = parseInteger(options.baseLevel, defaultOptions.baseLevel);
|
|
77
|
+
|
|
78
|
+
const tileProvider = new FlatGeobufTileProvider({
|
|
79
|
+
idProperty: 'name',
|
|
80
|
+
projection: wgs84Projection.toJSON(),
|
|
81
|
+
levels: [
|
|
82
|
+
{
|
|
83
|
+
url: options.url,
|
|
84
|
+
level: baseLevel,
|
|
85
|
+
},
|
|
86
|
+
],
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
super({
|
|
90
|
+
...defaultOptions,
|
|
91
|
+
...options,
|
|
92
|
+
tileProvider,
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
tileProvider.tileLoadedEvent.addEventListener(({ rtree }) => {
|
|
96
|
+
rtree.all().forEach(({ value: feature }) => {
|
|
97
|
+
const { name, time } =
|
|
98
|
+
feature.getProperties() as Partial<PanoramaDatasetFeatureProperties>;
|
|
99
|
+
|
|
100
|
+
if (name && time) {
|
|
101
|
+
feature[panoramaFeature] = {
|
|
102
|
+
name,
|
|
103
|
+
time,
|
|
104
|
+
dataset: this,
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
});
|
|
109
|
+
|
|
110
|
+
this.baseUrl = this.url.split('/').slice(0, -1).join('/');
|
|
111
|
+
this.baseLevel = baseLevel;
|
|
112
|
+
|
|
113
|
+
this.cameraOffset = parseNumber(
|
|
114
|
+
options.cameraOffset,
|
|
115
|
+
defaultOptions.cameraOffset,
|
|
116
|
+
);
|
|
117
|
+
|
|
118
|
+
this._panoramaVectorProperties = new VectorProperties({
|
|
119
|
+
altitudeMode: 'absolute',
|
|
120
|
+
primitiveOptions: {
|
|
121
|
+
type: PrimitiveOptionsType.CYLINDER,
|
|
122
|
+
geometryOptions: {
|
|
123
|
+
topRadius: 1,
|
|
124
|
+
bottomRadius: 1,
|
|
125
|
+
length: 0.01,
|
|
126
|
+
},
|
|
127
|
+
offset: [0, 0, this.cameraOffset],
|
|
128
|
+
},
|
|
129
|
+
});
|
|
130
|
+
|
|
131
|
+
this._supportedMaps.push(PanoramaMap.className);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
override async initialize(): Promise<void> {
|
|
135
|
+
if (!this.initialized) {
|
|
136
|
+
this._dataExtent = await this.tileProvider.getLevelExtent(this.baseLevel);
|
|
137
|
+
}
|
|
138
|
+
await super.initialize();
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
get hideInPanorama(): boolean {
|
|
142
|
+
return this._hideInPanorama;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
set hideInPanorama(value: boolean) {
|
|
146
|
+
if (this._hideInPanorama !== value) {
|
|
147
|
+
this._hideInPanorama = value;
|
|
148
|
+
this.getImplementations().forEach((impl) => {
|
|
149
|
+
if (impl instanceof PanoramaDatasetPanoramaImpl) {
|
|
150
|
+
impl.hideInPanorama = value;
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
override createImplementationsForMap(
|
|
157
|
+
map: VcsMap,
|
|
158
|
+
): (PanoramaDatasetPanoramaImpl | VectorTileImpls)[] {
|
|
159
|
+
if (map instanceof PanoramaMap) {
|
|
160
|
+
return [
|
|
161
|
+
new PanoramaDatasetPanoramaImpl(map, {
|
|
162
|
+
...this.getImplementationOptions(),
|
|
163
|
+
vectorProperties: this._panoramaVectorProperties,
|
|
164
|
+
hideInPanorama: this.hideInPanorama,
|
|
165
|
+
}),
|
|
166
|
+
];
|
|
167
|
+
}
|
|
168
|
+
return super.createImplementationsForMap(map);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Creates a panorama image with the given name, if it belongs to this dataset.
|
|
173
|
+
* Will cache the image for later use.
|
|
174
|
+
* @param name
|
|
175
|
+
* @returns
|
|
176
|
+
*/
|
|
177
|
+
createPanoramaImage(name: string): Promise<PanoramaImage> {
|
|
178
|
+
return createPanoramaImageFromURL(`${this.baseUrl}/${name}_rgb.tif`, this);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
override getZoomToExtent(): Extent | null {
|
|
182
|
+
const metaExtent = super.getZoomToExtent();
|
|
183
|
+
if (metaExtent) {
|
|
184
|
+
return metaExtent;
|
|
185
|
+
}
|
|
186
|
+
return this._dataExtent ?? null;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* Returns the closes image name to the coordinate within the given distance &
|
|
191
|
+
* the distance squared to the coordinate.
|
|
192
|
+
* @param coordinate - in web mercator
|
|
193
|
+
* @param maxDistance - in meters
|
|
194
|
+
* @returns - the closest image name and the distance squared to the coordinate
|
|
195
|
+
*/
|
|
196
|
+
async getClosestImage(
|
|
197
|
+
coordinate: Coordinate,
|
|
198
|
+
maxDistance = 200,
|
|
199
|
+
): Promise<{ imageName: string; distanceSqrd: number } | undefined> {
|
|
200
|
+
const extent = createOrUpdateFromCoordinate(coordinate);
|
|
201
|
+
buffer(extent, maxDistance, extent);
|
|
202
|
+
const features = await this.tileProvider.getFeaturesForExtent(
|
|
203
|
+
new Extent({
|
|
204
|
+
coordinates: extent,
|
|
205
|
+
projection: mercatorProjection.toJSON(),
|
|
206
|
+
}),
|
|
207
|
+
this.baseLevel,
|
|
208
|
+
);
|
|
209
|
+
let minDistanceSqrd = Infinity;
|
|
210
|
+
let closestImageName: string | undefined;
|
|
211
|
+
features.forEach((feature) => {
|
|
212
|
+
const imagePosition = (feature.getGeometry() as Point).getCoordinates();
|
|
213
|
+
const distanceSqrd = cartesian2DDistanceSquared(
|
|
214
|
+
imagePosition,
|
|
215
|
+
coordinate,
|
|
216
|
+
);
|
|
217
|
+
|
|
218
|
+
if (distanceSqrd < minDistanceSqrd) {
|
|
219
|
+
minDistanceSqrd = distanceSqrd;
|
|
220
|
+
closestImageName = feature.get('name') as string;
|
|
221
|
+
}
|
|
222
|
+
});
|
|
223
|
+
|
|
224
|
+
if (closestImageName) {
|
|
225
|
+
return {
|
|
226
|
+
imageName: closestImageName,
|
|
227
|
+
distanceSqrd: minDistanceSqrd,
|
|
228
|
+
};
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
return undefined;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
override toJSON(): PanoramaDatasetOptions {
|
|
235
|
+
const config = super.toJSON() as Partial<PanoramaDatasetOptions> &
|
|
236
|
+
VectorTileOptions;
|
|
237
|
+
delete config.tileProvider; // tileProvider is not serializable
|
|
238
|
+
config.url = this.url;
|
|
239
|
+
|
|
240
|
+
const defaultOptions = PanoramaDatasetLayer.getDefaultOptions();
|
|
241
|
+
if (this.cameraOffset !== defaultOptions.cameraOffset) {
|
|
242
|
+
config.cameraOffset = this.cameraOffset;
|
|
243
|
+
}
|
|
244
|
+
if (this.baseLevel !== defaultOptions.baseLevel) {
|
|
245
|
+
config.baseLevel = this.baseLevel;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
if (config.maxLevel === defaultOptions.maxLevel) {
|
|
249
|
+
delete config.maxLevel;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
if (config.minLevel === defaultOptions.minLevel) {
|
|
253
|
+
delete config.minLevel;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
if (config.zIndex === defaultOptions.zIndex) {
|
|
257
|
+
delete config.zIndex;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
const thisDefaultStyle = getStyleOrDefaultStyle(defaultOptions.style);
|
|
261
|
+
if (this.style.equals(thisDefaultStyle)) {
|
|
262
|
+
delete config.style;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
return config as PanoramaDatasetOptions;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
layerClassRegistry.registerClass(
|
|
270
|
+
PanoramaDatasetLayer.className,
|
|
271
|
+
PanoramaDatasetLayer,
|
|
272
|
+
);
|
|
@@ -1,21 +1,18 @@
|
|
|
1
1
|
import { check, maybe, oneOf } from '@vcsuite/check';
|
|
2
2
|
// eslint-disable-next-line import/no-named-default
|
|
3
3
|
import type { default as OLStyle, StyleFunction } from 'ol/style/Style.js';
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
} from '
|
|
7
|
-
import DeclarativeStyleItem
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
import VectorStyleItem, {
|
|
12
|
-
VectorStyleItemOptions,
|
|
13
|
-
} from '../style/vectorStyleItem.js';
|
|
4
|
+
import type { CesiumTilesetOptions } from './cesiumTilesetLayer.js';
|
|
5
|
+
import CesiumTilesetLayer from './cesiumTilesetLayer.js';
|
|
6
|
+
import type { DeclarativeStyleItemOptions } from '../style/declarativeStyleItem.js';
|
|
7
|
+
import type DeclarativeStyleItem from '../style/declarativeStyleItem.js';
|
|
8
|
+
import { defaultDeclarativeStyle } from '../style/declarativeStyleItem.js';
|
|
9
|
+
import type { VectorStyleItemOptions } from '../style/vectorStyleItem.js';
|
|
10
|
+
import VectorStyleItem from '../style/vectorStyleItem.js';
|
|
14
11
|
import CesiumMap from '../map/cesiumMap.js';
|
|
15
12
|
import CesiumTilesetCesiumImpl from './cesium/cesiumTilesetCesiumImpl.js';
|
|
16
13
|
import { layerClassRegistry } from '../classRegistry.js';
|
|
17
|
-
import StyleItem from '../style/styleItem.js';
|
|
18
|
-
import VcsMap from '../map/vcsMap.js';
|
|
14
|
+
import type StyleItem from '../style/styleItem.js';
|
|
15
|
+
import type VcsMap from '../map/vcsMap.js';
|
|
19
16
|
|
|
20
17
|
export type PointCloudOptions = CesiumTilesetOptions & {
|
|
21
18
|
pointSize?: number | string;
|
package/src/layer/rasterLayer.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import type { ImageryLayer } from '@vcmap-cesium/engine';
|
|
1
2
|
import {
|
|
2
3
|
SplitDirection,
|
|
3
4
|
WebMercatorTilingScheme,
|
|
4
5
|
GeographicTilingScheme,
|
|
5
6
|
Cartographic,
|
|
6
|
-
ImageryLayer,
|
|
7
7
|
} from '@vcmap-cesium/engine';
|
|
8
8
|
import {
|
|
9
9
|
getBottomLeft,
|
|
@@ -18,16 +18,17 @@ import {
|
|
|
18
18
|
parseEnumValue,
|
|
19
19
|
} from '@vcsuite/parsers';
|
|
20
20
|
import { wgs84Projection } from '../util/projection.js';
|
|
21
|
-
import
|
|
21
|
+
import type {
|
|
22
22
|
LayerImplementationOptions,
|
|
23
23
|
LayerOptions,
|
|
24
24
|
SplitLayer,
|
|
25
25
|
} from './layer.js';
|
|
26
|
+
import Layer from './layer.js';
|
|
26
27
|
import VcsEvent from '../vcsEvent.js';
|
|
27
28
|
import Extent from '../util/extent.js';
|
|
28
29
|
import { layerClassRegistry } from '../classRegistry.js';
|
|
29
|
-
import LayerImplementation from './layerImplementation.js';
|
|
30
|
-
import VcsMap from '../map/vcsMap.js';
|
|
30
|
+
import type LayerImplementation from './layerImplementation.js';
|
|
31
|
+
import type VcsMap from '../map/vcsMap.js';
|
|
31
32
|
|
|
32
33
|
export type RasterLayerOptions = LayerOptions & {
|
|
33
34
|
/**
|
|
@@ -244,7 +245,7 @@ class RasterLayer<
|
|
|
244
245
|
/**
|
|
245
246
|
* raised if the split direction changes, is passed the split direction as its only argument
|
|
246
247
|
*/
|
|
247
|
-
splitDirectionChanged
|
|
248
|
+
splitDirectionChanged = new VcsEvent<SplitDirection>();
|
|
248
249
|
|
|
249
250
|
/**
|
|
250
251
|
* @param options
|