@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,3 +1,4 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/naming-convention */
|
|
1
2
|
import { Cartesian3, Matrix3, Quaternion, Color, Primitive, GeometryInstance, FrustumGeometry, ColorGeometryInstanceAttribute, PerInstanceColorAppearance, FrustumOutlineGeometry, destroyObject, } from '@vcmap-cesium/engine';
|
|
2
3
|
const scratchRight = new Cartesian3();
|
|
3
4
|
const scratchRotation = new Matrix3();
|
|
@@ -116,16 +117,16 @@ class VcsCameraPrimitive {
|
|
|
116
117
|
destroy() {
|
|
117
118
|
const { length } = this._planesPrimitives;
|
|
118
119
|
for (let i = 0; i < length; ++i) {
|
|
119
|
-
//
|
|
120
|
-
// @ts-ignore
|
|
120
|
+
// @ts-expect-error cs code
|
|
121
121
|
this._outlinePrimitives[i] =
|
|
122
|
+
// eslint-disable-next-line @typescript-eslint/no-confusing-void-expression
|
|
122
123
|
this._outlinePrimitives[i] && this._outlinePrimitives[i].destroy();
|
|
123
|
-
//
|
|
124
|
-
// @ts-ignore
|
|
124
|
+
// @ts-expect-error cs code
|
|
125
125
|
this._planesPrimitives[i] =
|
|
126
|
+
// eslint-disable-next-line @typescript-eslint/no-confusing-void-expression
|
|
126
127
|
this._planesPrimitives[i] && this._planesPrimitives[i].destroy();
|
|
127
128
|
}
|
|
128
|
-
|
|
129
|
+
destroyObject(this);
|
|
129
130
|
}
|
|
130
131
|
}
|
|
131
132
|
export default VcsCameraPrimitive;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cesiumVcsCameraPrimitive.js","sourceRoot":"","sources":["../../../src/cesium/cesiumVcsCameraPrimitive.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,OAAO,EACP,UAAU,EACV,KAAK,EACL,SAAS,EACT,gBAAgB,EAChB,eAAe,EACf,8BAA8B,EAC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C7D,aAAa;oBACb,aAAa,EAAE,IAAI;iBACpB,CAAC;gBACF,UAAU,EAAE,IAAI,0BAA0B,CAAC;oBACzC,WAAW,EAAE,KAAK;oBAClB,IAAI,EAAE,IAAI;iBACX,CAAC;gBACF,YAAY,EAAE,KAAK;aACpB,CAAC,CAAC;QACL,CAAC;QACD,MAAM,EAAE,MAAM,EAAE,GAAG,gBAAgB,CAAC;QACpC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,EAAE,EAAE,CAAC,EAAE,CAAC;YAC5B,6DAA6D;YAC7D,aAAa;YACb,iBAAiB,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;YACxC,6DAA6D;YAC7D,aAAa;YACb,gBAAgB,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;QACzC,CAAC;IACH,CAAC;IAED,kDAAkD;IAClD,WAAW;QACT,OAAO,KAAK,CAAC;IACf,CAAC;IAED,OAAO;QACL,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC,iBAAiB,CAAC;QAC1C,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,EAAE,EAAE,CAAC,EAAE,CAAC;YAChC,
|
|
1
|
+
{"version":3,"file":"cesiumVcsCameraPrimitive.js","sourceRoot":"","sources":["../../../src/cesium/cesiumVcsCameraPrimitive.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,OAAO,EACL,UAAU,EACV,OAAO,EACP,UAAU,EACV,KAAK,EACL,SAAS,EACT,gBAAgB,EAChB,eAAe,EACf,8BAA8B,EAC9B,0BAA0B,EAC1B,sBAAsB,EACtB,aAAa,GAGd,MAAM,sBAAsB,CAAC;AAE9B,MAAM,YAAY,GAAG,IAAI,UAAU,EAAE,CAAC;AACtC,MAAM,eAAe,GAAG,IAAI,OAAO,EAAE,CAAC;AACtC,MAAM,kBAAkB,GAAG,IAAI,UAAU,EAAE,CAAC;AAE5C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AAM,EAAE,GAAG,gBAAgB,CAAC;QACpC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,EAAE,EAAE,CAAC,EAAE,CAAC;YAC5B,6DAA6D;YAC7D,aAAa;YACb,iBAAiB,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;YACxC,6DAA6D;YAC7D,aAAa;YACb,gBAAgB,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;QACzC,CAAC;IACH,CAAC;IAED,kDAAkD;IAClD,WAAW;QACT,OAAO,KAAK,CAAC;IACf,CAAC;IAED,OAAO;QACL,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC,iBAAiB,CAAC;QAC1C,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,EAAE,EAAE,CAAC,EAAE,CAAC;YAChC,2BAA2B;YAC3B,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC;gBACxB,2EAA2E;gBAC3E,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;YACrE,2BAA2B;YAC3B,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC;gBACvB,2EAA2E;gBAC3E,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;QACrE,CAAC;QACD,aAAa,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;CACF;AAED,eAAe,kBAAkB,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
1
2
|
import { Entity } from '@vcmap-cesium/engine';
|
|
2
3
|
Entity.prototype.getId = function getId() {
|
|
3
4
|
return this.id;
|
|
@@ -15,7 +16,6 @@ Entity.prototype.getAttributes = function getAttributes() {
|
|
|
15
16
|
* To be used for cesium 3D style functions
|
|
16
17
|
*/
|
|
17
18
|
Entity.prototype.getPropertyInherited = function getPropertyInherited(property) {
|
|
18
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
|
19
19
|
return this.getProperty(property);
|
|
20
20
|
};
|
|
21
21
|
//# sourceMappingURL=entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity.js","sourceRoot":"","sources":["../../../src/cesium/entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAE9C,MAAM,CAAC,SAAS,CAAC,KAAK,GAAG,SAAS,KAAK;IACrC,OAAO,IAAI,CAAC,EAAE,CAAC;AACjB,CAAC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,SAAS,CAAC,WAAW,GAAG,SAAS,WAAW,CAEjD,QAAgB;IAEhB,OAAO,IAAI,CAAC,QAAwB,CAAC,CAAC;AACxC,CAAC,CAAC;AAEF,MAAM,CAAC,SAAS,CAAC,aAAa,GAAG,SAAS,aAAa;IAIrD,OAAO,IAAI,CAAC,UAAU,IAAI,EAAE,CAAC;AAC/B,CAAC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,SAAS,CAAC,oBAAoB,GAAG,SAAS,oBAAoB,CAEnE,QAAgB;IAEhB
|
|
1
|
+
{"version":3,"file":"entity.js","sourceRoot":"","sources":["../../../src/cesium/entity.ts"],"names":[],"mappings":"AAAA,uDAAuD;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAE9C,MAAM,CAAC,SAAS,CAAC,KAAK,GAAG,SAAS,KAAK;IACrC,OAAO,IAAI,CAAC,EAAE,CAAC;AACjB,CAAC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,SAAS,CAAC,WAAW,GAAG,SAAS,WAAW,CAEjD,QAAgB;IAEhB,OAAO,IAAI,CAAC,QAAwB,CAAC,CAAC;AACxC,CAAC,CAAC;AAEF,MAAM,CAAC,SAAS,CAAC,aAAa,GAAG,SAAS,aAAa;IAIrD,OAAO,IAAI,CAAC,UAAU,IAAI,EAAE,CAAC;AAC/B,CAAC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,SAAS,CAAC,oBAAoB,GAAG,SAAS,oBAAoB,CAEnE,QAAgB;IAEhB,OAAO,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;AACpC,CAAC,CAAC"}
|
|
@@ -6,7 +6,7 @@ import type Category from './category/category.js';
|
|
|
6
6
|
import type AbstractFeatureProvider from './featureProvider/abstractFeatureProvider.js';
|
|
7
7
|
import type TileProvider from './layer/tileProvider/tileProvider.js';
|
|
8
8
|
export type AbstractCtor = new (...args: any) => any;
|
|
9
|
-
export type
|
|
9
|
+
export type CtorType<T extends AbstractCtor> = new (...params: any) => InstanceType<T>;
|
|
10
10
|
export type TypedConstructorOptions = {
|
|
11
11
|
type?: string;
|
|
12
12
|
} & Record<string, unknown>;
|
|
@@ -19,11 +19,11 @@ declare class ClassRegistry<T extends AbstractCtor> {
|
|
|
19
19
|
* @param className
|
|
20
20
|
* @param ctor
|
|
21
21
|
*/
|
|
22
|
-
registerClass(className: string, ctor:
|
|
22
|
+
registerClass(className: string, ctor: CtorType<T>): void;
|
|
23
23
|
/**
|
|
24
24
|
* Gets the constructor for a registered class or undefined, if no such class was registerd
|
|
25
25
|
*/
|
|
26
|
-
getClass(className: string):
|
|
26
|
+
getClass(className: string): CtorType<T> | undefined;
|
|
27
27
|
hasClass(className: string): boolean;
|
|
28
28
|
create(className: string, ...args: unknown[]): InstanceType<T> | undefined;
|
|
29
29
|
createFromTypeOptions(options: TypedConstructorOptions, ...args: unknown[]): InstanceType<T> | undefined;
|
|
@@ -38,4 +38,4 @@ export declare const categoryClassRegistry: ClassRegistry<typeof Category<any, a
|
|
|
38
38
|
/**
|
|
39
39
|
* Returns an object based on a class registry or override class registry and a typed options object. as opposed to ClassRegistry.createFromTypedOptions, this function never throws.
|
|
40
40
|
*/
|
|
41
|
-
export declare function getObjectFromClassRegistry<T extends
|
|
41
|
+
export declare function getObjectFromClassRegistry<T extends CtorType<T>>(classRegistry: OverrideClassRegistry<T> | ClassRegistry<T>, options: TypedConstructorOptions, ...args: unknown[]): InstanceType<T> | null;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
1
2
|
import { is, check, oneOf } from '@vcsuite/check';
|
|
2
3
|
import { getLogger } from '@vcsuite/logger';
|
|
3
4
|
import OverrideClassRegistry from './overrideClassRegistry.js';
|
|
@@ -41,6 +42,7 @@ class ClassRegistry {
|
|
|
41
42
|
}
|
|
42
43
|
create(className, ...args) {
|
|
43
44
|
check(className, String);
|
|
45
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
44
46
|
const Ctor = this.getClass(className);
|
|
45
47
|
if (!Ctor) {
|
|
46
48
|
logger().error(`could not find constructor ${className}`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"classRegistry.js","sourceRoot":"","sources":["../../src/classRegistry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAe,MAAM,iBAAiB,CAAC;AACzD,OAAO,qBAAqB,MAAM,4BAA4B,CAAC;AAQ/D,SAAS,MAAM;IACb,OAAO,SAAS,CAAC,eAAe,CAAC,CAAC;AACpC,CAAC;AAaD,MAAM,aAAa;IACT,SAAS,
|
|
1
|
+
{"version":3,"file":"classRegistry.js","sourceRoot":"","sources":["../../src/classRegistry.ts"],"names":[],"mappings":"AAAA,uDAAuD;AACvD,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAe,MAAM,iBAAiB,CAAC;AACzD,OAAO,qBAAqB,MAAM,4BAA4B,CAAC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,CAAC,OAAO,EAAE,IAAI,EAAE,CAAC;QACnB,MAAM,EAAE,CAAC,OAAO,CAAC,uDAAuD,CAAC,CAAC;QAC1E,OAAO,IAAI,CAAC;IACd,CAAC;IACD,IAAI,MAAM,CAAC;IACX,IAAI,CAAC;QACH,MAAM,GAAG,aAAa,CAAC,qBAAqB,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC,CAAC;IACjE,CAAC;IAAC,OAAO,EAAE,EAAE,CAAC;QACZ,MAAM,EAAE,CAAC,OAAO,CAAC,UAAU,MAAM,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;IAC3C,CAAC;IAED,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,MAAM,EAAE,CAAC,OAAO,CAAC,oDAAoD,CAAC,CAAC;QACvE,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO,MAAyB,CAAC;AACnC,CAAC"}
|
|
@@ -2,7 +2,8 @@ import type { Feature } from 'ol/index.js';
|
|
|
2
2
|
import type { Coordinate } from 'ol/coordinate.js';
|
|
3
3
|
import VcsObject, { type VcsObjectOptions } from '../vcsObject.js';
|
|
4
4
|
import VectorProperties, { type VectorPropertiesOptions } from '../layer/vectorProperties.js';
|
|
5
|
-
import
|
|
5
|
+
import type StyleItem from '../style/styleItem.js';
|
|
6
|
+
import { type StyleItemOptions } from '../style/styleItem.js';
|
|
6
7
|
import type VcsMap from '../map/vcsMap.js';
|
|
7
8
|
export type AbstractFeatureProviderOptions = VcsObjectOptions & {
|
|
8
9
|
/**
|
|
@@ -98,8 +98,14 @@ class AbstractFeatureProvider extends VcsObject {
|
|
|
98
98
|
* @param resolution - meters per pixel for the given location
|
|
99
99
|
* @param headers - headers optional request headers to be sent with the server request
|
|
100
100
|
*/
|
|
101
|
-
// eslint-disable-next-line
|
|
102
|
-
getFeaturesByCoordinate(
|
|
101
|
+
// eslint-disable-next-line class-methods-use-this
|
|
102
|
+
getFeaturesByCoordinate(
|
|
103
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
104
|
+
_coordinate,
|
|
105
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
106
|
+
_resolution,
|
|
107
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
108
|
+
_headers) {
|
|
103
109
|
return Promise.resolve([]);
|
|
104
110
|
}
|
|
105
111
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"abstractFeatureProvider.js","sourceRoot":"","sources":["../../../src/featureProvider/abstractFeatureProvider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,IAAI,MAAM,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAIhD,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,SAAoC,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,gBAEN,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"abstractFeatureProvider.js","sourceRoot":"","sources":["../../../src/featureProvider/abstractFeatureProvider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,IAAI,MAAM,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAIhD,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,SAAoC,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,gBAEN,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,6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OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IAC7B,CAAC;IAED;;OAEG;IACH,MAAM;QACJ,MAAM,MAAM,GAAmC,KAAK,CAAC,MAAM,EAAE,CAAC;QAE9D,MAAM,cAAc,GAAG,uBAAuB,CAAC,iBAAiB,EAAE,CAAC;QACnE,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC,oDAAoD;QAExE,IAAI,IAAI,CAAC,YAAY,KAAK,cAAc,CAAC,YAAY,EAAE,CAAC;YACtD,MAAM,CAAC,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC;QAC1C,CAAC;QAED,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;YACf,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;QACrC,CAAC;QAED,MAAM,sBAAsB,GAAG,IAAI,CAAC,gBAAgB,CAAC,UAAU,CAAC;YAC9D,GAAG,gBAAgB,CAAC,iBAAiB,EAAE;YACvC,GAAI,cAAc,CAAC,gBAA4C;SAChE,CAAC,CAAC;QACH,IAAI,MAAM,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACnD,MAAM,CAAC,gBAAgB,GAAG,sBAAsB,CAAC;QACnD,CAAC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,OAAO;QACL,IAAI,CAAC,KAAK,GAAG,SAAS,CAAC;QACvB,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,CAAC;QAChC,KAAK,CAAC,OAAO,EAAE,CAAC;IAClB,CAAC;CACF;AAED,eAAe,uBAAuB,CAAC"}
|
|
@@ -1,20 +1,23 @@
|
|
|
1
1
|
import GML2 from 'ol/format/GML2.js';
|
|
2
2
|
import type { Options as GMLOptions } from 'ol/format/GMLBase.js';
|
|
3
|
-
import
|
|
3
|
+
import WFS from 'ol/format/WFS.js';
|
|
4
|
+
import GeoJSON, { type Options as GeoJSONOptions } from 'ol/format/GeoJSON.js';
|
|
4
5
|
import GML3 from 'ol/format/GML3.js';
|
|
5
6
|
import GML32 from 'ol/format/GML32.js';
|
|
6
7
|
import type { Size } from 'ol/size.js';
|
|
7
|
-
import
|
|
8
|
+
import { Feature } from 'ol';
|
|
8
9
|
import type { Coordinate } from 'ol/coordinate.js';
|
|
9
10
|
import type { TileWMS } from 'ol/source.js';
|
|
10
11
|
import type FeatureFormat from 'ol/format/Feature.js';
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
12
|
+
import WMSGetFeatureInfo from 'ol/format/WMSGetFeatureInfo.js';
|
|
13
|
+
import type { AbstractFeatureProviderOptions } from './abstractFeatureProvider.js';
|
|
14
|
+
import AbstractFeatureProvider from './abstractFeatureProvider.js';
|
|
15
|
+
import type { ProjectionOptions } from '../util/projection.js';
|
|
16
|
+
import Projection from '../util/projection.js';
|
|
17
|
+
import type { ExtentOptions } from '../util/extent.js';
|
|
18
|
+
import Extent from '../util/extent.js';
|
|
14
19
|
import { TilingScheme } from '../layer/rasterLayer.js';
|
|
15
|
-
export type FormatOptions = GeoJSONOptions & GMLOptions & Record<string, unknown
|
|
16
|
-
gmlFormat?: keyof typeof gmlFormats;
|
|
17
|
-
};
|
|
20
|
+
export type FormatOptions = GeoJSONOptions & GMLOptions & Record<string, unknown>;
|
|
18
21
|
export type WMSFeatureProviderOptions = AbstractFeatureProviderOptions & {
|
|
19
22
|
/**
|
|
20
23
|
* the response type for the feature info
|
|
@@ -22,9 +25,17 @@ export type WMSFeatureProviderOptions = AbstractFeatureProviderOptions & {
|
|
|
22
25
|
*/
|
|
23
26
|
responseType?: string;
|
|
24
27
|
/**
|
|
25
|
-
* format options
|
|
28
|
+
* format options forwarded to OpenLayers
|
|
26
29
|
*/
|
|
27
30
|
formatOptions?: FormatOptions;
|
|
31
|
+
/**
|
|
32
|
+
* optional format to use to parse the feature info response, overriding the responseType to format mapping. Use 'GeoJSON', 'GML2', 'GML3', 'GML32', 'WMSGetFeatureInfo' or 'WFS' as string.
|
|
33
|
+
*/
|
|
34
|
+
featureInfoFormat?: keyof typeof featureInfoFormat;
|
|
35
|
+
/**
|
|
36
|
+
* optional GMLFormat for the WFS format to override the default GML2 format. Use 'GML', 'GML2', 'GML3' or 'GML32' as string
|
|
37
|
+
*/
|
|
38
|
+
wfsGMLFormat?: keyof typeof gmlFormats;
|
|
28
39
|
/**
|
|
29
40
|
* the projection of the data, if not encoded in the response
|
|
30
41
|
*/
|
|
@@ -59,7 +70,15 @@ declare const gmlFormats: {
|
|
|
59
70
|
GML3: typeof GML3;
|
|
60
71
|
GML32: typeof GML32;
|
|
61
72
|
};
|
|
62
|
-
|
|
73
|
+
declare const featureInfoFormat: {
|
|
74
|
+
GeoJSON: typeof GeoJSON;
|
|
75
|
+
GML2: typeof GML2;
|
|
76
|
+
GML3: typeof GML3;
|
|
77
|
+
GML32: typeof GML32;
|
|
78
|
+
WMSGetFeatureInfo: typeof WMSGetFeatureInfo;
|
|
79
|
+
WFS: typeof WFS;
|
|
80
|
+
};
|
|
81
|
+
export declare function getFormat(responseType: string, options?: FormatOptions, format?: keyof typeof featureInfoFormat, gmlFormatKey?: keyof typeof gmlFormats): null | FeatureFormat;
|
|
63
82
|
declare class WMSFeatureProvider extends AbstractFeatureProvider {
|
|
64
83
|
static get className(): string;
|
|
65
84
|
static getDefaultOptions(): WMSFeatureProviderOptions;
|
|
@@ -73,7 +92,16 @@ declare class WMSFeatureProvider extends AbstractFeatureProvider {
|
|
|
73
92
|
* The response type of the get feature info response, e.g. text/xml
|
|
74
93
|
*/
|
|
75
94
|
featureInfoResponseType: string;
|
|
95
|
+
/**
|
|
96
|
+
* The feature info format, if different from the responseType.
|
|
97
|
+
*/
|
|
98
|
+
featureInfoFormat: keyof typeof featureInfoFormat | undefined;
|
|
76
99
|
private _formatOptions;
|
|
100
|
+
/**
|
|
101
|
+
* The GMLFormat used for the WfsLayer, defaults to GML2.
|
|
102
|
+
* Use 'GML', 'GML2', 'GML3' or 'GML32' as string
|
|
103
|
+
*/
|
|
104
|
+
wfsGMLFormat: keyof typeof gmlFormats | undefined;
|
|
77
105
|
/**
|
|
78
106
|
* The feature response format determined by the response type. Use formatOptions to configure the underlying ol.format.Feature
|
|
79
107
|
*/
|
|
@@ -5,27 +5,53 @@ import GML3 from 'ol/format/GML3.js';
|
|
|
5
5
|
import GML32 from 'ol/format/GML32.js';
|
|
6
6
|
import Point from 'ol/geom/Point.js';
|
|
7
7
|
import { getTransform } from 'ol/proj.js';
|
|
8
|
+
import { Feature } from 'ol';
|
|
8
9
|
import WMSGetFeatureInfo from 'ol/format/WMSGetFeatureInfo.js';
|
|
9
10
|
import { parseInteger } from '@vcsuite/parsers';
|
|
11
|
+
import { getLogger } from '@vcsuite/logger';
|
|
10
12
|
import AbstractFeatureProvider from './abstractFeatureProvider.js';
|
|
11
|
-
import Projection, { mercatorProjection
|
|
13
|
+
import Projection, { mercatorProjection } from '../util/projection.js';
|
|
12
14
|
import { getWMSSource } from '../layer/wmsHelpers.js';
|
|
13
15
|
import Extent from '../util/extent.js';
|
|
14
16
|
import { getInitForUrl, requestUrl } from '../util/fetch.js';
|
|
15
17
|
import { featureProviderClassRegistry } from '../classRegistry.js';
|
|
16
18
|
import { TilingScheme } from '../layer/rasterLayer.js';
|
|
17
19
|
const gmlFormats = { GML: GML3, GML2, GML3, GML32 };
|
|
20
|
+
const featureInfoFormat = {
|
|
21
|
+
GeoJSON,
|
|
22
|
+
GML2,
|
|
23
|
+
GML3,
|
|
24
|
+
GML32,
|
|
25
|
+
WMSGetFeatureInfo,
|
|
26
|
+
WFS,
|
|
27
|
+
};
|
|
18
28
|
const geojsonFormats = [
|
|
19
29
|
'application/geojson',
|
|
20
30
|
'application/json',
|
|
21
31
|
'application/vnd.geo+json',
|
|
22
32
|
'application/geo+json',
|
|
23
33
|
];
|
|
24
|
-
export function getFormat(responseType, options = {}) {
|
|
34
|
+
export function getFormat(responseType, options = {}, format, gmlFormatKey) {
|
|
35
|
+
if (format) {
|
|
36
|
+
if (!(format in featureInfoFormat)) {
|
|
37
|
+
getLogger('WMSFeatureProvider').error(`Unknown featureInfoFormat ${format}`);
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
const formatOptions = {
|
|
41
|
+
...options,
|
|
42
|
+
...(gmlFormatKey && { gmlFormat: new gmlFormats[gmlFormatKey]() }),
|
|
43
|
+
};
|
|
44
|
+
return new featureInfoFormat[format](formatOptions);
|
|
45
|
+
}
|
|
46
|
+
if (responseType === 'text/html') {
|
|
47
|
+
return new WMSGetFeatureInfo(options);
|
|
48
|
+
}
|
|
25
49
|
if (responseType === 'text/xml') {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
50
|
+
if (gmlFormatKey && !(gmlFormatKey in gmlFormats)) {
|
|
51
|
+
getLogger('WMSFeatureProvider').error(`Unknown GML format ${gmlFormatKey}`);
|
|
52
|
+
return null;
|
|
53
|
+
}
|
|
54
|
+
const gmlFormat = new gmlFormats[gmlFormatKey ?? 'GML2']();
|
|
29
55
|
return new WFS({ ...options, gmlFormat });
|
|
30
56
|
}
|
|
31
57
|
if (geojsonFormats.includes(responseType)) {
|
|
@@ -33,7 +59,7 @@ export function getFormat(responseType, options = {}) {
|
|
|
33
59
|
}
|
|
34
60
|
if (responseType === 'application/vnd.ogc.gml') {
|
|
35
61
|
// works with mapServer and "msGMLOutput", replaces GML2 format, and still works with gml2 documents
|
|
36
|
-
return new WMSGetFeatureInfo(
|
|
62
|
+
return new WMSGetFeatureInfo(options);
|
|
37
63
|
}
|
|
38
64
|
if (responseType === 'application/vnd.ogc.gml/3.1.1' ||
|
|
39
65
|
responseType === 'text/xml; subtype=gml/3.1.1') {
|
|
@@ -76,7 +102,16 @@ class WMSFeatureProvider extends AbstractFeatureProvider {
|
|
|
76
102
|
* The response type of the get feature info response, e.g. text/xml
|
|
77
103
|
*/
|
|
78
104
|
featureInfoResponseType;
|
|
105
|
+
/**
|
|
106
|
+
* The feature info format, if different from the responseType.
|
|
107
|
+
*/
|
|
108
|
+
featureInfoFormat;
|
|
79
109
|
_formatOptions;
|
|
110
|
+
/**
|
|
111
|
+
* The GMLFormat used for the WfsLayer, defaults to GML2.
|
|
112
|
+
* Use 'GML', 'GML2', 'GML3' or 'GML32' as string
|
|
113
|
+
*/
|
|
114
|
+
wfsGMLFormat;
|
|
80
115
|
/**
|
|
81
116
|
* The feature response format determined by the response type. Use formatOptions to configure the underlying ol.format.Feature
|
|
82
117
|
*/
|
|
@@ -108,8 +143,10 @@ class WMSFeatureProvider extends AbstractFeatureProvider {
|
|
|
108
143
|
this._wmsSource = getWMSSource(this._wmsSourceOptions);
|
|
109
144
|
this.featureInfoResponseType =
|
|
110
145
|
options.responseType || defaultOptions.responseType;
|
|
146
|
+
this.featureInfoFormat = options.featureInfoFormat;
|
|
111
147
|
this._formatOptions = options.formatOptions || defaultOptions.formatOptions;
|
|
112
|
-
this.
|
|
148
|
+
this.wfsGMLFormat = options.wfsGMLFormat;
|
|
149
|
+
this.featureFormat = getFormat(this.featureInfoResponseType, options.formatOptions, this.featureInfoFormat, this.wfsGMLFormat);
|
|
113
150
|
this.projection = options.projection
|
|
114
151
|
? new Projection(options.projection)
|
|
115
152
|
: undefined;
|
|
@@ -123,15 +160,23 @@ class WMSFeatureProvider extends AbstractFeatureProvider {
|
|
|
123
160
|
set wmsSource(source) {
|
|
124
161
|
this._wmsSource = source;
|
|
125
162
|
}
|
|
126
|
-
featureResponseCallback(
|
|
127
|
-
|
|
163
|
+
featureResponseCallback(
|
|
164
|
+
// any because this is the type provided by readFeatures
|
|
165
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any,@typescript-eslint/no-redundant-type-constituents
|
|
166
|
+
data, coordinate) {
|
|
167
|
+
let features = [];
|
|
128
168
|
try {
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
169
|
+
if (this.featureInfoResponseType === 'text/html') {
|
|
170
|
+
features = [new Feature()];
|
|
171
|
+
}
|
|
172
|
+
else {
|
|
173
|
+
features = this.featureFormat.readFeatures(data, {
|
|
174
|
+
dataProjection: this.projection ? this.projection.proj : undefined,
|
|
175
|
+
featureProjection: mercatorProjection.proj,
|
|
176
|
+
});
|
|
177
|
+
}
|
|
133
178
|
}
|
|
134
|
-
catch (
|
|
179
|
+
catch (_err) {
|
|
135
180
|
this.getLogger().warning('Features could not be read, please verify the featureInfoResponseType with the capabilities from the server');
|
|
136
181
|
return [];
|
|
137
182
|
}
|
|
@@ -156,7 +201,10 @@ class WMSFeatureProvider extends AbstractFeatureProvider {
|
|
|
156
201
|
}
|
|
157
202
|
const metersPerUnit = 111194.87428468118;
|
|
158
203
|
const url = this.wmsSource.getFeatureInfoUrl(coords, resolution / metersPerUnit, projection, { INFO_FORMAT: this.featureInfoResponseType });
|
|
159
|
-
if (
|
|
204
|
+
if (this.featureInfoResponseType === 'text/html') {
|
|
205
|
+
return this.featureResponseCallback(null, coordinate).map((f) => this.getProviderFeature(f));
|
|
206
|
+
}
|
|
207
|
+
else if (url) {
|
|
160
208
|
const init = getInitForUrl(url, headers);
|
|
161
209
|
let data;
|
|
162
210
|
try {
|
|
@@ -177,6 +225,12 @@ class WMSFeatureProvider extends AbstractFeatureProvider {
|
|
|
177
225
|
if (this.featureInfoResponseType !== defaultOptions.responseType) {
|
|
178
226
|
config.responseType = this.featureInfoResponseType;
|
|
179
227
|
}
|
|
228
|
+
if (this.featureInfoFormat) {
|
|
229
|
+
config.featureInfoFormat = this.featureInfoFormat;
|
|
230
|
+
}
|
|
231
|
+
if (this.wfsGMLFormat) {
|
|
232
|
+
config.wfsGMLFormat = this.wfsGMLFormat;
|
|
233
|
+
}
|
|
180
234
|
if (this._formatOptions !== defaultOptions.formatOptions) {
|
|
181
235
|
config.formatOptions = { ...this._formatOptions };
|
|
182
236
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wmsFeatureProvider.js","sourceRoot":"","sources":["../../../src/featureProvider/wmsFeatureProvider.ts"],"names":[],"mappings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C,KAAK,cAAc,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC;YACpE,IAAI,CAAC,iBAAiB,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,cAAc,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,EACpE,CAAC;YACD,MAAM,CAAC,QAAQ,GAAG,IAAI,CAAC,iBAAiB,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC;QAC5D,CAAC;QACD,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;YAChB,MAAM,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC;QACvC,CAAC;QAED,OAAO,MAAmC,CAAC;IAC7C,CAAC;IAED,OAAO;QACL,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;QAC5B,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC;QAC1B,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;QAC5B,IAAI,CAAC,cAAc,GAAG,SAAS,CAAC;QAChC,KAAK,CAAC,OAAO,EAAE,CAAC;IAClB,CAAC;CACF;AAED,eAAe,kBAAkB,CAAC;AAClC,4BAA4B,CAAC,aAAa,CACxC,kBAAkB,CAAC,SAAS,EAC5B,kBAAkB,CACnB,CAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { Cartesian2, Cesium3DTileFeature, Cesium3DTilePointFeature, Entity, Ray } from '@vcmap-cesium/engine';
|
|
2
2
|
import type { Coordinate } from 'ol/coordinate.js';
|
|
3
3
|
import type { Feature } from 'ol';
|
|
4
|
-
import {
|
|
4
|
+
import type { PointerEventType } from './interactionType.js';
|
|
5
|
+
import { EventType, ModificationKeyType, PointerKeyType } from './interactionType.js';
|
|
5
6
|
import type VcsMap from '../map/vcsMap.js';
|
|
6
|
-
import VcsEvent from '../vcsEvent.js';
|
|
7
|
+
import type VcsEvent from '../vcsEvent.js';
|
|
7
8
|
export type MapEvent = {
|
|
8
9
|
pointerEvent: PointerEventType;
|
|
9
10
|
map: VcsMap;
|
|
@@ -25,7 +26,7 @@ export type ObliqueParameters = {
|
|
|
25
26
|
/**
|
|
26
27
|
* the image pixel clicked
|
|
27
28
|
*/
|
|
28
|
-
pixel:
|
|
29
|
+
pixel: Coordinate;
|
|
29
30
|
/**
|
|
30
31
|
* true if the terrain could not be taken into account
|
|
31
32
|
*/
|
|
@@ -73,7 +74,7 @@ declare class AbstractInteraction {
|
|
|
73
74
|
/**
|
|
74
75
|
* The current active bitmask for {@link EventType}
|
|
75
76
|
*/
|
|
76
|
-
active:
|
|
77
|
+
active: EventType;
|
|
77
78
|
private _defaultModificationKey;
|
|
78
79
|
/**
|
|
79
80
|
* The current active {@link ModificationKeyType}
|
|
@@ -48,7 +48,7 @@ class AbstractInteraction {
|
|
|
48
48
|
/**
|
|
49
49
|
* Called when the modifier keys have changed.
|
|
50
50
|
*/
|
|
51
|
-
// eslint-disable-next-line class-methods-use-this
|
|
51
|
+
// eslint-disable-next-line class-methods-use-this,@typescript-eslint/no-unused-vars
|
|
52
52
|
modifierChanged(_modifier) { }
|
|
53
53
|
/**
|
|
54
54
|
* Sets the interaction active.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"abstractInteraction.js","sourceRoot":"","sources":["../../../src/interaction/abstractInteraction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,IAAI,MAAM,EAAE,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"abstractInteraction.js","sourceRoot":"","sources":["../../../src/interaction/abstractInteraction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,IAAI,MAAM,EAAE,MAAM,MAAM,CAAC;AAWpC,OAAO,EACL,SAAS,EACT,mBAAmB,EACnB,cAAc,GACf,MAAM,sBAAsB,CAAC;AAqE9B;;;GAGG;AACH,MAAM,mBAAmB;IACvB;;OAEG;IACH,EAAE,CAAS;IAEH,cAAc,CAAS;IAE/B;;OAEG;IACH,MAAM,CAAY;IAEV,uBAAuB,CAAs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MAAM,GAAG,MAAM,CAAC;QACvB,CAAC;IACH,CAAC;IAED;;OAEG;IACH,eAAe,CAAC,GAAyB;QACvC,IAAI,GAAG,EAAE,CAAC;YACR,IAAI,CAAC,eAAe,GAAG,GAAG,CAAC;QAC7B,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,uBAAuB,CAAC;QACtD,CAAC;IACH,CAAC;IAED;;OAEG;IACH,UAAU,CAAC,OAAwB;QACjC,IAAI,OAAO,EAAE,CAAC;YACZ,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC;QAC5B,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,kBAAkB,CAAC;QAC5C,CAAC;IACH,CAAC;IAED;;OAEG;IACH,kDAAkD;IAClD,OAAO,KAAU,CAAC;CACnB;AAED,eAAe,mBAAmB,CAAC"}
|
|
@@ -3,6 +3,26 @@ import AbstractInteraction from './abstractInteraction.js';
|
|
|
3
3
|
import Projection, { mercatorProjection } from '../util/projection.js';
|
|
4
4
|
import { EventType, ModificationKeyType, PointerKeyType, } from './interactionType.js';
|
|
5
5
|
import { transformFromImage } from '../oblique/helpers.js';
|
|
6
|
+
import { cartesianToMercator } from '../util/math.js';
|
|
7
|
+
import { windowPositionToImageSpherical } from '../panorama/fieldOfView.js';
|
|
8
|
+
const scratchPanoramaCartesian = new Cartesian3();
|
|
9
|
+
async function getCoordinateFromPanoramaMap(map, event) {
|
|
10
|
+
const image = map.currentPanoramaImage;
|
|
11
|
+
let position = [0, 0, 0];
|
|
12
|
+
if (image) {
|
|
13
|
+
const { camera } = map.getCesiumWidget();
|
|
14
|
+
const imageCoordinate = windowPositionToImageSpherical(event.windowPosition, camera, image.invModelMatrix);
|
|
15
|
+
event.positionOrPixel = imageCoordinate;
|
|
16
|
+
if (imageCoordinate) {
|
|
17
|
+
const cartesian = await image.getPositionAtImageCoordinate(imageCoordinate, scratchPanoramaCartesian);
|
|
18
|
+
if (cartesian) {
|
|
19
|
+
position = cartesianToMercator(cartesian);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
event.position = position;
|
|
24
|
+
return event;
|
|
25
|
+
}
|
|
6
26
|
/**
|
|
7
27
|
* @group Interaction
|
|
8
28
|
*/
|
|
@@ -20,6 +40,9 @@ class CoordinateAtPixel extends AbstractInteraction {
|
|
|
20
40
|
else if (event.map.className === 'ObliqueMap') {
|
|
21
41
|
return CoordinateAtPixel.obliqueHandler(event);
|
|
22
42
|
}
|
|
43
|
+
else if (event.map.className === 'PanoramaMap') {
|
|
44
|
+
return getCoordinateFromPanoramaMap(event.map, event);
|
|
45
|
+
}
|
|
23
46
|
return event;
|
|
24
47
|
}
|
|
25
48
|
_cesiumHandler(event) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coordinateAtPixel.js","sourceRoot":"","sources":["../../../src/interaction/coordinateAtPixel.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,UAAU,EACV,IAAI,IAAI,UAAU,GACnB,MAAM,sBAAsB,CAAC;AAG9B,OAAO,mBAEN,MAAM,0BAA0B,CAAC;AAClC,OAAO,UAAU,EAAE,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EACL,SAAS,EACT,mBAAmB,EACnB,cAAc,GACf,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAI3D;;GAEG;AACH,MAAM,iBAAkB,SAAQ,mBAAmB;IACzC,oBAAoB,GAAG,IAAI,YAAY,EAAE,CAAC;IAE1C,iBAAiB,GAAG,IAAI,UAAU,EAAE,CAAC;IAE7C;QACE,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE,mBAAmB,CAAC,GAAG,EAAE,cAAc,CAAC,GAAG,CAAC,CAAC;QAElE,IAAI,CAAC,SAAS,EAAE,CAAC;IACnB,CAAC;IAED,KAAK,CAAC,IAAI,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YACvE,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI,GAAG,CAAC,SAAS,CAAC,IAAI,GAAG,SAAS,CAAC,UAAU,CAAC,CAAC;YAClE,MAAM,KAAK,GAAI,KAAK,CAAC,QAAuB,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;YACzD,IAAI,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;gBAC3D,OAAO,kBAAkB,CAAC,KAAK,EAAE,KAAK,EAAE;oBACtC,cAAc,EAAE,CAAC,CAAC,IAAI;oBACtB,cAAc,EAAE,kBAAkB;iBACnC,CAAC,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,EAAE;oBACtB,KAAK,CAAC,iBAAiB,GAAG,EAAE,KAAK,EAAE,QAAQ,EAAE,WAAW,CAAC,QAAQ,EAAE,CAAC;oBACpE,KAAK,CAAC,QAAQ,GAAG,WAAW,CAAC,MAAM,CAAC;oBACpC,OAAO,KAAK,CAAC;gBACf,CAAC,CAAC,CAAC;YACL,CAAC;QACH,CAAC;QACD,KAAK,CAAC,eAAe,GAAG,IAAI,CAAC;QAC7B,OAAO,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAChC,CAAC;CACF;AAED,eAAe,iBAAiB,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { MapEvent } from './abstractInteraction.js';
|
|
2
|
+
import AbstractInteraction from './abstractInteraction.js';
|
|
2
3
|
import CoordinateAtPixel from './coordinateAtPixel.js';
|
|
3
4
|
import FeatureAtPixelInteraction from './featureAtPixelInteraction.js';
|
|
4
5
|
import { ModificationKeyType } from './interactionType.js';
|
|
@@ -21,7 +22,7 @@ declare class EventHandler {
|
|
|
21
22
|
private _exclusiveInteraction;
|
|
22
23
|
private _multiples;
|
|
23
24
|
exclusiveRemoved: VcsEvent<void>;
|
|
24
|
-
exclusiveAdded: VcsEvent<
|
|
25
|
+
exclusiveAdded: VcsEvent<AbstractInteraction>;
|
|
25
26
|
private _boundKeyListener;
|
|
26
27
|
private _modifierChanged;
|
|
27
28
|
constructor();
|
|
@@ -52,7 +53,7 @@ declare class EventHandler {
|
|
|
52
53
|
* @param id - an id to allow for multiple interactions to belong to the same exclusive registerer
|
|
53
54
|
* @returns function to remove the interaction with. returns number of removed interactions (0|1)
|
|
54
55
|
*/
|
|
55
|
-
addExclusiveInteraction(interaction: AbstractInteraction, removed: () => void, index?: number, id?: string): () =>
|
|
56
|
+
addExclusiveInteraction(interaction: AbstractInteraction, removed: () => void, index?: number, id?: string): () => number;
|
|
56
57
|
/**
|
|
57
58
|
* Removes any exclusive listeners. Typically only called from the framework to ensure the pubsub listeners are consistent
|
|
58
59
|
*/
|
|
@@ -124,7 +124,7 @@ class EventHandler {
|
|
|
124
124
|
interactions: [interaction],
|
|
125
125
|
};
|
|
126
126
|
}
|
|
127
|
-
this.exclusiveAdded.raiseEvent();
|
|
127
|
+
this.exclusiveAdded.raiseEvent(interaction);
|
|
128
128
|
return this._exclusiveUnListen.bind(this, interaction, this._exclusiveInteraction.id);
|
|
129
129
|
}
|
|
130
130
|
/**
|