@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vectorOpenlayersImpl.js","sourceRoot":"","sources":["../../../../src/layer/openlayers/vectorOpenlayersImpl.ts"],"names":[],"mappings":"AACA,OAAO,aAAa,MAAM,oBAAoB,CAAC;AAC/C,OAAO,mBAAmB,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,sCAAsC,EAAE,MAAM,qBAAqB,CAAC;AAQ7E;;GAEG;AACH,MAAM,oBACJ,SAAQ,mBAAmB;IAG3B,MAAM,KAAK,SAAS;QAClB,OAAO,sBAAsB,CAAC;IAChC,CAAC;IAED,MAAM,CAAe;IAErB,KAAK,CAAY;IAEjB,aAAa,CAAqB;IAElC,aAAa,CAAqB;IAElC,iBAAiB,CAAoB;IAE7B,2BAA2B,GAAmB,EAAE,CAAC;IAEzD,OAAO,GAAyB,IAAI,CAAC;IAErC,WAAW,CAAc;IAEzB,YAAY,GAAkB,EAAE,OAAoC;QAClE,KAAK,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;QACpB,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;QAC7B,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC;QAC3B,IAAI,CAAC,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC;QAC3C,IAAI,CAAC,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC;QAC3C,IAAI,CAAC,iBAAiB,GAAG,OAAO,CAAC,iBAAiB,CAAC;QACnD,IAAI,CAAC,WAAW,GAAG,OAAO,CAAC,WAA0B,CAAC;IACxD,CAAC;IAED,
|
|
1
|
+
{"version":3,"file":"vectorOpenlayersImpl.js","sourceRoot":"","sources":["../../../../src/layer/openlayers/vectorOpenlayersImpl.ts"],"names":[],"mappings":"AACA,OAAO,aAAa,MAAM,oBAAoB,CAA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,KAAK,CAAC,OAAO,EAAE,CAAC;IAClB,CAAC;CACF;AAED,eAAe,oBAAoB,CAAC"}
|
|
@@ -76,7 +76,7 @@ class VectorTileOpenlayersImpl extends LayerOpenlayersImpl {
|
|
|
76
76
|
this.olLayer?.changed();
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
|
-
// eslint-disable-next-line no-unused-vars
|
|
79
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
80
80
|
updateStyle(_style, _silent) {
|
|
81
81
|
if (this.initialized) {
|
|
82
82
|
this.olLayer?.changed();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vectorTileOpenlayersImpl.js","sourceRoot":"","sources":["../../../../src/layer/openlayers/vectorTileOpenlayersImpl.ts"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,MAAM,wBAAwB,CAAC;AACvD,OAAO,gBAAgB,MAAM,yBAAyB,CAAC;AACvD,OAAO,SAAS,MAAM,iBAAiB,CAAC;AAIxC,OAAO,mBAAmB,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAU9D;;GAEG;AACH,MAAM,wBACJ,SAAQ,mBAAmB;IAG3B,MAAM,KAAK,SAAS;QAClB,OAAO,0BAA0B,CAAC;IACpC,CAAC;IAED,YAAY,CAAe;IAE3B,MAAM,GAAiC,SAAS,CAAC;IAEjD,QAAQ,CAAO;IAEf,QAAQ,CAAqB;IAE7B,QAAQ,CAAqB;IAE7B,MAAM,CAAqB;IAE3B,SAAS,CAAU;IAEnB,YAAY,GAAkB,EAAE,OAAwC;QACtE,KAAK,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;QAEpB,IAAI,CAAC,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;QACzC,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC;QACjC,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC;QACjC,IAAI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1B,CAAC;IACH,CAAC;IAED,6DAA6D;IAC7D,WAAW,CAAC,MAAiB,EAAE,OAAiB;QAC9C,IAAI,IAAI,CAAC,WAAW,EAAE,CAAC;YACrB,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,CAAC;QAC1B,CAAC;IACH,CAAC;IAED,aAAa,CAAC,UAAmB;QAC/B,IAAI,IAAI,CAAC,WAAW,EAAE,CAAC;YACrB,IAAI,CAAC,OAAQ,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;QACvC,CAAC;IACH,CAAC;IAED,OAAO;QACL,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;YAChB,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;YACpB,6DAA6D;YAC7D,aAAa;YACb,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;QACrB,CAAC;QACD,6DAA6D;QAC7D,aAAa;QACb,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC;QACzB,KAAK,CAAC,OAAO,EAAE,CAAC;IAClB,CAAC;CACF;AAED,eAAe,wBAAwB,CAAC"}
|
|
@@ -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 type { WMSImplementationOptions } from '../wmsLayer.js';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import VectorTilePanoramaImpl from './vectorTilePanoramaImpl.js';
|
|
2
|
+
import type { VectorTileImplementationOptions } from '../vectorTileLayer.js';
|
|
3
|
+
import type PanoramaMap from '../../map/panoramaMap.js';
|
|
4
|
+
export type PanoramaDatasetPanoramaImplOptions = VectorTileImplementationOptions & {
|
|
5
|
+
hideInPanorama?: boolean;
|
|
6
|
+
};
|
|
7
|
+
export default class PanoramaDatasetPanoramaImpl extends VectorTilePanoramaImpl {
|
|
8
|
+
private _hideInPanorama;
|
|
9
|
+
constructor(map: PanoramaMap, options: PanoramaDatasetPanoramaImplOptions);
|
|
10
|
+
get hideInPanorama(): boolean;
|
|
11
|
+
set hideInPanorama(value: boolean);
|
|
12
|
+
activate(): Promise<void>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import VectorTilePanoramaImpl from './vectorTilePanoramaImpl.js';
|
|
2
|
+
import { panoramaFeature } from '../vectorSymbols.js';
|
|
3
|
+
export default class PanoramaDatasetPanoramaImpl extends VectorTilePanoramaImpl {
|
|
4
|
+
_hideInPanorama = false;
|
|
5
|
+
constructor(map, options) {
|
|
6
|
+
super(map, options);
|
|
7
|
+
this._hideInPanorama = options.hideInPanorama ?? false;
|
|
8
|
+
this.source.on('addfeature', ({ feature }) => {
|
|
9
|
+
const panoramaProps = feature[panoramaFeature];
|
|
10
|
+
if (panoramaProps.dataset.tileProvider === options.tileProvider &&
|
|
11
|
+
panoramaProps.name === this._currentImage?.name) {
|
|
12
|
+
setTimeout(() => {
|
|
13
|
+
this.source.removeFeature(feature);
|
|
14
|
+
}, 0);
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
get hideInPanorama() {
|
|
19
|
+
return this._hideInPanorama;
|
|
20
|
+
}
|
|
21
|
+
set hideInPanorama(value) {
|
|
22
|
+
if (this._hideInPanorama !== value) {
|
|
23
|
+
this._hideInPanorama = value;
|
|
24
|
+
if (this._primitiveCollection) {
|
|
25
|
+
this._primitiveCollection.show = !value;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
async activate() {
|
|
30
|
+
await super.activate();
|
|
31
|
+
this._primitiveCollection.show = !this.hideInPanorama;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=panoramaDatasetPanoramaImpl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"panoramaDatasetPanoramaImpl.js","sourceRoot":"","sources":["../../../../src/layer/panorama/panoramaDatasetPanoramaImpl.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,MAAM,6BAA6B,CAAC;AAGjE,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAOtD,MAAM,CAAC,OAAO,OAAO,2BAA4B,SAAQ,sBAAsB;IACrE,eAAe,GAAG,KAAK,CAAC;IAEhC,YAAY,GAAgB,EAAE,OAA2C;QACvE,KAAK,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;QAEpB,IAAI,CAAC,eAAe,GAAG,OAAO,CAAC,cAAc,IAAI,KAAK,CAAC;QAEvD,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,YAAY,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE;YAC3C,MAAM,aAAa,GAAG,OAAQ,CAAC,eAAe,CAAE,CAAC;YACjD,IACE,aAAa,CAAC,OAAO,CAAC,YAAY,KAAK,OAAO,CAAC,YAAY;gBAC3D,aAAa,CAAC,IAAI,KAAK,IAAI,CAAC,aAAa,EAAE,IAAI,EAC/C,CAAC;gBACD,UAAU,CAAC,GAAG,EAAE;oBACd,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,OAAQ,CAAC,CAAC;gBACtC,CAAC,EAAE,CAAC,CAAC,CAAC;YACR,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;IAED,IAAI,cAAc;QAChB,OAAO,IAAI,CAAC,eAAe,CAAC;IAC9B,CAAC;IAED,IAAI,cAAc,CAAC,KAAc;QAC/B,IAAI,IAAI,CAAC,eAAe,KAAK,KAAK,EAAE,CAAC;YACnC,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;YAC7B,IAAI,IAAI,CAAC,oBAAoB,EAAE,CAAC;gBAC9B,IAAI,CAAC,oBAAoB,CAAC,IAAI,GAAG,CAAC,KAAK,CAAC;YAC1C,CAAC;QACH,CAAC;IACH,CAAC;IAEQ,KAAK,CAAC,QAAQ;QACrB,MAAM,KAAK,CAAC,QAAQ,EAAE,CAAC;QACvB,IAAI,CAAC,oBAAoB,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,cAAc,CAAC;IACxD,CAAC;CACF"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { PrimitiveCollection } 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 { VectorTileImplementation, VectorTileImplementationOptions } from '../vectorTileLayer.js';
|
|
6
|
+
import type PanoramaMap from '../../map/panoramaMap.js';
|
|
7
|
+
import type { PanoramaImage } from '../../panorama/panoramaImage.js';
|
|
8
|
+
export default class VectorTilePanoramaImpl extends LayerImplementation<PanoramaMap> implements VectorTileImplementation {
|
|
9
|
+
static get className(): string;
|
|
10
|
+
protected _primitiveCollection: PrimitiveCollection;
|
|
11
|
+
private _imageChangedLister;
|
|
12
|
+
private _tileProvider;
|
|
13
|
+
readonly source: VectorSource<import("ol/index.js").Feature<import("ol/geom.js").Geometry>>;
|
|
14
|
+
private _style;
|
|
15
|
+
private _vectorProperties;
|
|
16
|
+
private _sourceVectorContextSync;
|
|
17
|
+
private _context;
|
|
18
|
+
protected _currentImage: PanoramaImage | undefined;
|
|
19
|
+
constructor(map: PanoramaMap, options: VectorTileImplementationOptions);
|
|
20
|
+
private _setImage;
|
|
21
|
+
initialize(): Promise<void>;
|
|
22
|
+
activate(): Promise<void>;
|
|
23
|
+
deactivate(): void;
|
|
24
|
+
updateStyle(style: StyleItem, silent?: boolean): void;
|
|
25
|
+
updateTiles(_tiles: string[], featureVisibility: boolean): void;
|
|
26
|
+
updateSplitDirection(): void;
|
|
27
|
+
destroy(): void;
|
|
28
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { PrimitiveCollection, SplitDirection } from '@vcmap-cesium/engine';
|
|
2
|
+
import VectorSource from 'ol/source/Vector.js';
|
|
3
|
+
import LayerImplementation from '../layerImplementation.js';
|
|
4
|
+
import { vcsLayerName } from '../layerSymbols.js';
|
|
5
|
+
import VectorContext from '../cesium/vectorContext.js';
|
|
6
|
+
import { createSourceVectorContextSync } from '../cesium/sourceVectorContextSync.js';
|
|
7
|
+
import { cartesianToMercator } from '../../util/math.js';
|
|
8
|
+
import { mercatorProjection } from '../../util/projection.js';
|
|
9
|
+
import Extent from '../../util/extent.js';
|
|
10
|
+
export default class VectorTilePanoramaImpl extends LayerImplementation {
|
|
11
|
+
static get className() {
|
|
12
|
+
return 'VectorTilePanoramaImpl';
|
|
13
|
+
}
|
|
14
|
+
_primitiveCollection = new PrimitiveCollection();
|
|
15
|
+
_imageChangedLister;
|
|
16
|
+
_tileProvider;
|
|
17
|
+
source = new VectorSource();
|
|
18
|
+
_style;
|
|
19
|
+
_vectorProperties;
|
|
20
|
+
_sourceVectorContextSync;
|
|
21
|
+
_context = null;
|
|
22
|
+
_currentImage;
|
|
23
|
+
constructor(map, options) {
|
|
24
|
+
super(map, options);
|
|
25
|
+
this._primitiveCollection[vcsLayerName] = this.name;
|
|
26
|
+
this._primitiveCollection.show = false;
|
|
27
|
+
this._tileProvider = options.tileProvider;
|
|
28
|
+
this._style = options.style;
|
|
29
|
+
this._vectorProperties = options.vectorProperties;
|
|
30
|
+
this._imageChangedLister = map.currentImageChanged.addEventListener((image) => {
|
|
31
|
+
this._setImage(image);
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
_setImage(image) {
|
|
35
|
+
if (image === this._currentImage) {
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
if (this.active) {
|
|
39
|
+
this.source.clear();
|
|
40
|
+
if (image) {
|
|
41
|
+
const position = cartesianToMercator(image.position);
|
|
42
|
+
const maxDistance = image.maxDepth ?? 50;
|
|
43
|
+
const extent = [
|
|
44
|
+
position[0] - maxDistance,
|
|
45
|
+
position[1] - maxDistance,
|
|
46
|
+
position[0] + maxDistance,
|
|
47
|
+
position[1] + maxDistance,
|
|
48
|
+
];
|
|
49
|
+
this._currentImage = image;
|
|
50
|
+
this._tileProvider
|
|
51
|
+
.getFeaturesForExtent(new Extent({
|
|
52
|
+
coordinates: extent,
|
|
53
|
+
projection: mercatorProjection.toJSON(),
|
|
54
|
+
}))
|
|
55
|
+
.then((features) => {
|
|
56
|
+
if (this._currentImage === image) {
|
|
57
|
+
this.source.addFeatures(features);
|
|
58
|
+
}
|
|
59
|
+
})
|
|
60
|
+
.catch(() => {
|
|
61
|
+
this.getLogger().warning('failed to load tiles');
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
async initialize() {
|
|
67
|
+
if (!this.initialized) {
|
|
68
|
+
this._context = new VectorContext(this.map, this._primitiveCollection, SplitDirection.NONE);
|
|
69
|
+
this.map.addPrimitiveCollection(this._primitiveCollection);
|
|
70
|
+
this._sourceVectorContextSync = createSourceVectorContextSync(this.source, this._context, this.map.getCesiumWidget().scene, this._style.style, this._vectorProperties);
|
|
71
|
+
}
|
|
72
|
+
await super.initialize();
|
|
73
|
+
}
|
|
74
|
+
async activate() {
|
|
75
|
+
await super.activate();
|
|
76
|
+
this._primitiveCollection.show = true;
|
|
77
|
+
this._sourceVectorContextSync?.activate();
|
|
78
|
+
this._setImage(this.map.currentPanoramaImage);
|
|
79
|
+
}
|
|
80
|
+
deactivate() {
|
|
81
|
+
this._primitiveCollection.show = false;
|
|
82
|
+
this._sourceVectorContextSync?.deactivate();
|
|
83
|
+
super.deactivate();
|
|
84
|
+
}
|
|
85
|
+
updateStyle(style, silent) {
|
|
86
|
+
this._style = style;
|
|
87
|
+
this._sourceVectorContextSync?.setStyle(style.style, silent);
|
|
88
|
+
}
|
|
89
|
+
updateTiles(_tiles, featureVisibility) {
|
|
90
|
+
if (!featureVisibility && this._currentImage) {
|
|
91
|
+
const currentImage = this._currentImage;
|
|
92
|
+
this._setImage();
|
|
93
|
+
this._setImage(currentImage);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
// eslint-disable-next-line class-methods-use-this
|
|
97
|
+
updateSplitDirection() { }
|
|
98
|
+
destroy() {
|
|
99
|
+
if (!this.isDestroyed) {
|
|
100
|
+
if (this.map.initialized) {
|
|
101
|
+
this.map.removePrimitiveCollection(this._primitiveCollection);
|
|
102
|
+
}
|
|
103
|
+
else {
|
|
104
|
+
this._primitiveCollection.destroy();
|
|
105
|
+
}
|
|
106
|
+
this._sourceVectorContextSync?.destroy();
|
|
107
|
+
this._imageChangedLister();
|
|
108
|
+
this.source.clear(true);
|
|
109
|
+
this.source.dispose();
|
|
110
|
+
}
|
|
111
|
+
super.destroy();
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
//# sourceMappingURL=vectorTilePanoramaImpl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vectorTilePanoramaImpl.js","sourceRoot":"","sources":["../../../../src/layer/panorama/vectorTilePanoramaImpl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3E,OAAO,YAAY,MAAM,qBAAqB,CAAC;AAE/C,OAAO,mBAAmB,MAAM,2BAA2B,CAAC;AAK5D,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAIlD,OAAO,aAAa,MAAM,4BAA4B,CAAC;AAEvD,OAAO,EAAE,6BAA6B,EAAE,MAAM,sCAAsC,CAAC;AAErF,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,MAAM,MAAM,sBAAsB,CAAC;AAE1C,MAAM,CAAC,OAAO,OAAO,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CAAC;gBACN,IAAI,CAAC,oBAAoB,CAAC,OAAO,EAAE,CAAC;YACtC,CAAC;YACD,IAAI,CAAC,wBAAwB,EAAE,OAAO,EAAE,CAAC;YACzC,IAAI,CAAC,mBAAmB,EAAE,CAAC;YAC3B,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;YACxB,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;QACxB,CAAC;QAED,KAAK,CAAC,OAAO,EAAE,CAAC;IAClB,CAAC;CACF"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { Coordinate } from 'ol/coordinate.js';
|
|
2
|
+
import VectorTileLayer, { type VectorTileImpls, type VectorTileOptions } from './vectorTileLayer.js';
|
|
3
|
+
import PanoramaDatasetPanoramaImpl from './panorama/panoramaDatasetPanoramaImpl.js';
|
|
4
|
+
import type VcsMap from '../map/vcsMap.js';
|
|
5
|
+
import FlatGeobufTileProvider from './tileProvider/flatGeobufTileProvider.js';
|
|
6
|
+
import { type PanoramaImage } from '../panorama/panoramaImage.js';
|
|
7
|
+
import Extent from '../util/extent.js';
|
|
8
|
+
export type PanoramaDatasetOptions = Omit<VectorTileOptions, 'url' | 'tileProvider'> & {
|
|
9
|
+
url: string;
|
|
10
|
+
baseLevel?: number;
|
|
11
|
+
cameraOffset?: number;
|
|
12
|
+
};
|
|
13
|
+
export type PanoramaDatasetFeatureProperties = {
|
|
14
|
+
name: string;
|
|
15
|
+
time: string;
|
|
16
|
+
dataset: PanoramaDatasetLayer;
|
|
17
|
+
};
|
|
18
|
+
export default class PanoramaDatasetLayer extends VectorTileLayer<PanoramaDatasetPanoramaImpl> {
|
|
19
|
+
static get className(): string;
|
|
20
|
+
static getDefaultOptions(): PanoramaDatasetOptions;
|
|
21
|
+
tileProvider: FlatGeobufTileProvider;
|
|
22
|
+
private _hideInPanorama;
|
|
23
|
+
private _panoramaVectorProperties;
|
|
24
|
+
private _dataExtent?;
|
|
25
|
+
readonly baseUrl: string;
|
|
26
|
+
readonly baseLevel: number;
|
|
27
|
+
cameraOffset: number;
|
|
28
|
+
constructor(options: PanoramaDatasetOptions);
|
|
29
|
+
initialize(): Promise<void>;
|
|
30
|
+
get hideInPanorama(): boolean;
|
|
31
|
+
set hideInPanorama(value: boolean);
|
|
32
|
+
createImplementationsForMap(map: VcsMap): (PanoramaDatasetPanoramaImpl | VectorTileImpls)[];
|
|
33
|
+
/**
|
|
34
|
+
* Creates a panorama image with the given name, if it belongs to this dataset.
|
|
35
|
+
* Will cache the image for later use.
|
|
36
|
+
* @param name
|
|
37
|
+
* @returns
|
|
38
|
+
*/
|
|
39
|
+
createPanoramaImage(name: string): Promise<PanoramaImage>;
|
|
40
|
+
getZoomToExtent(): Extent | null;
|
|
41
|
+
/**
|
|
42
|
+
* Returns the closes image name to the coordinate within the given distance &
|
|
43
|
+
* the distance squared to the coordinate.
|
|
44
|
+
* @param coordinate - in web mercator
|
|
45
|
+
* @param maxDistance - in meters
|
|
46
|
+
* @returns - the closest image name and the distance squared to the coordinate
|
|
47
|
+
*/
|
|
48
|
+
getClosestImage(coordinate: Coordinate, maxDistance?: number): Promise<{
|
|
49
|
+
imageName: string;
|
|
50
|
+
distanceSqrd: number;
|
|
51
|
+
} | undefined>;
|
|
52
|
+
toJSON(): PanoramaDatasetOptions;
|
|
53
|
+
}
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
import { parseInteger, parseNumber } from '@vcsuite/parsers';
|
|
2
|
+
import { buffer, createOrUpdateFromCoordinate } from 'ol/extent.js';
|
|
3
|
+
import VectorTileLayer from './vectorTileLayer.js';
|
|
4
|
+
import PanoramaDatasetPanoramaImpl from './panorama/panoramaDatasetPanoramaImpl.js';
|
|
5
|
+
import PanoramaMap from '../map/panoramaMap.js';
|
|
6
|
+
import VectorProperties, { PrimitiveOptionsType } from './vectorProperties.js';
|
|
7
|
+
import { maxZIndexMin50 } from '../util/layerCollection.js';
|
|
8
|
+
import { layerClassRegistry } from '../classRegistry.js';
|
|
9
|
+
import FlatGeobufTileProvider from './tileProvider/flatGeobufTileProvider.js';
|
|
10
|
+
import { mercatorProjection, wgs84Projection } from '../util/projection.js';
|
|
11
|
+
import { panoramaFeature } from './vectorSymbols.js';
|
|
12
|
+
import { createPanoramaImageFromURL, } from '../panorama/panoramaImage.js';
|
|
13
|
+
import Extent from '../util/extent.js';
|
|
14
|
+
import { cartesian2DDistanceSquared } from '../util/math.js';
|
|
15
|
+
import { getStyleOrDefaultStyle } from '../style/styleFactory.js';
|
|
16
|
+
export default class PanoramaDatasetLayer extends VectorTileLayer {
|
|
17
|
+
static get className() {
|
|
18
|
+
return 'PanoramaDatasetLayer';
|
|
19
|
+
}
|
|
20
|
+
static getDefaultOptions() {
|
|
21
|
+
return {
|
|
22
|
+
...VectorTileLayer.getDefaultOptions(),
|
|
23
|
+
url: '',
|
|
24
|
+
baseLevel: 15,
|
|
25
|
+
activeOnStartup: false,
|
|
26
|
+
cameraOffset: 0,
|
|
27
|
+
minLevel: 15,
|
|
28
|
+
maxLevel: 22,
|
|
29
|
+
zIndex: maxZIndexMin50,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
_hideInPanorama = false;
|
|
33
|
+
_panoramaVectorProperties = new VectorProperties({});
|
|
34
|
+
_dataExtent;
|
|
35
|
+
baseUrl;
|
|
36
|
+
baseLevel;
|
|
37
|
+
cameraOffset;
|
|
38
|
+
constructor(options) {
|
|
39
|
+
const defaultOptions = PanoramaDatasetLayer.getDefaultOptions();
|
|
40
|
+
const baseLevel = parseInteger(options.baseLevel, defaultOptions.baseLevel);
|
|
41
|
+
const tileProvider = new FlatGeobufTileProvider({
|
|
42
|
+
idProperty: 'name',
|
|
43
|
+
projection: wgs84Projection.toJSON(),
|
|
44
|
+
levels: [
|
|
45
|
+
{
|
|
46
|
+
url: options.url,
|
|
47
|
+
level: baseLevel,
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
});
|
|
51
|
+
super({
|
|
52
|
+
...defaultOptions,
|
|
53
|
+
...options,
|
|
54
|
+
tileProvider,
|
|
55
|
+
});
|
|
56
|
+
tileProvider.tileLoadedEvent.addEventListener(({ rtree }) => {
|
|
57
|
+
rtree.all().forEach(({ value: feature }) => {
|
|
58
|
+
const { name, time } = feature.getProperties();
|
|
59
|
+
if (name && time) {
|
|
60
|
+
feature[panoramaFeature] = {
|
|
61
|
+
name,
|
|
62
|
+
time,
|
|
63
|
+
dataset: this,
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
this.baseUrl = this.url.split('/').slice(0, -1).join('/');
|
|
69
|
+
this.baseLevel = baseLevel;
|
|
70
|
+
this.cameraOffset = parseNumber(options.cameraOffset, defaultOptions.cameraOffset);
|
|
71
|
+
this._panoramaVectorProperties = new VectorProperties({
|
|
72
|
+
altitudeMode: 'absolute',
|
|
73
|
+
primitiveOptions: {
|
|
74
|
+
type: PrimitiveOptionsType.CYLINDER,
|
|
75
|
+
geometryOptions: {
|
|
76
|
+
topRadius: 1,
|
|
77
|
+
bottomRadius: 1,
|
|
78
|
+
length: 0.01,
|
|
79
|
+
},
|
|
80
|
+
offset: [0, 0, this.cameraOffset],
|
|
81
|
+
},
|
|
82
|
+
});
|
|
83
|
+
this._supportedMaps.push(PanoramaMap.className);
|
|
84
|
+
}
|
|
85
|
+
async initialize() {
|
|
86
|
+
if (!this.initialized) {
|
|
87
|
+
this._dataExtent = await this.tileProvider.getLevelExtent(this.baseLevel);
|
|
88
|
+
}
|
|
89
|
+
await super.initialize();
|
|
90
|
+
}
|
|
91
|
+
get hideInPanorama() {
|
|
92
|
+
return this._hideInPanorama;
|
|
93
|
+
}
|
|
94
|
+
set hideInPanorama(value) {
|
|
95
|
+
if (this._hideInPanorama !== value) {
|
|
96
|
+
this._hideInPanorama = value;
|
|
97
|
+
this.getImplementations().forEach((impl) => {
|
|
98
|
+
if (impl instanceof PanoramaDatasetPanoramaImpl) {
|
|
99
|
+
impl.hideInPanorama = value;
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
createImplementationsForMap(map) {
|
|
105
|
+
if (map instanceof PanoramaMap) {
|
|
106
|
+
return [
|
|
107
|
+
new PanoramaDatasetPanoramaImpl(map, {
|
|
108
|
+
...this.getImplementationOptions(),
|
|
109
|
+
vectorProperties: this._panoramaVectorProperties,
|
|
110
|
+
hideInPanorama: this.hideInPanorama,
|
|
111
|
+
}),
|
|
112
|
+
];
|
|
113
|
+
}
|
|
114
|
+
return super.createImplementationsForMap(map);
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Creates a panorama image with the given name, if it belongs to this dataset.
|
|
118
|
+
* Will cache the image for later use.
|
|
119
|
+
* @param name
|
|
120
|
+
* @returns
|
|
121
|
+
*/
|
|
122
|
+
createPanoramaImage(name) {
|
|
123
|
+
return createPanoramaImageFromURL(`${this.baseUrl}/${name}_rgb.tif`, this);
|
|
124
|
+
}
|
|
125
|
+
getZoomToExtent() {
|
|
126
|
+
const metaExtent = super.getZoomToExtent();
|
|
127
|
+
if (metaExtent) {
|
|
128
|
+
return metaExtent;
|
|
129
|
+
}
|
|
130
|
+
return this._dataExtent ?? null;
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Returns the closes image name to the coordinate within the given distance &
|
|
134
|
+
* the distance squared to the coordinate.
|
|
135
|
+
* @param coordinate - in web mercator
|
|
136
|
+
* @param maxDistance - in meters
|
|
137
|
+
* @returns - the closest image name and the distance squared to the coordinate
|
|
138
|
+
*/
|
|
139
|
+
async getClosestImage(coordinate, maxDistance = 200) {
|
|
140
|
+
const extent = createOrUpdateFromCoordinate(coordinate);
|
|
141
|
+
buffer(extent, maxDistance, extent);
|
|
142
|
+
const features = await this.tileProvider.getFeaturesForExtent(new Extent({
|
|
143
|
+
coordinates: extent,
|
|
144
|
+
projection: mercatorProjection.toJSON(),
|
|
145
|
+
}), this.baseLevel);
|
|
146
|
+
let minDistanceSqrd = Infinity;
|
|
147
|
+
let closestImageName;
|
|
148
|
+
features.forEach((feature) => {
|
|
149
|
+
const imagePosition = feature.getGeometry().getCoordinates();
|
|
150
|
+
const distanceSqrd = cartesian2DDistanceSquared(imagePosition, coordinate);
|
|
151
|
+
if (distanceSqrd < minDistanceSqrd) {
|
|
152
|
+
minDistanceSqrd = distanceSqrd;
|
|
153
|
+
closestImageName = feature.get('name');
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
if (closestImageName) {
|
|
157
|
+
return {
|
|
158
|
+
imageName: closestImageName,
|
|
159
|
+
distanceSqrd: minDistanceSqrd,
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
return undefined;
|
|
163
|
+
}
|
|
164
|
+
toJSON() {
|
|
165
|
+
const config = super.toJSON();
|
|
166
|
+
delete config.tileProvider; // tileProvider is not serializable
|
|
167
|
+
config.url = this.url;
|
|
168
|
+
const defaultOptions = PanoramaDatasetLayer.getDefaultOptions();
|
|
169
|
+
if (this.cameraOffset !== defaultOptions.cameraOffset) {
|
|
170
|
+
config.cameraOffset = this.cameraOffset;
|
|
171
|
+
}
|
|
172
|
+
if (this.baseLevel !== defaultOptions.baseLevel) {
|
|
173
|
+
config.baseLevel = this.baseLevel;
|
|
174
|
+
}
|
|
175
|
+
if (config.maxLevel === defaultOptions.maxLevel) {
|
|
176
|
+
delete config.maxLevel;
|
|
177
|
+
}
|
|
178
|
+
if (config.minLevel === defaultOptions.minLevel) {
|
|
179
|
+
delete config.minLevel;
|
|
180
|
+
}
|
|
181
|
+
if (config.zIndex === defaultOptions.zIndex) {
|
|
182
|
+
delete config.zIndex;
|
|
183
|
+
}
|
|
184
|
+
const thisDefaultStyle = getStyleOrDefaultStyle(defaultOptions.style);
|
|
185
|
+
if (this.style.equals(thisDefaultStyle)) {
|
|
186
|
+
delete config.style;
|
|
187
|
+
}
|
|
188
|
+
return config;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
layerClassRegistry.registerClass(PanoramaDatasetLayer.className, PanoramaDatasetLayer);
|
|
192
|
+
//# sourceMappingURL=panoramaDatasetLayer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"panoramaDatasetLayer.js","sourceRoot":"","sources":["../../../src/layer/panoramaDatasetLayer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE7D,OAAO,EAAE,MAAM,EAAE,4BAA4B,EAAE,MAAM,cAAc,CAAC;AAEpE,OAAO,eAGN,MAAM,sBAAsB,CAAC;AAC9B,OAAO,2BAA2B,MAAM,2CAA2C,CAAC;AAEpF,OAAO,WAAW,MAAM,uBAAuB,CAAC;AAChD,OAAO,gBAAgB,EAAE,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAC/E,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,sBAAsB,MAAM,0CAA0C,CAAC;AAC9E,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC5E,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EACL,0BAA0B,GAE3B,MAAM,8BAA8B,CAAC;AACtC,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAiBlE,MAAM,CAAC,OAAO,OAAO,oBAAqB,SAAQ,eAA4C;IAC5F,MAAM,KAAK,SAAS;QAClB,OAAO,sBAAsB,CAAC;IAChC,CAAC;IAED,MAAM,CAAC,iBAAiB;QACtB,OAAO;YACL,GAAG,eAAe,CAAC,iBAAiB,EAAE;YACtC,GAAG,EAAE,EAAE;YACP,SAAS,EAAE,EAAE;YACb,eAAe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C,QAAQ,KAAK,cAAc,CAAC,QAAQ,EAAE,CAAC;YAChD,OAAO,MAAM,CAAC,QAAQ,CAAC;QACzB,CAAC;QAED,IAAI,MAAM,CAAC,MAAM,KAAK,cAAc,CAAC,MAAM,EAAE,CAAC;YAC5C,OAAO,MAAM,CAAC,MAAM,CAAC;QACvB,CAAC;QAED,MAAM,gBAAgB,GAAG,sBAAsB,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;QACtE,IAAI,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,gBAAgB,CAAC,EAAE,CAAC;YACxC,OAAO,MAAM,CAAC,KAAK,CAAC;QACtB,CAAC;QAED,OAAO,MAAgC,CAAC;IAC1C,CAAC;CACF;AAED,kBAAkB,CAAC,aAAa,CAC9B,oBAAoB,CAAC,SAAS,EAC9B,oBAAoB,CACrB,CAAC"}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import type { default as OLStyle, StyleFunction } from 'ol/style/Style.js';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
2
|
+
import type { CesiumTilesetOptions } from './cesiumTilesetLayer.js';
|
|
3
|
+
import CesiumTilesetLayer from './cesiumTilesetLayer.js';
|
|
4
|
+
import type { DeclarativeStyleItemOptions } from '../style/declarativeStyleItem.js';
|
|
5
|
+
import type DeclarativeStyleItem from '../style/declarativeStyleItem.js';
|
|
6
|
+
import type { VectorStyleItemOptions } from '../style/vectorStyleItem.js';
|
|
7
|
+
import VectorStyleItem from '../style/vectorStyleItem.js';
|
|
5
8
|
import CesiumTilesetCesiumImpl from './cesium/cesiumTilesetCesiumImpl.js';
|
|
6
|
-
import StyleItem from '../style/styleItem.js';
|
|
7
|
-
import VcsMap from '../map/vcsMap.js';
|
|
9
|
+
import type StyleItem from '../style/styleItem.js';
|
|
10
|
+
import type VcsMap from '../map/vcsMap.js';
|
|
8
11
|
export type PointCloudOptions = CesiumTilesetOptions & {
|
|
9
12
|
pointSize?: number | string;
|
|
10
13
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { check, maybe, oneOf } from '@vcsuite/check';
|
|
2
2
|
import CesiumTilesetLayer from './cesiumTilesetLayer.js';
|
|
3
|
-
import { defaultDeclarativeStyle
|
|
3
|
+
import { defaultDeclarativeStyle } from '../style/declarativeStyleItem.js';
|
|
4
4
|
import VectorStyleItem from '../style/vectorStyleItem.js';
|
|
5
5
|
import CesiumMap from '../map/cesiumMap.js';
|
|
6
6
|
import CesiumTilesetCesiumImpl from './cesium/cesiumTilesetCesiumImpl.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pointCloudLayer.js","sourceRoot":"","sources":["../../../src/layer/pointCloudLayer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"pointCloudLayer.js","sourceRoot":"","sources":["../../../src/layer/pointCloudLayer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAIrD,OAAO,kBAAkB,MAAM,yBAAyB,CAAC;AAGzD,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAE3E,OAAO,eAAe,MAAM,6BAA6B,CAAC;AAC1D,OAAO,SAAS,MAAM,qBAAqB,CAAC;AAC5C,OAAO,uBAAuB,MAAM,qCAAqC,CAAC;AAC1E,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAQzD;;;;;;;;GAQG;AACH,MAAM,eAAgB,SAAQ,kBAAkB;IAC9C,MAAM,KAAK,SAAS;QAClB,OAAO,iBAAiB,CAAC;IAC3B,CAAC;IAED,MAAM,CAAC,iBAAiB;QACtB,OAAO;YACL,GAAG,kBAAkB,CAAC,iBAAiB,EAAE;YACzC,SAAS,EAAE,SAAS;SACrB,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,gB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QACR,KAAK,CAAC,UAAU,EAAE,CAAC;QACnB,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,gBAAgB,CAAC;IACzC,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,KAA0C,EAAE,MAAgB;QACnE,IAAI,KAAK,YAAY,eAAe,EAAE,CAAC;YACrC,IAAI,CAAC,SAAS,EAAE,CAAC,OAAO,CACtB,oDAAoD,CACrD,CAAC;QACJ,CAAC;aAAM,CAAC;YACN,KAAK,CAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;QAChC,CAAC;IACH,CAAC;IAED,MAAM;QACJ,MAAM,MAAM,GAAsB,KAAK,CAAC,MAAM,EAAE,CAAC;QACjD,MAAM,cAAc,GAAG,eAAe,CAAC,iBAAiB,EAAE,CAAC;QAE3D,IAAI,IAAI,CAAC,gBAAgB,KAAK,cAAc,CAAC,SAAS,EAAE,CAAC;YACvD,MAAM,CAAC,SAAS,GAAG,IAAI,CAAC,gBAAgB,CAAC;QAC3C,CAAC;QAED,OAAO,MAAM,CAAC;IAChB,CAAC;CACF;AAED,kBAAkB,CAAC,aAAa,CAAC,eAAe,CAAC,SAAS,EAAE,eAAe,CAAC,CAAC;AAC7E,eAAe,eAAe,CAAC"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import type { ImageryLayer } from '@vcmap-cesium/engine';
|
|
2
|
+
import { SplitDirection, WebMercatorTilingScheme, GeographicTilingScheme } from '@vcmap-cesium/engine';
|
|
3
|
+
import type { LayerImplementationOptions, LayerOptions, SplitLayer } from './layer.js';
|
|
4
|
+
import Layer from './layer.js';
|
|
3
5
|
import VcsEvent from '../vcsEvent.js';
|
|
4
6
|
import Extent from '../util/extent.js';
|
|
5
|
-
import LayerImplementation from './layerImplementation.js';
|
|
6
|
-
import VcsMap from '../map/vcsMap.js';
|
|
7
|
+
import type LayerImplementation from './layerImplementation.js';
|
|
8
|
+
import type VcsMap from '../map/vcsMap.js';
|
|
7
9
|
export type RasterLayerOptions = LayerOptions & {
|
|
8
10
|
/**
|
|
9
11
|
* minLevel of the datasource (if not specified, calculated from extent)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rasterLayer.js","sourceRoot":"","sources":["../../../src/layer/rasterLayer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"rasterLayer.js","sourceRoot":"","sources":["../../../src/layer/rasterLayer.ts"],"names":[],"mappings":"AACA,OAAO,EACL,cAAc,EACd,uBAAuB,EACvB,sBAAsB,EACtB,YAAY,GACb,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,aAAa,EACb,cAAc,EACd,UAAU,EACV,WAAW,GACZ,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,YAAY,EACZ,gBAAgB,EAChB,cAAc,GACf,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAMxD,OAAO,KAAK,MAAM,YAAY,CAAC;AAC/B,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AACtC,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AA6DzD,MAAM,CAAN,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,yCAAyB,CAAA;IACzB,qCAAqB,CAAA;AACvB,CAAC,EAHW,YAAY,KAAZ,YAAY,QAGvB;AAOD;;;GAGG;AACH,MAAM,UAAU,eAAe,CAC7B,YAAsD;IAEtD,MAAM,mBAAmB,GAAwB,EAAE,CAAC;IACpD,IACE,YAAY,CAAC,uBAAuB;QACpC,YAAY,CAAC,uBAAuB,GAAG,CAAC,EACxC,CAAC;QACD,mBAAmB,CAAC,uBAAuB;YACzC,YAAY,CAAC,uBAAuB,CAAC;IACzC,CAAC;IACD,IACE,YAAY,CAAC,uBAAuB;QACpC,YAAY,CAAC,uBAAuB,GAAG,CAAC,EACxC,CAAC;QACD,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Options, RasterLayerOptions } from './rasterLayer.js';
|
|
2
|
+
import RasterLayer from './rasterLayer.js';
|
|
2
3
|
import SingleImageCesiumImpl from './cesium/singleImageCesiumImpl.js';
|
|
3
4
|
import SingleImageOpenlayersImpl from './openlayers/singleImageOpenlayersImpl.js';
|
|
4
5
|
import Extent from '../util/extent.js';
|
|
5
|
-
import VcsMap from '../map/vcsMap.js';
|
|
6
|
+
import type VcsMap from '../map/vcsMap.js';
|
|
6
7
|
export type SingleImageOptions = RasterLayerOptions & {
|
|
7
8
|
credit?: string;
|
|
8
9
|
};
|