@vcmap/core 6.1.11 → 6.2.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -6
- package/build/buildShader.js +61 -0
- package/build/postinstall.js +6 -3
- package/dist/cesium.d.ts +52 -18
- package/dist/geojson.d.ts +3 -2
- package/dist/index.d.ts +239 -109
- package/dist/index.js +78 -63
- package/dist/index.js.map +1 -1
- package/dist/ol.d.ts +27 -29
- package/dist/src/category/category.d.ts +3 -2
- package/dist/src/category/category.js +2 -2
- package/dist/src/category/category.js.map +1 -1
- package/dist/src/category/categoryCollection.d.ts +3 -2
- package/dist/src/category/categoryCollection.js.map +1 -1
- package/dist/src/cesium/cesium3DTileFeature.d.ts +2 -1
- package/dist/src/cesium/cesium3DTileFeature.js +2 -3
- package/dist/src/cesium/cesium3DTileFeature.js.map +1 -1
- package/dist/src/cesium/cesiumVcsCameraPrimitive.js +6 -5
- package/dist/src/cesium/cesiumVcsCameraPrimitive.js.map +1 -1
- package/dist/src/cesium/entity.js +1 -1
- package/dist/src/cesium/entity.js.map +1 -1
- package/dist/src/classRegistry.d.ts +4 -4
- package/dist/src/classRegistry.js +2 -0
- package/dist/src/classRegistry.js.map +1 -1
- package/dist/src/featureProvider/abstractFeatureProvider.d.ts +2 -1
- package/dist/src/featureProvider/abstractFeatureProvider.js +8 -2
- package/dist/src/featureProvider/abstractFeatureProvider.js.map +1 -1
- package/dist/src/featureProvider/wmsFeatureProvider.d.ts +38 -10
- package/dist/src/featureProvider/wmsFeatureProvider.js +69 -15
- package/dist/src/featureProvider/wmsFeatureProvider.js.map +1 -1
- package/dist/src/interaction/abstractInteraction.d.ts +5 -4
- package/dist/src/interaction/abstractInteraction.js +1 -1
- package/dist/src/interaction/abstractInteraction.js.map +1 -1
- package/dist/src/interaction/coordinateAtPixel.js +23 -0
- package/dist/src/interaction/coordinateAtPixel.js.map +1 -1
- package/dist/src/interaction/eventHandler.d.ts +4 -3
- package/dist/src/interaction/eventHandler.js +1 -1
- package/dist/src/interaction/eventHandler.js.map +1 -1
- package/dist/src/interaction/featureAtPixelInteraction.d.ts +5 -0
- package/dist/src/interaction/featureAtPixelInteraction.js +7 -4
- package/dist/src/interaction/featureAtPixelInteraction.js.map +1 -1
- package/dist/src/interaction/featureProviderInteraction.js.map +1 -1
- package/dist/src/interaction/interactionType.js +1 -0
- package/dist/src/interaction/interactionType.js.map +1 -1
- package/dist/src/interaction/panoramaFeatureHighlight.d.ts +29 -0
- package/dist/src/interaction/panoramaFeatureHighlight.js +88 -0
- package/dist/src/interaction/panoramaFeatureHighlight.js.map +1 -0
- package/dist/src/interaction/panoramaImageSelection.d.ts +8 -0
- package/dist/src/interaction/panoramaImageSelection.js +29 -0
- package/dist/src/interaction/panoramaImageSelection.js.map +1 -0
- package/dist/src/layer/cesium/cesiumTilesetCesiumImpl.d.ts +6 -5
- package/dist/src/layer/cesium/cesiumTilesetCesiumImpl.js +2 -2
- package/dist/src/layer/cesium/cesiumTilesetCesiumImpl.js.map +1 -1
- package/dist/src/layer/cesium/dataSourceCesiumImpl.d.ts +3 -2
- package/dist/src/layer/cesium/dataSourceCesiumImpl.js.map +1 -1
- package/dist/src/layer/cesium/resourceHelper.js +0 -1
- package/dist/src/layer/cesium/resourceHelper.js.map +1 -1
- package/dist/src/layer/cesium/sourceVectorContextSync.d.ts +2 -2
- package/dist/src/layer/cesium/sourceVectorContextSync.js +1 -1
- package/dist/src/layer/cesium/sourceVectorContextSync.js.map +1 -1
- package/dist/src/layer/cesium/terrainCesiumImpl.d.ts +1 -1
- package/dist/src/layer/cesium/vcsTile/vcsChildTile.d.ts +3 -2
- package/dist/src/layer/cesium/vcsTile/vcsChildTile.js +1 -1
- package/dist/src/layer/cesium/vcsTile/vcsChildTile.js.map +1 -1
- package/dist/src/layer/cesium/vcsTile/vcsDebugTile.d.ts +3 -2
- package/dist/src/layer/cesium/vcsTile/vcsDebugTile.js +1 -1
- package/dist/src/layer/cesium/vcsTile/vcsDebugTile.js.map +1 -1
- package/dist/src/layer/cesium/vcsTile/vcsNoDataTile.d.ts +3 -2
- package/dist/src/layer/cesium/vcsTile/vcsNoDataTile.js +1 -1
- package/dist/src/layer/cesium/vcsTile/vcsNoDataTile.js.map +1 -1
- package/dist/src/layer/cesium/vcsTile/vcsQuadtreeTileProvider.d.ts +6 -5
- package/dist/src/layer/cesium/vcsTile/vcsQuadtreeTileProvider.js +4 -4
- package/dist/src/layer/cesium/vcsTile/vcsQuadtreeTileProvider.js.map +1 -1
- package/dist/src/layer/cesium/vcsTile/vcsTileHelpers.d.ts +6 -5
- package/dist/src/layer/cesium/vcsTile/vcsTileHelpers.js.map +1 -1
- package/dist/src/layer/cesium/vcsTile/vcsVectorTile.d.ts +3 -2
- package/dist/src/layer/cesium/vcsTile/vcsVectorTile.js +1 -1
- package/dist/src/layer/cesium/vcsTile/vcsVectorTile.js.map +1 -1
- package/dist/src/layer/cesium/vectorCesiumImpl.js +1 -1
- package/dist/src/layer/cesium/vectorCesiumImpl.js.map +1 -1
- package/dist/src/layer/cesium/vectorContext.d.ts +9 -8
- package/dist/src/layer/cesium/vectorContext.js +6 -5
- package/dist/src/layer/cesium/vectorContext.js.map +1 -1
- package/dist/src/layer/cesium/vectorRasterTileCesiumImpl.d.ts +1 -1
- package/dist/src/layer/cesium/vectorRasterTileCesiumImpl.js +1 -1
- package/dist/src/layer/cesium/vectorRasterTileCesiumImpl.js.map +1 -1
- package/dist/src/layer/cesium/vectorTileCesiumImpl.d.ts +3 -3
- package/dist/src/layer/cesium/vectorTileCesiumImpl.js +2 -1
- package/dist/src/layer/cesium/vectorTileCesiumImpl.js.map +1 -1
- package/dist/src/layer/cesium/vectorTileImageryProvider.d.ts +1 -1
- package/dist/src/layer/cesium/vectorTileImageryProvider.js +3 -2
- package/dist/src/layer/cesium/vectorTileImageryProvider.js.map +1 -1
- package/dist/src/layer/cesium/wmsCesiumImpl.js +3 -2
- package/dist/src/layer/cesium/wmsCesiumImpl.js.map +1 -1
- package/dist/src/layer/cesiumTilesetLayer.d.ts +6 -4
- package/dist/src/layer/cesiumTilesetLayer.js.map +1 -1
- package/dist/src/layer/czmlLayer.js.map +1 -1
- package/dist/src/layer/dataSourceLayer.d.ts +4 -2
- package/dist/src/layer/dataSourceLayer.js +1 -1
- package/dist/src/layer/dataSourceLayer.js.map +1 -1
- package/dist/src/layer/featureLayer.d.ts +4 -2
- package/dist/src/layer/featureLayer.js.map +1 -1
- package/dist/src/layer/featureStoreFeatureVisibility.d.ts +2 -1
- package/dist/src/layer/featureStoreFeatureVisibility.js.map +1 -1
- package/dist/src/layer/featureStoreLayer.d.ts +8 -6
- package/dist/src/layer/featureStoreLayer.js +2 -2
- package/dist/src/layer/featureStoreLayer.js.map +1 -1
- package/dist/src/layer/featureStoreLayerChanges.d.ts +1 -1
- package/dist/src/layer/featureStoreLayerChanges.js.map +1 -1
- package/dist/src/layer/featureVisibility.d.ts +2 -1
- package/dist/src/layer/featureVisibility.js.map +1 -1
- package/dist/src/layer/flatGeobufHelpers.d.ts +18 -3
- package/dist/src/layer/flatGeobufHelpers.js +21 -1
- package/dist/src/layer/flatGeobufHelpers.js.map +1 -1
- package/dist/src/layer/flatGeobufLayer.d.ts +2 -1
- package/dist/src/layer/flatGeobufLayer.js.map +1 -1
- package/dist/src/layer/geojsonHelpers.d.ts +1 -1
- package/dist/src/layer/geojsonHelpers.js +8 -6
- package/dist/src/layer/geojsonHelpers.js.map +1 -1
- package/dist/src/layer/geojsonLayer.d.ts +2 -1
- package/dist/src/layer/geojsonLayer.js +3 -1
- package/dist/src/layer/geojsonLayer.js.map +1 -1
- package/dist/src/layer/globalHider.d.ts +1 -1
- package/dist/src/layer/globalHider.js.map +1 -1
- package/dist/src/layer/layer.d.ts +9 -7
- package/dist/src/layer/layer.js +1 -1
- package/dist/src/layer/layer.js.map +1 -1
- package/dist/src/layer/oblique/obliqueHelpers.js +2 -0
- package/dist/src/layer/oblique/obliqueHelpers.js.map +1 -1
- package/dist/src/layer/oblique/sourceObliqueSync.d.ts +1 -1
- package/dist/src/layer/oblique/sourceObliqueSync.js +7 -7
- package/dist/src/layer/oblique/sourceObliqueSync.js.map +1 -1
- package/dist/src/layer/oblique/vectorObliqueImpl.d.ts +2 -2
- package/dist/src/layer/oblique/vectorObliqueImpl.js +3 -3
- package/dist/src/layer/oblique/vectorObliqueImpl.js.map +1 -1
- package/dist/src/layer/openStreetMapLayer.d.ts +5 -4
- package/dist/src/layer/openStreetMapLayer.js +1 -1
- package/dist/src/layer/openStreetMapLayer.js.map +1 -1
- package/dist/src/layer/openlayers/layerOpenlayersImpl.d.ts +1 -1
- package/dist/src/layer/openlayers/layerOpenlayersImpl.js +0 -1
- package/dist/src/layer/openlayers/layerOpenlayersImpl.js.map +1 -1
- package/dist/src/layer/openlayers/loadFunctionHelpers.js +0 -1
- package/dist/src/layer/openlayers/loadFunctionHelpers.js.map +1 -1
- package/dist/src/layer/openlayers/tileDebugOpenlayersImpl.d.ts +1 -1
- package/dist/src/layer/openlayers/tileDebugOpenlayersImpl.js +2 -2
- package/dist/src/layer/openlayers/tileDebugOpenlayersImpl.js.map +1 -1
- package/dist/src/layer/openlayers/vectorOpenlayersImpl.js +1 -1
- package/dist/src/layer/openlayers/vectorOpenlayersImpl.js.map +1 -1
- package/dist/src/layer/openlayers/vectorTileOpenlayersImpl.js +1 -1
- package/dist/src/layer/openlayers/vectorTileOpenlayersImpl.js.map +1 -1
- package/dist/src/layer/openlayers/wmsOpenlayersImpl.d.ts +1 -1
- package/dist/src/layer/panorama/panoramaDatasetPanoramaImpl.d.ts +13 -0
- package/dist/src/layer/panorama/panoramaDatasetPanoramaImpl.js +34 -0
- package/dist/src/layer/panorama/panoramaDatasetPanoramaImpl.js.map +1 -0
- package/dist/src/layer/panorama/vectorTilePanoramaImpl.d.ts +28 -0
- package/dist/src/layer/panorama/vectorTilePanoramaImpl.js +114 -0
- package/dist/src/layer/panorama/vectorTilePanoramaImpl.js.map +1 -0
- package/dist/src/layer/panoramaDatasetLayer.d.ts +54 -0
- package/dist/src/layer/panoramaDatasetLayer.js +201 -0
- package/dist/src/layer/panoramaDatasetLayer.js.map +1 -0
- package/dist/src/layer/pointCloudLayer.d.ts +8 -5
- package/dist/src/layer/pointCloudLayer.js +1 -1
- package/dist/src/layer/pointCloudLayer.js.map +1 -1
- package/dist/src/layer/rasterLayer.d.ts +6 -4
- package/dist/src/layer/rasterLayer.js.map +1 -1
- package/dist/src/layer/singleImageLayer.d.ts +3 -2
- package/dist/src/layer/singleImageLayer.js.map +1 -1
- package/dist/src/layer/terrainHelpers.d.ts +1 -1
- package/dist/src/layer/terrainHelpers.js.map +1 -1
- package/dist/src/layer/terrainLayer.d.ts +3 -2
- package/dist/src/layer/terrainLayer.js.map +1 -1
- package/dist/src/layer/tileLoadedHelper.d.ts +2 -2
- package/dist/src/layer/tileProvider/flatGeobufTileProvider.d.ts +7 -4
- package/dist/src/layer/tileProvider/flatGeobufTileProvider.js +10 -2
- package/dist/src/layer/tileProvider/flatGeobufTileProvider.js.map +1 -1
- package/dist/src/layer/tileProvider/mvtTileProvider.d.ts +3 -2
- package/dist/src/layer/tileProvider/mvtTileProvider.js +3 -3
- package/dist/src/layer/tileProvider/mvtTileProvider.js.map +1 -1
- package/dist/src/layer/tileProvider/staticFeatureTileProvider.d.ts +3 -2
- package/dist/src/layer/tileProvider/staticFeatureTileProvider.js +0 -1
- package/dist/src/layer/tileProvider/staticFeatureTileProvider.js.map +1 -1
- package/dist/src/layer/tileProvider/staticGeojsonTileProvider.d.ts +2 -1
- package/dist/src/layer/tileProvider/staticGeojsonTileProvider.js +0 -1
- package/dist/src/layer/tileProvider/staticGeojsonTileProvider.js.map +1 -1
- package/dist/src/layer/tileProvider/tileProvider.d.ts +3 -2
- package/dist/src/layer/tileProvider/tileProvider.js +10 -3
- package/dist/src/layer/tileProvider/tileProvider.js.map +1 -1
- package/dist/src/layer/tileProvider/urlTemplateTileProvider.d.ts +2 -1
- package/dist/src/layer/tileProvider/urlTemplateTileProvider.js.map +1 -1
- package/dist/src/layer/tmsLayer.d.ts +3 -2
- package/dist/src/layer/tmsLayer.js +1 -1
- package/dist/src/layer/tmsLayer.js.map +1 -1
- package/dist/src/layer/vectorHelpers.d.ts +2 -2
- package/dist/src/layer/vectorHelpers.js +1 -1
- package/dist/src/layer/vectorHelpers.js.map +1 -1
- package/dist/src/layer/vectorLayer.d.ts +12 -8
- package/dist/src/layer/vectorLayer.js +1 -1
- package/dist/src/layer/vectorLayer.js.map +1 -1
- package/dist/src/layer/vectorProperties.d.ts +3 -3
- package/dist/src/layer/vectorProperties.js +4 -0
- package/dist/src/layer/vectorProperties.js.map +1 -1
- package/dist/src/layer/vectorSymbols.d.ts +8 -0
- package/dist/src/layer/vectorSymbols.js +8 -0
- package/dist/src/layer/vectorSymbols.js.map +1 -1
- package/dist/src/layer/vectorTileLayer.d.ts +17 -10
- package/dist/src/layer/vectorTileLayer.js +8 -1
- package/dist/src/layer/vectorTileLayer.js.map +1 -1
- package/dist/src/layer/wfsLayer.d.ts +2 -1
- package/dist/src/layer/wfsLayer.js +6 -4
- package/dist/src/layer/wfsLayer.js.map +1 -1
- package/dist/src/layer/wmsHelpers.js +2 -2
- package/dist/src/layer/wmsHelpers.js.map +1 -1
- package/dist/src/layer/wmsLayer.d.ts +4 -3
- package/dist/src/layer/wmsLayer.js.map +1 -1
- package/dist/src/layer/wmtsLayer.d.ts +3 -2
- package/dist/src/layer/wmtsLayer.js +1 -1
- package/dist/src/layer/wmtsLayer.js.map +1 -1
- package/dist/src/map/baseOLMap.d.ts +1 -1
- package/dist/src/map/baseOLMap.js +17 -8
- package/dist/src/map/baseOLMap.js.map +1 -1
- package/dist/src/map/cameraLimiter.d.ts +2 -1
- package/dist/src/map/cameraLimiter.js.map +1 -1
- package/dist/src/map/cesiumMap.d.ts +5 -7
- package/dist/src/map/cesiumMap.js +27 -186
- package/dist/src/map/cesiumMap.js.map +1 -1
- package/dist/src/map/cesiumMapHelpers.d.ts +7 -0
- package/dist/src/map/cesiumMapHelpers.js +144 -0
- package/dist/src/map/cesiumMapHelpers.js.map +1 -0
- package/dist/src/map/navigation/cameraHelper.d.ts +3 -2
- package/dist/src/map/navigation/cameraHelper.js.map +1 -1
- package/dist/src/map/navigation/cesiumNavigation.d.ts +4 -3
- package/dist/src/map/navigation/cesiumNavigation.js.map +1 -1
- package/dist/src/map/navigation/controller/controller.d.ts +1 -1
- package/dist/src/map/navigation/controller/controller.js +2 -2
- package/dist/src/map/navigation/controller/controller.js.map +1 -1
- package/dist/src/map/navigation/controller/keyboardController.d.ts +3 -2
- package/dist/src/map/navigation/controller/keyboardController.js +4 -2
- package/dist/src/map/navigation/controller/keyboardController.js.map +1 -1
- package/dist/src/map/navigation/easingHelper.d.ts +1 -1
- package/dist/src/map/navigation/easingHelper.js +1 -1
- package/dist/src/map/navigation/easingHelper.js.map +1 -1
- package/dist/src/map/navigation/navigation.d.ts +6 -6
- package/dist/src/map/navigation/navigation.js +6 -2
- package/dist/src/map/navigation/navigation.js.map +1 -1
- package/dist/src/map/navigation/navigationImpl.d.ts +2 -2
- package/dist/src/map/navigation/obliqueNavigation.d.ts +4 -3
- package/dist/src/map/navigation/obliqueNavigation.js +3 -1
- package/dist/src/map/navigation/obliqueNavigation.js.map +1 -1
- package/dist/src/map/navigation/openlayersNavigation.d.ts +4 -3
- package/dist/src/map/navigation/openlayersNavigation.js.map +1 -1
- package/dist/src/map/navigation/viewHelper.d.ts +2 -2
- package/dist/src/map/navigation/viewHelper.js +0 -1
- package/dist/src/map/navigation/viewHelper.js.map +1 -1
- package/dist/src/map/obliqueMap.d.ts +3 -3
- package/dist/src/map/obliqueMap.js +1 -1
- package/dist/src/map/obliqueMap.js.map +1 -1
- package/dist/src/map/panoramaMap.d.ts +98 -0
- package/dist/src/map/panoramaMap.js +293 -0
- package/dist/src/map/panoramaMap.js.map +1 -0
- package/dist/src/map/vcsMap.d.ts +3 -3
- package/dist/src/map/vcsMap.js +17 -11
- package/dist/src/map/vcsMap.js.map +1 -1
- package/dist/src/moduleIdSymbol.js +0 -1
- package/dist/src/moduleIdSymbol.js.map +1 -1
- package/dist/src/oblique/defaultObliqueCollection.js +3 -1
- package/dist/src/oblique/defaultObliqueCollection.js.map +1 -1
- package/dist/src/oblique/helpers.d.ts +1 -1
- package/dist/src/oblique/helpers.js +1 -1
- package/dist/src/oblique/helpers.js.map +1 -1
- package/dist/src/oblique/obliqueCollection.d.ts +3 -2
- package/dist/src/oblique/obliqueCollection.js.map +1 -1
- package/dist/src/oblique/obliqueDataSet.d.ts +2 -1
- package/dist/src/oblique/obliqueDataSet.js.map +1 -1
- package/dist/src/oblique/obliqueImage.d.ts +1 -1
- package/dist/src/oblique/obliqueProvider.d.ts +1 -1
- package/dist/src/oblique/obliqueProvider.js.map +1 -1
- package/dist/src/oblique/obliqueView.js +1 -0
- package/dist/src/oblique/obliqueView.js.map +1 -1
- package/dist/src/oblique/parseImageJson.js +2 -3
- package/dist/src/oblique/parseImageJson.js.map +1 -1
- package/dist/src/ol/feature.js.map +1 -1
- package/dist/src/ol/geom/circle.js.map +1 -1
- package/dist/src/ol/render/canvas/canvasTileRenderer.js +0 -1
- package/dist/src/ol/render/canvas/canvasTileRenderer.js.map +1 -1
- package/dist/src/ol/source/ClusterEnhancedVectorSource.d.ts +1 -1
- package/dist/src/ol/source/VcsCluster.d.ts +3 -3
- package/dist/src/ol/source/VcsCluster.js.map +1 -1
- package/dist/src/overrideClassRegistry.d.ts +3 -3
- package/dist/src/overrideClassRegistry.js +1 -0
- package/dist/src/overrideClassRegistry.js.map +1 -1
- package/dist/src/panorama/fieldOfView.d.ts +57 -0
- package/dist/src/panorama/fieldOfView.js +135 -0
- package/dist/src/panorama/fieldOfView.js.map +1 -0
- package/dist/src/panorama/panoramaCameraController.d.ts +35 -0
- package/dist/src/panorama/panoramaCameraController.js +146 -0
- package/dist/src/panorama/panoramaCameraController.js.map +1 -0
- package/dist/src/panorama/panoramaImage.d.ts +135 -0
- package/dist/src/panorama/panoramaImage.js +269 -0
- package/dist/src/panorama/panoramaImage.js.map +1 -0
- package/dist/src/panorama/panoramaImageCache.d.ts +8 -0
- package/dist/src/panorama/panoramaImageCache.js +18 -0
- package/dist/src/panorama/panoramaImageCache.js.map +1 -0
- package/dist/src/panorama/panoramaImageView.d.ts +25 -0
- package/dist/src/panorama/panoramaImageView.js +331 -0
- package/dist/src/panorama/panoramaImageView.js.map +1 -0
- package/dist/src/panorama/panoramaTile.d.ts +19 -0
- package/dist/src/panorama/panoramaTile.js +57 -0
- package/dist/src/panorama/panoramaTile.js.map +1 -0
- package/dist/src/panorama/panoramaTileCache.d.ts +16 -0
- package/dist/src/panorama/panoramaTileCache.js +34 -0
- package/dist/src/panorama/panoramaTileCache.js.map +1 -0
- package/dist/src/panorama/panoramaTileCoordinate.d.ts +56 -0
- package/dist/src/panorama/panoramaTileCoordinate.js +110 -0
- package/dist/src/panorama/panoramaTileCoordinate.js.map +1 -0
- package/dist/src/panorama/panoramaTileMaterial.d.ts +102 -0
- package/dist/src/panorama/panoramaTileMaterial.js +225 -0
- package/dist/src/panorama/panoramaTileMaterial.js.map +1 -0
- package/dist/src/panorama/panoramaTileMaterialFS.shader.d.ts +2 -0
- package/dist/src/panorama/panoramaTileMaterialFS.shader.js +170 -0
- package/dist/src/panorama/panoramaTileMaterialFS.shader.js.map +1 -0
- package/dist/src/panorama/panoramaTilePrimitiveCollection.d.ts +31 -0
- package/dist/src/panorama/panoramaTilePrimitiveCollection.js +113 -0
- package/dist/src/panorama/panoramaTilePrimitiveCollection.js.map +1 -0
- package/dist/src/panorama/panoramaTileProvider.d.ts +67 -0
- package/dist/src/panorama/panoramaTileProvider.js +313 -0
- package/dist/src/panorama/panoramaTileProvider.js.map +1 -0
- package/dist/src/panorama/sphericalCoordinates.d.ts +20 -0
- package/dist/src/panorama/sphericalCoordinates.js +78 -0
- package/dist/src/panorama/sphericalCoordinates.js.map +1 -0
- package/dist/src/style/arrowStyle.d.ts +1 -1
- package/dist/src/style/arrowStyle.js.map +1 -1
- package/dist/src/style/declarativeStyleItem.d.ts +1 -1
- package/dist/src/style/declarativeStyleItem.js +12 -14
- package/dist/src/style/declarativeStyleItem.js.map +1 -1
- package/dist/src/style/styleFactory.d.ts +2 -2
- package/dist/src/style/styleFactory.js +1 -2
- package/dist/src/style/styleFactory.js.map +1 -1
- package/dist/src/style/styleHelpers.d.ts +2 -2
- package/dist/src/style/styleHelpers.js +6 -6
- package/dist/src/style/styleHelpers.js.map +1 -1
- package/dist/src/style/styleItem.d.ts +4 -2
- package/dist/src/style/styleItem.js +3 -1
- package/dist/src/style/styleItem.js.map +1 -1
- package/dist/src/style/vectorStyleItem.d.ts +7 -5
- package/dist/src/style/vectorStyleItem.js +9 -19
- package/dist/src/style/vectorStyleItem.js.map +1 -1
- package/dist/src/style/writeStyle.d.ts +2 -2
- package/dist/src/style/writeStyle.js.map +1 -1
- package/dist/src/util/clipping/clippingObject.js.map +1 -1
- package/dist/src/util/clipping/clippingObjectManager.js.map +1 -1
- package/dist/src/util/clipping/clippingPolygonHelper.d.ts +2 -1
- package/dist/src/util/clipping/clippingPolygonHelper.js.map +1 -1
- package/dist/src/util/clipping/clippingPolygonObject.d.ts +4 -3
- package/dist/src/util/clipping/clippingPolygonObject.js.map +1 -1
- package/dist/src/util/clipping/clippingPolygonObjectCollection.d.ts +3 -4
- package/dist/src/util/clipping/clippingPolygonObjectCollection.js +37 -11
- package/dist/src/util/clipping/clippingPolygonObjectCollection.js.map +1 -1
- package/dist/src/util/collection.js.map +1 -1
- package/dist/src/util/createAbsoluteFeature.d.ts +4 -0
- package/dist/src/util/createAbsoluteFeature.js +98 -0
- package/dist/src/util/createAbsoluteFeature.js.map +1 -0
- package/dist/src/util/displayQuality/displayQuality.d.ts +3 -5
- package/dist/src/util/displayQuality/displayQuality.js +4 -5
- package/dist/src/util/displayQuality/displayQuality.js.map +1 -1
- package/dist/src/util/editor/createFeatureSession.d.ts +4 -3
- package/dist/src/util/editor/createFeatureSession.js.map +1 -1
- package/dist/src/util/editor/editFeaturesSession.d.ts +2 -1
- package/dist/src/util/editor/editFeaturesSession.js +3 -1
- package/dist/src/util/editor/editFeaturesSession.js.map +1 -1
- package/dist/src/util/editor/editGeometrySession.d.ts +3 -2
- package/dist/src/util/editor/editGeometrySession.js.map +1 -1
- package/dist/src/util/editor/editorHelpers.d.ts +5 -4
- package/dist/src/util/editor/editorHelpers.js +4 -0
- package/dist/src/util/editor/editorHelpers.js.map +1 -1
- package/dist/src/util/editor/editorSessionHelpers.d.ts +3 -3
- package/dist/src/util/editor/editorSessionHelpers.js.map +1 -1
- package/dist/src/util/editor/interactions/createCircleInteraction.d.ts +2 -1
- package/dist/src/util/editor/interactions/createCircleInteraction.js.map +1 -1
- package/dist/src/util/editor/interactions/createLineStringInteraction.d.ts +3 -2
- package/dist/src/util/editor/interactions/createLineStringInteraction.js.map +1 -1
- package/dist/src/util/editor/interactions/createPointInteraction.d.ts +3 -2
- package/dist/src/util/editor/interactions/createPointInteraction.js.map +1 -1
- package/dist/src/util/editor/interactions/createPolygonInteraction.d.ts +3 -2
- package/dist/src/util/editor/interactions/createPolygonInteraction.js.map +1 -1
- package/dist/src/util/editor/interactions/creationSnapping.d.ts +2 -2
- package/dist/src/util/editor/interactions/creationSnapping.js +1 -1
- package/dist/src/util/editor/interactions/creationSnapping.js.map +1 -1
- package/dist/src/util/editor/interactions/editFeaturesMouseOverInteraction.d.ts +2 -1
- package/dist/src/util/editor/interactions/editFeaturesMouseOverInteraction.js.map +1 -1
- package/dist/src/util/editor/interactions/editGeometryMouseOverInteraction.d.ts +2 -1
- package/dist/src/util/editor/interactions/editGeometryMouseOverInteraction.js.map +1 -1
- package/dist/src/util/editor/interactions/ensureHandlerSelectionInteraction.d.ts +2 -1
- package/dist/src/util/editor/interactions/ensureHandlerSelectionInteraction.js.map +1 -1
- package/dist/src/util/editor/interactions/insertVertexInteraction.d.ts +3 -2
- package/dist/src/util/editor/interactions/insertVertexInteraction.js.map +1 -1
- package/dist/src/util/editor/interactions/layerSnapping.d.ts +4 -4
- package/dist/src/util/editor/interactions/layerSnapping.js +1 -1
- package/dist/src/util/editor/interactions/layerSnapping.js.map +1 -1
- package/dist/src/util/editor/interactions/mapInteractionController.d.ts +2 -1
- package/dist/src/util/editor/interactions/mapInteractionController.js +1 -0
- package/dist/src/util/editor/interactions/mapInteractionController.js.map +1 -1
- package/dist/src/util/editor/interactions/removeVertexInteraction.d.ts +3 -2
- package/dist/src/util/editor/interactions/removeVertexInteraction.js.map +1 -1
- package/dist/src/util/editor/interactions/rightClickInteraction.d.ts +2 -1
- package/dist/src/util/editor/interactions/rightClickInteraction.js.map +1 -1
- package/dist/src/util/editor/interactions/segmentLengthInteraction.d.ts +2 -1
- package/dist/src/util/editor/interactions/segmentLengthInteraction.js.map +1 -1
- package/dist/src/util/editor/interactions/selectFeatureMouseOverInteraction.d.ts +3 -2
- package/dist/src/util/editor/interactions/selectFeatureMouseOverInteraction.js +13 -13
- package/dist/src/util/editor/interactions/selectFeatureMouseOverInteraction.js.map +1 -1
- package/dist/src/util/editor/interactions/selectMultiFeatureInteraction.d.ts +3 -3
- package/dist/src/util/editor/interactions/selectMultiFeatureInteraction.js +1 -1
- package/dist/src/util/editor/interactions/selectMultiFeatureInteraction.js.map +1 -1
- package/dist/src/util/editor/interactions/selectSingleFeatureInteraction.d.ts +2 -1
- package/dist/src/util/editor/interactions/selectSingleFeatureInteraction.js +1 -1
- package/dist/src/util/editor/interactions/selectSingleFeatureInteraction.js.map +1 -1
- package/dist/src/util/editor/interactions/translateVertexInteraction.d.ts +3 -2
- package/dist/src/util/editor/interactions/translateVertexInteraction.js.map +1 -1
- package/dist/src/util/editor/interactions/translationSnapping.d.ts +2 -2
- package/dist/src/util/editor/interactions/translationSnapping.js +1 -1
- package/dist/src/util/editor/interactions/translationSnapping.js.map +1 -1
- package/dist/src/util/editor/selectFeaturesSession.d.ts +3 -2
- package/dist/src/util/editor/selectFeaturesSession.js +1 -1
- package/dist/src/util/editor/selectFeaturesSession.js.map +1 -1
- package/dist/src/util/editor/snappingHelpers.d.ts +3 -3
- package/dist/src/util/editor/snappingHelpers.js.map +1 -1
- package/dist/src/util/editor/transformation/create2DHandlers.d.ts +2 -1
- package/dist/src/util/editor/transformation/create2DHandlers.js.map +1 -1
- package/dist/src/util/editor/transformation/create3DHandlers.d.ts +3 -2
- package/dist/src/util/editor/transformation/create3DHandlers.js.map +1 -1
- package/dist/src/util/editor/transformation/extrudeInteraction.d.ts +3 -2
- package/dist/src/util/editor/transformation/extrudeInteraction.js +1 -1
- package/dist/src/util/editor/transformation/extrudeInteraction.js.map +1 -1
- package/dist/src/util/editor/transformation/rotateInteraction.d.ts +4 -2
- package/dist/src/util/editor/transformation/rotateInteraction.js +1 -1
- package/dist/src/util/editor/transformation/rotateInteraction.js.map +1 -1
- package/dist/src/util/editor/transformation/scaleInteraction.d.ts +3 -2
- package/dist/src/util/editor/transformation/scaleInteraction.js +1 -1
- package/dist/src/util/editor/transformation/scaleInteraction.js.map +1 -1
- package/dist/src/util/editor/transformation/transformationHandler.d.ts +2 -1
- package/dist/src/util/editor/transformation/transformationHandler.js +1 -1
- package/dist/src/util/editor/transformation/transformationHandler.js.map +1 -1
- package/dist/src/util/editor/transformation/translateInteraction.d.ts +3 -2
- package/dist/src/util/editor/transformation/translateInteraction.js +2 -2
- package/dist/src/util/editor/transformation/translateInteraction.js.map +1 -1
- package/dist/src/util/exclusiveManager.d.ts +1 -1
- package/dist/src/util/exclusiveManager.js.map +1 -1
- package/dist/src/util/featureconverter/arcToCesium.d.ts +1 -1
- package/dist/src/util/featureconverter/arcToCesium.js +1 -2
- package/dist/src/util/featureconverter/arcToCesium.js.map +1 -1
- package/dist/src/util/featureconverter/circleToCesium.d.ts +1 -1
- package/dist/src/util/featureconverter/circleToCesium.js +1 -1
- package/dist/src/util/featureconverter/circleToCesium.js.map +1 -1
- package/dist/src/util/featureconverter/clampedPrimitive.d.ts +2 -1
- package/dist/src/util/featureconverter/clampedPrimitive.js +0 -1
- package/dist/src/util/featureconverter/clampedPrimitive.js.map +1 -1
- package/dist/src/util/featureconverter/convert.d.ts +4 -3
- package/dist/src/util/featureconverter/convert.js +1 -1
- package/dist/src/util/featureconverter/convert.js.map +1 -1
- package/dist/src/util/featureconverter/extent3D.d.ts +2 -2
- package/dist/src/util/featureconverter/extent3D.js.map +1 -1
- package/dist/src/util/featureconverter/lineStringToCesium.d.ts +5 -5
- package/dist/src/util/featureconverter/lineStringToCesium.js +1 -2
- package/dist/src/util/featureconverter/lineStringToCesium.js.map +1 -1
- package/dist/src/util/featureconverter/pointHelpers.d.ts +6 -5
- package/dist/src/util/featureconverter/pointHelpers.js +2 -3
- package/dist/src/util/featureconverter/pointHelpers.js.map +1 -1
- package/dist/src/util/featureconverter/pointToCesium.d.ts +6 -11
- package/dist/src/util/featureconverter/pointToCesium.js +3 -20
- package/dist/src/util/featureconverter/pointToCesium.js.map +1 -1
- package/dist/src/util/featureconverter/polygonToCesium.d.ts +1 -1
- package/dist/src/util/featureconverter/polygonToCesium.js +1 -1
- package/dist/src/util/featureconverter/polygonToCesium.js.map +1 -1
- package/dist/src/util/featureconverter/storeyHelpers.d.ts +2 -2
- package/dist/src/util/featureconverter/vectorGeometryFactory.d.ts +2 -2
- package/dist/src/util/featureconverter/vectorGeometryFactory.js.map +1 -1
- package/dist/src/util/featureconverter/vectorHeightInfo.d.ts +8 -2
- package/dist/src/util/featureconverter/vectorHeightInfo.js +17 -0
- package/dist/src/util/featureconverter/vectorHeightInfo.js.map +1 -1
- package/dist/src/util/flight/flightAnchor.js +4 -3
- package/dist/src/util/flight/flightAnchor.js.map +1 -1
- package/dist/src/util/flight/flightCollection.d.ts +2 -2
- package/dist/src/util/flight/flightCollection.js.map +1 -1
- package/dist/src/util/flight/flightHelpers.d.ts +1 -1
- package/dist/src/util/flight/flightInstance.d.ts +3 -2
- package/dist/src/util/flight/flightInstance.js.map +1 -1
- package/dist/src/util/flight/flightPlayer.js +1 -1
- package/dist/src/util/flight/flightPlayer.js.map +1 -1
- package/dist/src/util/flight/flightVisualizer.d.ts +1 -1
- package/dist/src/util/flight/flightVisualizer.js.map +1 -1
- package/dist/src/util/geometryHelpers.d.ts +3 -5
- package/dist/src/util/geometryHelpers.js +0 -91
- package/dist/src/util/geometryHelpers.js.map +1 -1
- package/dist/src/util/hiddenObjects.d.ts +2 -2
- package/dist/src/util/hiddenObjects.js +0 -1
- package/dist/src/util/hiddenObjects.js.map +1 -1
- package/dist/src/util/indexedCollection.js.map +1 -1
- package/dist/src/util/isMobile.js +3 -2
- package/dist/src/util/isMobile.js.map +1 -1
- package/dist/src/util/layerCollection.d.ts +6 -1
- package/dist/src/util/layerCollection.js +5 -1
- package/dist/src/util/layerCollection.js.map +1 -1
- package/dist/src/util/locale.js +0 -1
- package/dist/src/util/locale.js.map +1 -1
- package/dist/src/util/mapCollection.d.ts +9 -4
- package/dist/src/util/mapCollection.js +67 -34
- package/dist/src/util/mapCollection.js.map +1 -1
- package/dist/src/util/overrideCollection.d.ts +1 -1
- package/dist/src/util/overrideCollection.js +3 -1
- package/dist/src/util/overrideCollection.js.map +1 -1
- package/dist/src/util/projection.d.ts +1 -1
- package/dist/src/util/projection.js +2 -2
- package/dist/src/util/projection.js.map +1 -1
- package/dist/src/util/renderScreenshot.d.ts +1 -1
- package/dist/src/util/rotation.d.ts +4 -3
- package/dist/src/util/rotation.js +1 -1
- package/dist/src/util/rotation.js.map +1 -1
- package/dist/src/util/urlHelpers.js +0 -1
- package/dist/src/util/urlHelpers.js.map +1 -1
- package/dist/src/util/vcsTemplate.js +2 -4
- package/dist/src/util/vcsTemplate.js.map +1 -1
- package/dist/src/util/viewpoint.d.ts +6 -2
- package/dist/src/util/viewpoint.js +11 -1
- package/dist/src/util/viewpoint.js.map +1 -1
- package/dist/src/vcsApp.d.ts +7 -6
- package/dist/src/vcsApp.js +20 -14
- package/dist/src/vcsApp.js.map +1 -1
- package/dist/src/vcsEvent.js.map +1 -1
- package/dist/src/vcsModuleHelpers.js +3 -3
- package/dist/src/vcsModuleHelpers.js.map +1 -1
- package/dist/src/vectorCluster/vectorClusterCesiumContext.d.ts +4 -4
- package/dist/src/vectorCluster/vectorClusterCesiumContext.js +1 -1
- package/dist/src/vectorCluster/vectorClusterCesiumContext.js.map +1 -1
- package/dist/src/vectorCluster/vectorClusterGroup.d.ts +9 -6
- package/dist/src/vectorCluster/vectorClusterGroup.js +17 -5
- package/dist/src/vectorCluster/vectorClusterGroup.js.map +1 -1
- package/dist/src/vectorCluster/vectorClusterGroupCesiumImpl.d.ts +2 -2
- package/dist/src/vectorCluster/vectorClusterGroupCesiumImpl.js +1 -1
- package/dist/src/vectorCluster/vectorClusterGroupCesiumImpl.js.map +1 -1
- package/dist/src/vectorCluster/vectorClusterGroupCollection.d.ts +1 -1
- package/dist/src/vectorCluster/vectorClusterGroupImpl.d.ts +5 -5
- package/dist/src/vectorCluster/vectorClusterGroupObliqueImpl.d.ts +2 -2
- package/dist/src/vectorCluster/vectorClusterGroupObliqueImpl.js +1 -1
- package/dist/src/vectorCluster/vectorClusterGroupObliqueImpl.js.map +1 -1
- package/dist/src/vectorCluster/vectorClusterGroupOpenlayersImpl.d.ts +2 -2
- package/dist/src/vectorCluster/vectorClusterStyleItem.d.ts +4 -3
- package/dist/src/vectorCluster/vectorClusterStyleItem.js.map +1 -1
- package/dist/src/vectorCluster/vectorClusterSymbols.js +0 -1
- package/dist/src/vectorCluster/vectorClusterSymbols.js.map +1 -1
- package/dist/src/workers/panoramaImageWorker.d.ts +1 -0
- package/dist/src/workers/panoramaImageWorker.js +34 -0
- package/dist/src/workers/panoramaImageWorker.js.map +1 -0
- package/dist/tests/data/panorama/badOrientation.tif +0 -0
- package/dist/tests/data/panorama/badPosition.tif +0 -0
- package/dist/tests/data/panorama/lowOverview.tif +0 -0
- package/dist/tests/data/panorama/noVersionDepth.tif +0 -0
- package/dist/tests/data/panorama/noVersionRgb.tif +0 -0
- package/dist/tests/data/panorama/testDepthGeotiff.tif +0 -0
- package/dist/tests/data/panorama/testRgbGeotiff.tif +0 -0
- package/dist/tests/unit/helpers/cesiumHelpers.d.ts +6 -2
- package/dist/tests/unit/helpers/cesiumHelpers.js +15 -6
- package/dist/tests/unit/helpers/cesiumHelpers.js.map +1 -1
- package/dist/tests/unit/helpers/flatGeobufHelpers.d.ts +2 -0
- package/dist/tests/unit/helpers/flatGeobufHelpers.js +13 -0
- package/dist/tests/unit/helpers/flatGeobufHelpers.js.map +1 -0
- package/dist/tests/unit/helpers/helpers.d.ts +4 -0
- package/dist/tests/unit/helpers/helpers.js +26 -1
- package/dist/tests/unit/helpers/helpers.js.map +1 -1
- package/dist/tests/unit/helpers/panoramaHelpers.d.ts +30 -0
- package/dist/tests/unit/helpers/panoramaHelpers.js +76 -0
- package/dist/tests/unit/helpers/panoramaHelpers.js.map +1 -0
- package/index.ts +316 -279
- package/package.json +17 -49
- package/src/category/category.ts +9 -6
- package/src/category/categoryCollection.ts +4 -3
- package/src/cesium/cesium.d.ts +52 -18
- package/src/cesium/cesium3DTileFeature.ts +6 -7
- package/src/cesium/cesiumVcsCameraPrimitive.ts +6 -5
- package/src/cesium/entity.ts +1 -1
- package/src/classRegistry.ts +19 -18
- package/src/featureProvider/abstractFeatureProvider.ts +8 -4
- package/src/featureProvider/wmsFeatureProvider.ts +97 -23
- package/src/global.d.ts +6 -1
- package/src/interaction/abstractInteraction.ts +5 -5
- package/src/interaction/coordinateAtPixel.ts +37 -0
- package/src/interaction/eventHandler.ts +6 -8
- package/src/interaction/featureAtPixelInteraction.ts +24 -13
- package/src/interaction/featureProviderInteraction.ts +6 -7
- package/src/interaction/interactionType.ts +1 -0
- package/src/interaction/panoramaFeatureHighlight.ts +109 -0
- package/src/interaction/panoramaImageSelection.ts +37 -0
- package/src/layer/cesium/cesiumTilesetCesiumImpl.ts +14 -10
- package/src/layer/cesium/dataSourceCesiumImpl.ts +8 -6
- package/src/layer/cesium/resourceHelper.ts +0 -1
- package/src/layer/cesium/sourceVectorContextSync.ts +4 -4
- package/src/layer/cesium/terrainCesiumImpl.ts +1 -1
- package/src/layer/cesium/vcsTile/vcsChildTile.ts +3 -3
- package/src/layer/cesium/vcsTile/vcsDebugTile.ts +5 -10
- package/src/layer/cesium/vcsTile/vcsNoDataTile.ts +3 -3
- package/src/layer/cesium/vcsTile/vcsQuadtreeTileProvider.ts +19 -17
- package/src/layer/cesium/vcsTile/vcsTileHelpers.ts +10 -8
- package/src/layer/cesium/vcsTile/vcsVectorTile.ts +7 -11
- package/src/layer/cesium/vectorCesiumImpl.ts +2 -4
- package/src/layer/cesium/vectorContext.ts +32 -25
- package/src/layer/cesium/vectorRasterTileCesiumImpl.ts +2 -2
- package/src/layer/cesium/vectorTileCesiumImpl.ts +5 -7
- package/src/layer/cesium/vectorTileImageryProvider.ts +4 -4
- package/src/layer/cesium/wmsCesiumImpl.ts +3 -2
- package/src/layer/cesiumTilesetLayer.ts +6 -8
- package/src/layer/czmlLayer.ts +2 -2
- package/src/layer/dataSourceLayer.ts +4 -6
- package/src/layer/featureLayer.ts +6 -4
- package/src/layer/featureStoreFeatureVisibility.ts +2 -1
- package/src/layer/featureStoreLayer.ts +18 -14
- package/src/layer/featureStoreLayerChanges.ts +7 -7
- package/src/layer/featureVisibility.ts +3 -2
- package/src/layer/flatGeobufHelpers.ts +46 -6
- package/src/layer/flatGeobufLayer.ts +2 -1
- package/src/layer/geojsonHelpers.ts +11 -8
- package/src/layer/geojsonLayer.ts +8 -5
- package/src/layer/globalHider.ts +5 -3
- package/src/layer/layer.ts +14 -14
- package/src/layer/oblique/obliqueHelpers.ts +2 -0
- package/src/layer/oblique/sourceObliqueSync.ts +9 -9
- package/src/layer/oblique/vectorObliqueImpl.ts +6 -8
- package/src/layer/openStreetMapLayer.ts +7 -8
- package/src/layer/openlayers/layerOpenlayersImpl.ts +2 -3
- package/src/layer/openlayers/loadFunctionHelpers.ts +0 -1
- package/src/layer/openlayers/tileDebugOpenlayersImpl.ts +3 -3
- package/src/layer/openlayers/vectorOpenlayersImpl.ts +1 -1
- package/src/layer/openlayers/vectorTileOpenlayersImpl.ts +3 -3
- package/src/layer/openlayers/wmsOpenlayersImpl.ts +1 -1
- package/src/layer/panorama/panoramaDatasetPanoramaImpl.ts +49 -0
- package/src/layer/panorama/vectorTilePanoramaImpl.ts +163 -0
- package/src/layer/panoramaDatasetLayer.ts +283 -0
- package/src/layer/pointCloudLayer.ts +9 -12
- package/src/layer/rasterLayer.ts +6 -5
- package/src/layer/singleImageLayer.ts +3 -2
- package/src/layer/terrainHelpers.ts +2 -1
- package/src/layer/terrainLayer.ts +3 -2
- package/src/layer/tileLoadedHelper.ts +2 -2
- package/src/layer/tileProvider/flatGeobufTileProvider.ts +22 -10
- package/src/layer/tileProvider/mvtTileProvider.ts +4 -6
- package/src/layer/tileProvider/staticFeatureTileProvider.ts +3 -3
- package/src/layer/tileProvider/staticGeojsonTileProvider.ts +2 -2
- package/src/layer/tileProvider/tileProvider.ts +15 -10
- package/src/layer/tileProvider/urlTemplateTileProvider.ts +2 -1
- package/src/layer/tmsLayer.ts +3 -3
- package/src/layer/vectorHelpers.ts +3 -4
- package/src/layer/vectorLayer.ts +14 -15
- package/src/layer/vectorProperties.ts +27 -16
- package/src/layer/vectorSymbols.ts +10 -0
- package/src/layer/vectorTileLayer.ts +39 -29
- package/src/layer/wfsLayer.ts +10 -7
- package/src/layer/wmsHelpers.ts +2 -2
- package/src/layer/wmsLayer.ts +5 -5
- package/src/layer/wmtsLayer.ts +3 -3
- package/src/map/baseOLMap.ts +18 -9
- package/src/map/cameraLimiter.ts +1 -1
- package/src/map/cesiumMap.ts +49 -265
- package/src/map/cesiumMapHelpers.ts +219 -0
- package/src/map/navigation/cameraHelper.ts +2 -3
- package/src/map/navigation/cesiumNavigation.ts +5 -4
- package/src/map/navigation/controller/controller.ts +3 -6
- package/src/map/navigation/controller/keyboardController.ts +7 -7
- package/src/map/navigation/easingHelper.ts +2 -5
- package/src/map/navigation/navigation.ts +18 -14
- package/src/map/navigation/navigationImpl.ts +2 -2
- package/src/map/navigation/obliqueNavigation.ts +7 -6
- package/src/map/navigation/openlayersNavigation.ts +4 -3
- package/src/map/navigation/viewHelper.ts +2 -3
- package/src/map/obliqueMap.ts +7 -9
- package/src/map/panoramaMap.ts +410 -0
- package/src/map/vcsMap.ts +19 -16
- package/src/moduleIdSymbol.ts +0 -1
- package/src/oblique/defaultObliqueCollection.ts +1 -0
- package/src/oblique/helpers.ts +2 -4
- package/src/oblique/obliqueCollection.ts +7 -7
- package/src/oblique/obliqueDataSet.ts +7 -6
- package/src/oblique/obliqueImage.ts +1 -1
- package/src/oblique/obliqueProvider.ts +3 -3
- package/src/oblique/obliqueView.ts +1 -0
- package/src/oblique/parseImageJson.ts +11 -12
- package/src/ol/feature.ts +1 -0
- package/src/ol/geojson.d.ts +3 -2
- package/src/ol/geom/circle.ts +1 -1
- package/src/ol/ol.d.ts +27 -29
- package/src/ol/render/canvas/canvasTileRenderer.js +0 -1
- package/src/ol/source/ClusterEnhancedVectorSource.ts +1 -1
- package/src/ol/source/VcsCluster.ts +4 -4
- package/src/overrideClassRegistry.ts +14 -10
- package/src/panorama/fieldOfView.ts +254 -0
- package/src/panorama/panoramaCameraController.ts +206 -0
- package/src/panorama/panoramaImage.ts +531 -0
- package/src/panorama/panoramaImageCache.ts +19 -0
- package/src/panorama/panoramaImageView.ts +448 -0
- package/src/panorama/panoramaTile.ts +89 -0
- package/src/panorama/panoramaTileCache.ts +40 -0
- package/src/panorama/panoramaTileCoordinate.ts +166 -0
- package/src/panorama/panoramaTileMaterial.ts +323 -0
- package/src/panorama/panoramaTileMaterialFS.glsl +165 -0
- package/src/panorama/panoramaTilePrimitiveCollection.ts +158 -0
- package/src/panorama/panoramaTileProvider.ts +536 -0
- package/src/panorama/sphericalCoordinates.ts +96 -0
- package/src/style/arrowStyle.ts +1 -1
- package/src/style/declarativeStyleItem.ts +19 -19
- package/src/style/styleFactory.ts +6 -7
- package/src/style/styleHelpers.ts +9 -9
- package/src/style/styleItem.ts +8 -3
- package/src/style/vectorStyleItem.ts +24 -30
- package/src/style/writeStyle.ts +3 -2
- package/src/util/clipping/clippingObject.ts +2 -3
- package/src/util/clipping/clippingObjectManager.ts +3 -3
- package/src/util/clipping/clippingPolygonHelper.ts +1 -2
- package/src/util/clipping/clippingPolygonObject.ts +4 -3
- package/src/util/clipping/clippingPolygonObjectCollection.ts +43 -27
- package/src/util/collection.ts +1 -1
- package/src/util/createAbsoluteFeature.ts +155 -0
- package/src/util/displayQuality/displayQuality.ts +7 -8
- package/src/util/editor/createFeatureSession.ts +12 -12
- package/src/util/editor/editFeaturesSession.ts +6 -4
- package/src/util/editor/editGeometrySession.ts +4 -3
- package/src/util/editor/editorHelpers.ts +14 -12
- package/src/util/editor/editorSessionHelpers.ts +13 -12
- package/src/util/editor/interactions/createCircleInteraction.ts +2 -3
- package/src/util/editor/interactions/createLineStringInteraction.ts +3 -4
- package/src/util/editor/interactions/createPointInteraction.ts +3 -4
- package/src/util/editor/interactions/createPolygonInteraction.ts +3 -4
- package/src/util/editor/interactions/creationSnapping.ts +4 -7
- package/src/util/editor/interactions/editFeaturesMouseOverInteraction.ts +2 -3
- package/src/util/editor/interactions/editGeometryMouseOverInteraction.ts +4 -4
- package/src/util/editor/interactions/ensureHandlerSelectionInteraction.ts +2 -3
- package/src/util/editor/interactions/insertVertexInteraction.ts +3 -4
- package/src/util/editor/interactions/layerSnapping.ts +6 -8
- package/src/util/editor/interactions/mapInteractionController.ts +5 -3
- package/src/util/editor/interactions/removeVertexInteraction.ts +4 -4
- package/src/util/editor/interactions/rightClickInteraction.ts +2 -3
- package/src/util/editor/interactions/segmentLengthInteraction.ts +2 -3
- package/src/util/editor/interactions/selectFeatureMouseOverInteraction.ts +15 -14
- package/src/util/editor/interactions/selectMultiFeatureInteraction.ts +9 -9
- package/src/util/editor/interactions/selectSingleFeatureInteraction.ts +5 -7
- package/src/util/editor/interactions/translateVertexInteraction.ts +4 -4
- package/src/util/editor/interactions/translationSnapping.ts +4 -7
- package/src/util/editor/selectFeaturesSession.ts +5 -8
- package/src/util/editor/snappingHelpers.ts +21 -20
- package/src/util/editor/transformation/create2DHandlers.ts +1 -1
- package/src/util/editor/transformation/create3DHandlers.ts +3 -3
- package/src/util/editor/transformation/extrudeInteraction.ts +5 -5
- package/src/util/editor/transformation/rotateInteraction.ts +7 -6
- package/src/util/editor/transformation/scaleInteraction.ts +7 -6
- package/src/util/editor/transformation/transformationHandler.ts +3 -3
- package/src/util/editor/transformation/translateInteraction.ts +7 -11
- package/src/util/exclusiveManager.ts +1 -1
- package/src/util/featureconverter/arcToCesium.ts +4 -6
- package/src/util/featureconverter/circleToCesium.ts +3 -5
- package/src/util/featureconverter/clampedPrimitive.ts +6 -5
- package/src/util/featureconverter/convert.ts +22 -24
- package/src/util/featureconverter/extent3D.ts +3 -3
- package/src/util/featureconverter/lineStringToCesium.ts +7 -7
- package/src/util/featureconverter/pointHelpers.ts +10 -11
- package/src/util/featureconverter/pointToCesium.ts +18 -44
- package/src/util/featureconverter/polygonToCesium.ts +3 -5
- package/src/util/featureconverter/storeyHelpers.ts +2 -2
- package/src/util/featureconverter/vectorGeometryFactory.ts +41 -39
- package/src/util/featureconverter/vectorHeightInfo.ts +60 -30
- package/src/util/flight/flightAnchor.ts +4 -3
- package/src/util/flight/flightCollection.ts +3 -2
- package/src/util/flight/flightHelpers.ts +1 -1
- package/src/util/flight/flightInstance.ts +7 -4
- package/src/util/flight/flightPlayer.ts +2 -2
- package/src/util/flight/flightVisualizer.ts +2 -2
- package/src/util/geometryHelpers.ts +3 -135
- package/src/util/hiddenObjects.ts +3 -4
- package/src/util/indexedCollection.ts +1 -1
- package/src/util/isMobile.ts +2 -1
- package/src/util/layerCollection.ts +7 -2
- package/src/util/locale.ts +0 -1
- package/src/util/mapCollection.ts +104 -47
- package/src/util/overrideCollection.ts +4 -5
- package/src/util/projection.ts +3 -7
- package/src/util/renderScreenshot.ts +2 -2
- package/src/util/rotation.ts +3 -4
- package/src/util/urlHelpers.ts +0 -1
- package/src/util/vcsTemplate.ts +6 -5
- package/src/util/viewpoint.ts +20 -3
- package/src/vcsApp.ts +42 -42
- package/src/vcsEvent.ts +1 -1
- package/src/vcsModuleHelpers.ts +4 -3
- package/src/vectorCluster/vectorClusterCesiumContext.ts +8 -9
- package/src/vectorCluster/vectorClusterGroup.ts +26 -16
- package/src/vectorCluster/vectorClusterGroupCesiumImpl.ts +10 -10
- package/src/vectorCluster/vectorClusterGroupCollection.ts +1 -1
- package/src/vectorCluster/vectorClusterGroupImpl.ts +5 -5
- package/src/vectorCluster/vectorClusterGroupObliqueImpl.ts +4 -6
- package/src/vectorCluster/vectorClusterGroupOpenlayersImpl.ts +2 -2
- package/src/vectorCluster/vectorClusterStyleItem.ts +5 -3
- package/src/vectorCluster/vectorClusterSymbols.ts +0 -1
- package/src/workers/panoramaImageWorker.ts +50 -0
package/src/layer/czmlLayer.ts
CHANGED
|
@@ -38,7 +38,7 @@ class CzmlLayer extends DataSourceLayer {
|
|
|
38
38
|
/**
|
|
39
39
|
* A Promise resolving with the DataSourceLayer on load
|
|
40
40
|
*/
|
|
41
|
-
loaded
|
|
41
|
+
loaded = new Promise<void>((resolve, reject) => {
|
|
42
42
|
this._loadedResolve = resolve;
|
|
43
43
|
this._loadedReject = reject;
|
|
44
44
|
});
|
|
@@ -74,7 +74,7 @@ class CzmlLayer extends DataSourceLayer {
|
|
|
74
74
|
.then(() => {
|
|
75
75
|
this._loadedResolve();
|
|
76
76
|
})
|
|
77
|
-
.catch((err) => {
|
|
77
|
+
.catch((err: unknown) => {
|
|
78
78
|
this._loadedReject(err as Error);
|
|
79
79
|
});
|
|
80
80
|
}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} from '@vcmap-cesium/engine';
|
|
6
|
-
import Layer, { LayerImplementationOptions } from './layer.js';
|
|
1
|
+
import type { DataSourceClock, Entity } from '@vcmap-cesium/engine';
|
|
2
|
+
import { EntityCollection } from '@vcmap-cesium/engine';
|
|
3
|
+
import type { LayerImplementationOptions } from './layer.js';
|
|
4
|
+
import Layer from './layer.js';
|
|
7
5
|
import CesiumMap from '../map/cesiumMap.js';
|
|
8
6
|
import DataSourceCesiumImpl from './cesium/dataSourceCesiumImpl.js';
|
|
9
7
|
import { vcsLayerName } from './layerSymbols.js';
|
|
@@ -3,12 +3,14 @@ import Style, { type StyleFunction } from 'ol/style/Style.js';
|
|
|
3
3
|
import { check, oneOf } from '@vcsuite/check';
|
|
4
4
|
import { parseInteger } from '@vcsuite/parsers';
|
|
5
5
|
import { SplitDirection } from '@vcmap-cesium/engine';
|
|
6
|
-
import
|
|
6
|
+
import type {
|
|
7
7
|
LayerImplementationOptions,
|
|
8
8
|
LayerOptions,
|
|
9
9
|
SplitLayer,
|
|
10
10
|
} from './layer.js';
|
|
11
|
-
import
|
|
11
|
+
import Layer from './layer.js';
|
|
12
|
+
import type { StyleItemOptions } from '../style/styleItem.js';
|
|
13
|
+
import StyleItem from '../style/styleItem.js';
|
|
12
14
|
import VectorStyleItem, {
|
|
13
15
|
type VectorStyleItemOptions,
|
|
14
16
|
} from '../style/vectorStyleItem.js';
|
|
@@ -70,7 +72,7 @@ class FeatureLayer<
|
|
|
70
72
|
/**
|
|
71
73
|
* An event, called when the style of the layer changes. Is passed the new style item as its value.
|
|
72
74
|
*/
|
|
73
|
-
readonly styleChanged
|
|
75
|
+
readonly styleChanged = new VcsEvent<StyleItem>();
|
|
74
76
|
|
|
75
77
|
/**
|
|
76
78
|
* a height offset for rendering of a balloon for a feature of this layer.
|
|
@@ -82,7 +84,7 @@ class FeatureLayer<
|
|
|
82
84
|
/**
|
|
83
85
|
* raised if the split direction changes, is passed the split direction as its only argument
|
|
84
86
|
*/
|
|
85
|
-
readonly splitDirectionChanged
|
|
87
|
+
readonly splitDirectionChanged = new VcsEvent<SplitDirection>();
|
|
86
88
|
|
|
87
89
|
/**
|
|
88
90
|
* FeatureVisibility tracks the highlighting and hiding of features on this layer
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { HighlightStyleType } from './featureVisibility.js';
|
|
2
|
+
import FeatureVisibility from './featureVisibility.js';
|
|
2
3
|
import type FeatureStoreLayerChanges from './featureStoreLayerChanges.js';
|
|
3
4
|
|
|
4
5
|
export default class FeatureStoreFeatureVisibility extends FeatureVisibility {
|
|
@@ -3,13 +3,15 @@ import type { Feature as GeojsonFeature, FeatureCollection } from 'geojson';
|
|
|
3
3
|
import { SplitDirection } from '@vcmap-cesium/engine';
|
|
4
4
|
import VectorSource from 'ol/source/Vector.js';
|
|
5
5
|
import { createEmpty, extend as extendExtent } from 'ol/extent.js';
|
|
6
|
-
import
|
|
6
|
+
import type { StyleFunction } from 'ol/style/Style.js';
|
|
7
|
+
import type Style from 'ol/style/Style.js';
|
|
7
8
|
import type { GeoJSONObject } from 'ol/format/GeoJSON.js';
|
|
8
9
|
|
|
9
|
-
import
|
|
10
|
+
import type {
|
|
10
11
|
VectorImplementationOptions,
|
|
11
12
|
VectorOptions,
|
|
12
13
|
} from './vectorLayer.js';
|
|
14
|
+
import VectorLayer from './vectorLayer.js';
|
|
13
15
|
import { featureStoreStateSymbol } from './featureStoreLayerState.js';
|
|
14
16
|
import { parseGeoJSON } from './geojsonHelpers.js';
|
|
15
17
|
import { mercatorProjection } from '../util/projection.js';
|
|
@@ -30,10 +32,8 @@ import CesiumTilesetCesiumImpl, {
|
|
|
30
32
|
import CesiumMap from '../map/cesiumMap.js';
|
|
31
33
|
import OpenlayersMap from '../map/openlayersMap.js';
|
|
32
34
|
import ObliqueMap from '../map/obliqueMap.js';
|
|
33
|
-
import
|
|
34
|
-
|
|
35
|
-
vcsMetaVersion,
|
|
36
|
-
} from './vectorProperties.js';
|
|
35
|
+
import type { VcsMeta } from './vectorProperties.js';
|
|
36
|
+
import VectorProperties, { vcsMetaVersion } from './vectorProperties.js';
|
|
37
37
|
import VectorOpenlayersImpl from './openlayers/vectorOpenlayersImpl.js';
|
|
38
38
|
import DeclarativeStyleItem from '../style/declarativeStyleItem.js';
|
|
39
39
|
import VectorObliqueImpl from './oblique/vectorObliqueImpl.js';
|
|
@@ -42,9 +42,9 @@ import { isMobile } from '../util/isMobile.js';
|
|
|
42
42
|
import { layerClassRegistry } from '../classRegistry.js';
|
|
43
43
|
import { requestJson } from '../util/fetch.js';
|
|
44
44
|
import { vcsLayerName } from './layerSymbols.js';
|
|
45
|
-
import StyleItem from '../style/styleItem.js';
|
|
46
|
-
import VcsMap from '../map/vcsMap.js';
|
|
47
|
-
import VectorCesiumImpl from './cesium/vectorCesiumImpl.js';
|
|
45
|
+
import type StyleItem from '../style/styleItem.js';
|
|
46
|
+
import type VcsMap from '../map/vcsMap.js';
|
|
47
|
+
import type VectorCesiumImpl from './cesium/vectorCesiumImpl.js';
|
|
48
48
|
import FeatureStoreFeatureVisibility from './featureStoreFeatureVisibility.js';
|
|
49
49
|
|
|
50
50
|
export type FeatureStoreStaticRepresentation = {
|
|
@@ -460,7 +460,7 @@ class FeatureStoreLayer extends VectorLayer {
|
|
|
460
460
|
}
|
|
461
461
|
});
|
|
462
462
|
})
|
|
463
|
-
.catch((err) => {
|
|
463
|
+
.catch((err: unknown) => {
|
|
464
464
|
this.getLogger().error(
|
|
465
465
|
`failed to set two dims editing: ${String(err)}`,
|
|
466
466
|
);
|
|
@@ -480,9 +480,13 @@ class FeatureStoreLayer extends VectorLayer {
|
|
|
480
480
|
? extent.getCoordinatesInProjection(mercatorProjection)
|
|
481
481
|
: createEmpty();
|
|
482
482
|
if (this.staticRepresentation.threeDim) {
|
|
483
|
-
const threeDImpl = this.getImplementations().find(
|
|
484
|
-
|
|
485
|
-
|
|
483
|
+
const threeDImpl = this.getImplementations().find(
|
|
484
|
+
(impl): impl is CesiumTilesetCesiumImpl => {
|
|
485
|
+
return !!(
|
|
486
|
+
impl instanceof CesiumTilesetCesiumImpl && impl.cesium3DTileset
|
|
487
|
+
);
|
|
488
|
+
},
|
|
489
|
+
);
|
|
486
490
|
|
|
487
491
|
if (threeDImpl?.cesium3DTileset) {
|
|
488
492
|
const threeDimExtent = getExtentFromTileset(threeDImpl.cesium3DTileset);
|
|
@@ -549,7 +553,7 @@ class FeatureStoreLayer extends VectorLayer {
|
|
|
549
553
|
this.addFeatures(features);
|
|
550
554
|
return features[0];
|
|
551
555
|
})
|
|
552
|
-
.catch((err) => {
|
|
556
|
+
.catch((err: unknown) => {
|
|
553
557
|
this.getLogger().error((err as Error).message);
|
|
554
558
|
}) as Promise<Feature>;
|
|
555
559
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { unByKey } from 'ol/Observable.js';
|
|
2
2
|
import Feature from 'ol/Feature.js';
|
|
3
|
-
import { EventsKey } from 'ol/events.js';
|
|
3
|
+
import type { EventsKey } from 'ol/events.js';
|
|
4
4
|
import type { VectorSourceEvent } from 'ol/source/Vector.js';
|
|
5
5
|
import type {
|
|
6
6
|
Feature as GeojsonFeature,
|
|
@@ -120,13 +120,13 @@ class FeatureStoreLayerChanges extends VcsObject {
|
|
|
120
120
|
removefeature: null,
|
|
121
121
|
};
|
|
122
122
|
|
|
123
|
-
private _addedFeatures
|
|
123
|
+
private _addedFeatures = new Set<Feature>();
|
|
124
124
|
|
|
125
|
-
private _editedFeatures
|
|
125
|
+
private _editedFeatures = new Set<Feature>();
|
|
126
126
|
|
|
127
|
-
private _removedFeatures
|
|
127
|
+
private _removedFeatures = new Set<Feature>();
|
|
128
128
|
|
|
129
|
-
private _convertedFeatures
|
|
129
|
+
private _convertedFeatures = new Set<Feature>();
|
|
130
130
|
|
|
131
131
|
changed = new VcsEvent<void>();
|
|
132
132
|
|
|
@@ -265,7 +265,7 @@ class FeatureStoreLayerChanges extends VcsObject {
|
|
|
265
265
|
.then(() => {
|
|
266
266
|
this._resetValues();
|
|
267
267
|
})
|
|
268
|
-
.catch((err) => {
|
|
268
|
+
.catch((err: unknown) => {
|
|
269
269
|
this.getLogger().error(String(err));
|
|
270
270
|
this._resetValues();
|
|
271
271
|
});
|
|
@@ -291,7 +291,7 @@ class FeatureStoreLayerChanges extends VcsObject {
|
|
|
291
291
|
this.layer.removeFeaturesById(idArray);
|
|
292
292
|
this.layer.addFeatures(features);
|
|
293
293
|
})
|
|
294
|
-
.catch((err) => {
|
|
294
|
+
.catch((err: unknown) => {
|
|
295
295
|
this.getLogger().error(
|
|
296
296
|
'failed to reset feature, giving up',
|
|
297
297
|
String(err),
|
|
@@ -6,7 +6,8 @@ import {
|
|
|
6
6
|
} from '@vcmap-cesium/engine';
|
|
7
7
|
import { is } from '@vcsuite/check';
|
|
8
8
|
import Feature from 'ol/Feature.js';
|
|
9
|
-
import
|
|
9
|
+
import type { StyleFunction } from 'ol/style/Style.js';
|
|
10
|
+
import Style from 'ol/style/Style.js';
|
|
10
11
|
|
|
11
12
|
import VectorStyleItem, { fromCesiumColor } from '../style/vectorStyleItem.js';
|
|
12
13
|
import VcsEvent from '../vcsEvent.js';
|
|
@@ -231,7 +232,7 @@ class FeatureVisibility {
|
|
|
231
232
|
* An event raised when the hidden or highlighted ids change. Is called with
|
|
232
233
|
* {@link FeatureVisibilityEvent} as its only argument
|
|
233
234
|
*/
|
|
234
|
-
changed
|
|
235
|
+
changed = new VcsEvent<FeatureVisibilityEvent>();
|
|
235
236
|
|
|
236
237
|
/**
|
|
237
238
|
* highlights a number of features by ID (import("@vcmap-cesium/engine").Cesium3DTileFeature|ol/Feature) with the given color.
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import Feature from 'ol/Feature.js';
|
|
1
|
+
import type Feature from 'ol/Feature.js';
|
|
2
2
|
import { fromFeature } from 'flatgeobuf/lib/mjs/ol/feature.js';
|
|
3
|
+
import { NODE_ITEM_BYTE_LEN } from 'flatgeobuf/lib/mjs/packedrtree.js';
|
|
3
4
|
import { HttpReader } from 'flatgeobuf/lib/mjs/http-reader.js';
|
|
4
|
-
import Projection
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from '../util/projection.js';
|
|
8
|
-
import Extent from '../util/extent.js';
|
|
5
|
+
import type Projection from '../util/projection.js';
|
|
6
|
+
import { mercatorProjection, parseEPSGCode } from '../util/projection.js';
|
|
7
|
+
import type Extent from '../util/extent.js';
|
|
9
8
|
import { alreadyTransformedToMercator } from './vectorSymbols.js';
|
|
10
9
|
|
|
11
10
|
export async function getValidReader(
|
|
@@ -56,3 +55,44 @@ export async function getOlFeatures(
|
|
|
56
55
|
|
|
57
56
|
return features;
|
|
58
57
|
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Values in data projection!
|
|
61
|
+
*/
|
|
62
|
+
export type PackedRTreeNode = {
|
|
63
|
+
minX: number;
|
|
64
|
+
minY: number;
|
|
65
|
+
maxX: number;
|
|
66
|
+
maxY: number;
|
|
67
|
+
offset: number;
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
function readNode(dataView: DataView, offset: number): PackedRTreeNode {
|
|
71
|
+
const minX = dataView.getFloat64(offset, true);
|
|
72
|
+
const minY = dataView.getFloat64(offset + 8, true);
|
|
73
|
+
const maxX = dataView.getFloat64(offset + 16, true);
|
|
74
|
+
const maxY = dataView.getFloat64(offset + 24, true);
|
|
75
|
+
const nodeOffset = dataView.getUint32(offset + 32, true);
|
|
76
|
+
|
|
77
|
+
return { minX, minY, maxX, maxY, offset: nodeOffset };
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Extracts the root node from the packed hilbert tree. The data is in data projection.
|
|
82
|
+
* @param reader
|
|
83
|
+
*/
|
|
84
|
+
export async function getRootNode(
|
|
85
|
+
reader: HttpReader,
|
|
86
|
+
): Promise<PackedRTreeNode> {
|
|
87
|
+
const lengthBeforeTree = reader.lengthBeforeTree();
|
|
88
|
+
|
|
89
|
+
// @ts-expect-error: not actually private
|
|
90
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-call,@typescript-eslint/no-unsafe-member-access
|
|
91
|
+
const buffer = (await reader.headerClient.getRange(
|
|
92
|
+
lengthBeforeTree,
|
|
93
|
+
NODE_ITEM_BYTE_LEN,
|
|
94
|
+
0,
|
|
95
|
+
'index',
|
|
96
|
+
)) as ArrayBuffer;
|
|
97
|
+
return readNode(new DataView(buffer), 0);
|
|
98
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { VectorOptions } from './vectorLayer.js';
|
|
2
|
+
import VectorLayer from './vectorLayer.js';
|
|
2
3
|
import { wgs84Projection } from '../util/projection.js';
|
|
3
4
|
import { layerClassRegistry } from '../classRegistry.js';
|
|
4
5
|
import Extent from '../util/extent.js';
|
|
@@ -19,16 +19,17 @@ import Projection, {
|
|
|
19
19
|
mercatorProjection,
|
|
20
20
|
wgs84Projection,
|
|
21
21
|
} from '../util/projection.js';
|
|
22
|
+
import type { VectorStyleItemOptions } from '../style/vectorStyleItem.js';
|
|
22
23
|
import VectorStyleItem, {
|
|
23
24
|
defaultVectorStyle,
|
|
24
|
-
VectorStyleItemOptions,
|
|
25
25
|
vectorStyleSymbol,
|
|
26
26
|
} from '../style/vectorStyleItem.js';
|
|
27
27
|
import { parseColor } from '../style/styleHelpers.js';
|
|
28
28
|
import { featureStoreStateSymbol } from './featureStoreLayerState.js';
|
|
29
29
|
import { embedIconsInStyle } from '../style/writeStyle.js';
|
|
30
30
|
import DeclarativeStyleItem from '../style/declarativeStyleItem.js';
|
|
31
|
-
import { VcsMeta
|
|
31
|
+
import type { VcsMeta } from './vectorProperties.js';
|
|
32
|
+
import { vcsMetaVersion } from './vectorProperties.js';
|
|
32
33
|
import Extent3D from '../util/featureconverter/extent3D.js';
|
|
33
34
|
import {
|
|
34
35
|
circleFromCenterRadius,
|
|
@@ -159,6 +160,8 @@ function readGeometry(
|
|
|
159
160
|
options: GeoJSONinternalReadOptions,
|
|
160
161
|
): Feature {
|
|
161
162
|
const geometry = getFormat().readGeometry(geometryObj, options.formatOptions);
|
|
163
|
+
// fairly ugly code, but legacy
|
|
164
|
+
// eslint-disable-next-line @typescript-eslint/no-base-to-string
|
|
162
165
|
if (String(options.formatOptions?.featureProjection) === 'EPSG:3857') {
|
|
163
166
|
geometry[alreadyTransformedToMercator] = true;
|
|
164
167
|
}
|
|
@@ -254,11 +257,12 @@ function readFeature(
|
|
|
254
257
|
const coordinates = geometry.getCoordinates();
|
|
255
258
|
geometry = circleFromCenterRadius(coordinates, radius);
|
|
256
259
|
}
|
|
260
|
+
// eslint-disable-next-line @typescript-eslint/no-base-to-string
|
|
257
261
|
if (String(options.formatOptions?.featureProjection) === 'EPSG:3857') {
|
|
258
262
|
geometry[alreadyTransformedToMercator] = true;
|
|
259
263
|
}
|
|
260
264
|
|
|
261
|
-
featureObj.vcsMeta = featureObj.vcsMeta ||
|
|
265
|
+
featureObj.vcsMeta = featureObj.vcsMeta || { version: vcsMetaVersion };
|
|
262
266
|
const { properties } = featureObj;
|
|
263
267
|
if (
|
|
264
268
|
properties &&
|
|
@@ -339,11 +343,10 @@ export function parseGeoJSON(
|
|
|
339
343
|
}
|
|
340
344
|
|
|
341
345
|
if (geoJSON.type === 'FeatureCollection') {
|
|
342
|
-
geoJSON.vcsMeta =
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
} as VcsMeta);
|
|
346
|
+
geoJSON.vcsMeta = geoJSON.vcsMeta || {
|
|
347
|
+
version: vcsMetaVersion,
|
|
348
|
+
embeddedIcons: geoJSON.vcsEmbeddedIcons,
|
|
349
|
+
};
|
|
347
350
|
|
|
348
351
|
let style;
|
|
349
352
|
if (geoJSON.vcsMeta.embeddedIcons) {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { GeoJSONFeature } from 'ol/format/GeoJSON.js';
|
|
2
|
-
import { FeatureCollection } from 'geojson';
|
|
3
|
-
import
|
|
2
|
+
import type { FeatureCollection } from 'geojson';
|
|
3
|
+
import type { VectorOptions } from './vectorLayer.js';
|
|
4
|
+
import VectorLayer from './vectorLayer.js';
|
|
4
5
|
import { parseGeoJSON, writeGeoJSONFeature } from './geojsonHelpers.js';
|
|
5
6
|
import Projection, { wgs84Projection } from '../util/projection.js';
|
|
6
7
|
import { layerClassRegistry } from '../classRegistry.js';
|
|
@@ -88,12 +89,14 @@ class GeoJSONLayer extends VectorLayer {
|
|
|
88
89
|
if (this.url) {
|
|
89
90
|
const init = getInitForUrl(this.url, this.headers);
|
|
90
91
|
this._dataFetchedPromise = requestJson(this.url, init)
|
|
91
|
-
.then((data) =>
|
|
92
|
-
|
|
92
|
+
.then((data) => {
|
|
93
|
+
this._parseGeojsonData(data as FeatureCollection);
|
|
94
|
+
})
|
|
95
|
+
.catch((err: unknown) => {
|
|
93
96
|
this.getLogger().warning(
|
|
94
97
|
`Could not send request for loading layer content (${String(err)})`,
|
|
95
98
|
);
|
|
96
|
-
return Promise.reject(err);
|
|
99
|
+
return Promise.reject(err as Error);
|
|
97
100
|
});
|
|
98
101
|
} else {
|
|
99
102
|
this._dataFetchedPromise = Promise.resolve();
|
package/src/layer/globalHider.ts
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { check } from '@vcsuite/check';
|
|
2
|
+
import type {
|
|
3
|
+
HighlightableFeature,
|
|
4
|
+
FeatureVisibilityEvent,
|
|
5
|
+
} from './featureVisibility.js';
|
|
2
6
|
import {
|
|
3
7
|
globalHidden,
|
|
4
8
|
hideFeature,
|
|
5
9
|
cacheOriginalStyle,
|
|
6
10
|
showFeature,
|
|
7
11
|
FeatureVisibilityAction,
|
|
8
|
-
HighlightableFeature,
|
|
9
|
-
FeatureVisibilityEvent,
|
|
10
12
|
} from './featureVisibility.js';
|
|
11
13
|
import VcsEvent from '../vcsEvent.js';
|
|
12
14
|
|
|
@@ -28,7 +30,7 @@ class GlobalHider {
|
|
|
28
30
|
* An event raised when the hidden ids change. Is called with
|
|
29
31
|
* {@link FeatureVisibilityEvent} as its only argument
|
|
30
32
|
*/
|
|
31
|
-
changed
|
|
33
|
+
changed = new VcsEvent<FeatureVisibilityEvent>();
|
|
32
34
|
|
|
33
35
|
/**
|
|
34
36
|
* Add a tick to the hide count, hidding the features if they are not already hidden
|
package/src/layer/layer.ts
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
|
+
import type { SplitDirection } from '@vcmap-cesium/engine';
|
|
1
2
|
import deepEqual from 'fast-deep-equal';
|
|
2
3
|
import { check, maybe, oneOf, optional, recordOf } from '@vcsuite/check';
|
|
3
4
|
import { parseBoolean, parseInteger } from '@vcsuite/parsers';
|
|
4
|
-
import
|
|
5
|
+
import type { VcsObjectOptions } from '../vcsObject.js';
|
|
6
|
+
import VcsObject from '../vcsObject.js';
|
|
5
7
|
import Extent, { type ExtentOptions } from '../util/extent.js';
|
|
6
8
|
import LayerState from './layerState.js';
|
|
7
9
|
import VcsEvent from '../vcsEvent.js';
|
|
8
10
|
import { layerClassRegistry } from '../classRegistry.js';
|
|
9
11
|
import GlobalHider from './globalHider.js';
|
|
10
|
-
import VcsMap from '../map/vcsMap.js';
|
|
11
|
-
import LayerImplementation from './layerImplementation.js';
|
|
12
|
-
import AbstractFeatureProvider from '../featureProvider/abstractFeatureProvider.js';
|
|
12
|
+
import type VcsMap from '../map/vcsMap.js';
|
|
13
|
+
import type LayerImplementation from './layerImplementation.js';
|
|
14
|
+
import type AbstractFeatureProvider from '../featureProvider/abstractFeatureProvider.js';
|
|
13
15
|
|
|
14
16
|
export type CopyrightOptions = {
|
|
15
17
|
provider?: string;
|
|
@@ -277,7 +279,7 @@ class Layer<
|
|
|
277
279
|
if (this._url !== url) {
|
|
278
280
|
const currentValue = this._url;
|
|
279
281
|
this._url = url;
|
|
280
|
-
this.reload().catch((err) => {
|
|
282
|
+
this.reload().catch((err: unknown) => {
|
|
281
283
|
this.getLogger().error('failed to reload after URL setting');
|
|
282
284
|
this.getLogger().error(String(err));
|
|
283
285
|
this._url = currentValue;
|
|
@@ -390,7 +392,7 @@ class Layer<
|
|
|
390
392
|
typeof this._url === 'object' &&
|
|
391
393
|
this._url[this._locale]
|
|
392
394
|
) {
|
|
393
|
-
this.reload().catch((err) => {
|
|
395
|
+
this.reload().catch((err: unknown) => {
|
|
394
396
|
this.getLogger().error('failed to reload after setting locale');
|
|
395
397
|
this.getLogger().error(String(err));
|
|
396
398
|
});
|
|
@@ -403,7 +405,7 @@ class Layer<
|
|
|
403
405
|
* @param _map Map
|
|
404
406
|
* @returns return the specific implementation
|
|
405
407
|
*/
|
|
406
|
-
// eslint-disable-next-line class-methods-use-this
|
|
408
|
+
// eslint-disable-next-line class-methods-use-this,@typescript-eslint/no-unused-vars
|
|
407
409
|
createImplementationsForMap(_map: VcsMap): I[] {
|
|
408
410
|
return [];
|
|
409
411
|
}
|
|
@@ -413,7 +415,7 @@ class Layer<
|
|
|
413
415
|
* @param map initialized Map
|
|
414
416
|
* @returns return the specific implementation
|
|
415
417
|
*/
|
|
416
|
-
getImplementationsForMap
|
|
418
|
+
getImplementationsForMap(map: VcsMap): I[] {
|
|
417
419
|
if (!this._implementations.has(map)) {
|
|
418
420
|
if (this.isSupported(map)) {
|
|
419
421
|
this._implementations.set(map, this.createImplementationsForMap(map));
|
|
@@ -611,9 +613,9 @@ class Layer<
|
|
|
611
613
|
}
|
|
612
614
|
|
|
613
615
|
if (this._state === LayerState.INACTIVE) {
|
|
614
|
-
this._loadingPromise = this._activate().catch((err) => {
|
|
616
|
+
this._loadingPromise = this._activate().catch((err: unknown) => {
|
|
615
617
|
this._state = LayerState.INACTIVE;
|
|
616
|
-
return Promise.reject(err);
|
|
618
|
+
return Promise.reject(err as Error);
|
|
617
619
|
});
|
|
618
620
|
return this._loadingPromise;
|
|
619
621
|
}
|
|
@@ -725,10 +727,8 @@ class Layer<
|
|
|
725
727
|
}
|
|
726
728
|
|
|
727
729
|
export interface SplitLayer {
|
|
728
|
-
splitDirection:
|
|
729
|
-
splitDirectionChanged: VcsEvent<
|
|
730
|
-
import('@vcmap-cesium/engine').SplitDirection
|
|
731
|
-
>;
|
|
730
|
+
splitDirection: SplitDirection;
|
|
731
|
+
splitDirectionChanged: VcsEvent<SplitDirection>;
|
|
732
732
|
}
|
|
733
733
|
|
|
734
734
|
layerClassRegistry.registerClass(Layer.className, Layer);
|
|
@@ -96,6 +96,7 @@ export async function mercatorGeometryToImageGeometry(
|
|
|
96
96
|
inputSourceGeometry instanceof Circle
|
|
97
97
|
? fromCircle(inputSourceGeometry)
|
|
98
98
|
: inputSourceGeometry;
|
|
99
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
99
100
|
const coordinates = sourceGeometry.getCoordinates() as any[];
|
|
100
101
|
const flattenCoordinates = getFlatCoordinateReferences(
|
|
101
102
|
sourceGeometry,
|
|
@@ -150,6 +151,7 @@ export function imageGeometryToMercatorGeometry(
|
|
|
150
151
|
destinationGeometry: Geometry,
|
|
151
152
|
image: ObliqueImage,
|
|
152
153
|
): Promise<Geometry> {
|
|
154
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
153
155
|
const coordinates = sourceGeometry.getCoordinates() as any[];
|
|
154
156
|
const flattenCoordinates = getFlatCoordinateReferences(
|
|
155
157
|
sourceGeometry,
|
|
@@ -2,10 +2,10 @@ import { getLogger } from '@vcsuite/logger';
|
|
|
2
2
|
import VectorSource from 'ol/source/Vector.js';
|
|
3
3
|
import { unByKey } from 'ol/Observable.js';
|
|
4
4
|
import { Feature } from 'ol';
|
|
5
|
-
import { Extent as OLExtent } from 'ol/extent.js';
|
|
5
|
+
import type { Extent as OLExtent } from 'ol/extent.js';
|
|
6
6
|
import type { Geometry } from 'ol/geom.js';
|
|
7
7
|
import type { EventsKey } from 'ol/events.js';
|
|
8
|
-
import ObliqueMap from '../../map/obliqueMap.js';
|
|
8
|
+
import type ObliqueMap from '../../map/obliqueMap.js';
|
|
9
9
|
import {
|
|
10
10
|
actuallyIsCircle,
|
|
11
11
|
alreadyTransformedToImage,
|
|
@@ -196,7 +196,7 @@ export function createSourceObliqueSync(
|
|
|
196
196
|
}
|
|
197
197
|
if (originalFeature.getGeometry()?.[alreadyTransformedToImage]) {
|
|
198
198
|
convertToOblique(originalFeature, obliqueFeature)
|
|
199
|
-
.catch((
|
|
199
|
+
.catch(() => {
|
|
200
200
|
getLogger('SourceObliqueSync').warning(
|
|
201
201
|
`Failed to convert feature with id ${id} to oblique`,
|
|
202
202
|
);
|
|
@@ -207,7 +207,7 @@ export function createSourceObliqueSync(
|
|
|
207
207
|
} else {
|
|
208
208
|
updatingOblique[id] = setTimeout(() => {
|
|
209
209
|
convertToOblique(originalFeature, obliqueFeature)
|
|
210
|
-
.catch((
|
|
210
|
+
.catch(() => {
|
|
211
211
|
getLogger('SourceObliqueSync').warning(
|
|
212
212
|
`Failed to convert feature with id ${id} to oblique`,
|
|
213
213
|
);
|
|
@@ -243,7 +243,7 @@ export function createSourceObliqueSync(
|
|
|
243
243
|
originalGeometry,
|
|
244
244
|
map.collection!.getImageByName(imageName as string) as ObliqueImage,
|
|
245
245
|
)
|
|
246
|
-
.catch((
|
|
246
|
+
.catch(() => {
|
|
247
247
|
getLogger('SourceObliqueSync').warning(
|
|
248
248
|
`Failed to update feature with id ${id} mercator geometry`,
|
|
249
249
|
);
|
|
@@ -315,7 +315,7 @@ export function createSourceObliqueSync(
|
|
|
315
315
|
source.on('addfeature', (event) => {
|
|
316
316
|
const f = event.feature as Feature;
|
|
317
317
|
if (featureInExtent(f, currentExtent)) {
|
|
318
|
-
addFeature(f).catch((
|
|
318
|
+
addFeature(f).catch(() => {
|
|
319
319
|
getLogger('SourceObliqueSync').warning(
|
|
320
320
|
`Failed to add feature with id ${f.getId()!} to oblique source`,
|
|
321
321
|
);
|
|
@@ -332,7 +332,7 @@ export function createSourceObliqueSync(
|
|
|
332
332
|
!featureListeners.has(newFeatureId) &&
|
|
333
333
|
featureInExtent(f, currentExtent)
|
|
334
334
|
) {
|
|
335
|
-
addFeature(f).catch((
|
|
335
|
+
addFeature(f).catch(() => {
|
|
336
336
|
getLogger('SourceObliqueSync').warning(
|
|
337
337
|
`Failed to add feature with id ${newFeatureId} to oblique source`,
|
|
338
338
|
);
|
|
@@ -355,7 +355,7 @@ export function createSourceObliqueSync(
|
|
|
355
355
|
.getExtentOfCurrentImage()
|
|
356
356
|
.getCoordinatesInProjection(mercatorProjection);
|
|
357
357
|
source.forEachFeatureInExtent(currentExtent, (feature) => {
|
|
358
|
-
addFeature(feature).catch((
|
|
358
|
+
addFeature(feature).catch(() => {
|
|
359
359
|
getLogger('SourceObliqueSync').warning(
|
|
360
360
|
`Failed to add feature with id ${feature.getId()!} to oblique source`,
|
|
361
361
|
);
|
|
@@ -363,7 +363,7 @@ export function createSourceObliqueSync(
|
|
|
363
363
|
});
|
|
364
364
|
source.forEachFeature((feature) => {
|
|
365
365
|
if (feature.getGeometry()?.[alreadyTransformedToImage]) {
|
|
366
|
-
addFeature(feature).catch((
|
|
366
|
+
addFeature(feature).catch(() => {
|
|
367
367
|
getLogger('SourceObliqueSync').warning(
|
|
368
368
|
`Failed to add feature with id ${feature.getId()!} to oblique source`,
|
|
369
369
|
);
|
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
import VectorSource from 'ol/source/Vector.js';
|
|
1
|
+
import type VectorSource from 'ol/source/Vector.js';
|
|
2
2
|
import OLVectorLayer from 'ol/layer/Vector.js';
|
|
3
3
|
import type { SplitDirection } from '@vcmap-cesium/engine';
|
|
4
4
|
import LayerObliqueImpl from './layerObliqueImpl.js';
|
|
5
5
|
import { synchronizeFeatureVisibilityWithSource } from '../vectorHelpers.js';
|
|
6
|
-
import { FeatureLayerImplementation } from '../featureLayer.js';
|
|
6
|
+
import type { FeatureLayerImplementation } from '../featureLayer.js';
|
|
7
7
|
import type { VectorImplementationOptions } from '../vectorLayer.js';
|
|
8
8
|
import type ObliqueMap from '../../map/obliqueMap.js';
|
|
9
9
|
import type GlobalHider from '../globalHider.js';
|
|
10
10
|
import type StyleItem from '../../style/styleItem.js';
|
|
11
11
|
import type FeatureVisibility from '../featureVisibility.js';
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
SourceObliqueSync,
|
|
15
|
-
} from './sourceObliqueSync.js';
|
|
12
|
+
import type { SourceObliqueSync } from './sourceObliqueSync.js';
|
|
13
|
+
import { createSourceObliqueSync } from './sourceObliqueSync.js';
|
|
16
14
|
|
|
17
15
|
/**
|
|
18
16
|
* represents a specific vector layer for oblique.
|
|
@@ -60,7 +58,7 @@ class VectorObliqueImpl
|
|
|
60
58
|
});
|
|
61
59
|
}
|
|
62
60
|
|
|
63
|
-
// eslint-disable-next-line no-unused-vars
|
|
61
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
64
62
|
updateStyle(style: StyleItem, _silent?: boolean): void {
|
|
65
63
|
this.style = style;
|
|
66
64
|
if (this.initialized && this.olLayer) {
|
|
@@ -68,7 +66,7 @@ class VectorObliqueImpl
|
|
|
68
66
|
}
|
|
69
67
|
}
|
|
70
68
|
|
|
71
|
-
// eslint-disable-next-line class-methods-use-this
|
|
69
|
+
// eslint-disable-next-line class-methods-use-this,@typescript-eslint/no-unused-vars
|
|
72
70
|
updateSplitDirection(_splitDirection: SplitDirection): void {}
|
|
73
71
|
|
|
74
72
|
async activate(): Promise<void> {
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import { ImageryLayer
|
|
1
|
+
import type { ImageryLayer } from '@vcmap-cesium/engine';
|
|
2
|
+
import { SplitDirection } from '@vcmap-cesium/engine';
|
|
2
3
|
|
|
3
4
|
import { parseInteger, parseNumberRange } from '@vcsuite/parsers';
|
|
4
|
-
import Layer, { type
|
|
5
|
+
import Layer, { type SplitLayer, type LayerOptions } from './layer.js';
|
|
5
6
|
import OpenlayersMap from '../map/openlayersMap.js';
|
|
6
7
|
import CesiumMap from '../map/cesiumMap.js';
|
|
7
8
|
import OpenStreetMapOpenlayersImpl from './openlayers/openStreetMapOpenlayersImpl.js';
|
|
8
9
|
import OpenStreetMapCesiumImpl from './cesium/openStreetMapCesiumImpl.js';
|
|
9
10
|
import VcsEvent from '../vcsEvent.js';
|
|
10
11
|
import { layerClassRegistry } from '../classRegistry.js';
|
|
11
|
-
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} from './rasterLayer.js';
|
|
15
|
-
import VcsMap from '../map/vcsMap.js';
|
|
12
|
+
import type { RasterLayerImplementationOptions } from './rasterLayer.js';
|
|
13
|
+
import { TilingScheme } from './rasterLayer.js';
|
|
14
|
+
import type VcsMap from '../map/vcsMap.js';
|
|
16
15
|
|
|
17
16
|
export type OpenStreetMapOptions = LayerOptions & {
|
|
18
17
|
/**
|
|
@@ -76,7 +75,7 @@ class OpenStreetMapLayer
|
|
|
76
75
|
/**
|
|
77
76
|
* raised if the split direction changes, is passed the split direction as its only argument
|
|
78
77
|
*/
|
|
79
|
-
splitDirectionChanged
|
|
78
|
+
splitDirectionChanged = new VcsEvent<SplitDirection>();
|
|
80
79
|
|
|
81
80
|
/**
|
|
82
81
|
* The maximum level to load.
|