@vcmap/core 5.0.0-rc.5 → 5.0.0-rc.8
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 +3 -1
- package/index.d.ts +1668 -1704
- package/index.js +139 -139
- package/package.json +5 -7
- package/src/{vcs/vcm/category → category}/appBackedCategory.js +1 -1
- package/src/{vcs/vcm/category → category}/category.js +8 -8
- package/src/{vcs/vcm/category → category}/categoryCollection.js +0 -0
- package/src/{vcs/vcm/classRegistry.js → classRegistry.js} +1 -18
- package/src/{vcs/vcm/context.js → context.js} +0 -0
- package/src/{vcs/vcm/util/featureProvider → featureProvider}/abstractFeatureProvider.js +5 -5
- package/src/{vcs/vcm/util/featureProvider → featureProvider}/featureProviderHelpers.js +2 -2
- package/src/{vcs/vcm/util/featureProvider → featureProvider}/featureProviderSymbols.js +0 -0
- package/src/{vcs/vcm/util/featureProvider → featureProvider}/tileProviderFeatureProvider.js +2 -2
- package/src/{vcs/vcm/util/featureProvider → featureProvider}/wmsFeatureProvider.js +9 -8
- package/src/{vcs/vcm/globalCollections.js → globalCollections.js} +1 -5
- package/src/{vcs/vcm/interaction → interaction}/abstractInteraction.js +19 -17
- package/src/{vcs/vcm/interaction → interaction}/coordinateAtPixel.js +5 -8
- package/src/{vcs/vcm/interaction → interaction}/eventHandler.js +3 -3
- package/src/{vcs/vcm/interaction → interaction}/featureAtPixelInteraction.js +6 -19
- package/src/{vcs/vcm/interaction → interaction}/featureProviderInteraction.js +2 -13
- package/src/{vcs/vcm/interaction → interaction}/interactionChain.js +11 -31
- package/src/{vcs/vcm/interaction → interaction}/interactionType.js +0 -0
- package/src/{vcs/vcm/layer/cesium/cesiumTilesetCesium.js → layer/cesium/cesiumTilesetCesiumImpl.js} +3 -3
- package/src/{vcs/vcm/layer → layer}/cesium/clusterContext.js +0 -0
- package/src/{vcs/vcm/layer/cesium/dataSourceCesium.js → layer/cesium/dataSourceCesiumImpl.js} +5 -2
- package/src/{vcs/vcm/layer/cesium/openStreetMapCesium.js → layer/cesium/openStreetMapCesiumImpl.js} +6 -6
- package/src/{vcs/vcm/layer/cesium/pointCloudCesium.js → layer/cesium/pointCloudCesiumImpl.js} +6 -6
- package/src/{vcs/vcm/layer/cesium/rasterLayerCesium.js → layer/cesium/rasterLayerCesiumImpl.js} +3 -3
- package/src/{vcs/vcm/layer/cesium/singleImageCesium.js → layer/cesium/singleImageCesiumImpl.js} +5 -5
- package/src/{vcs/vcm/layer/cesium/terrainCesium.js → layer/cesium/terrainCesiumImpl.js} +4 -4
- package/src/{vcs/vcm/layer/cesium/tmsCesium.js → layer/cesium/tmsCesiumImpl.js} +6 -6
- package/src/{vcs/vcm/layer/cesium/vectorCesium.js → layer/cesium/vectorCesiumImpl.js} +3 -3
- package/src/{vcs/vcm/layer → layer}/cesium/vectorContext.js +0 -0
- package/src/{vcs/vcm/layer/cesium/vectorRasterTileCesium.js → layer/cesium/vectorRasterTileCesiumImpl.js} +5 -5
- package/src/{vcs/vcm/layer → layer}/cesium/vectorTileImageryProvider.js +1 -1
- package/src/{vcs/vcm/layer/cesium/wmsCesium.js → layer/cesium/wmsCesiumImpl.js} +6 -6
- package/src/{vcs/vcm/layer/cesium/wmtsCesium.js → layer/cesium/wmtsCesiumImpl.js} +6 -6
- package/src/{vcs/vcm/layer → layer}/cesium/x3dmHelper.js +0 -0
- package/src/{vcs/vcm/layer/cesiumTileset.js → layer/cesiumTilesetLayer.js} +18 -18
- package/src/{vcs/vcm/layer/czml.js → layer/czmlLayer.js} +9 -9
- package/src/{vcs/vcm/layer/dataSource.js → layer/dataSourceLayer.js} +10 -10
- package/src/{vcs/vcm/layer → layer}/featureLayer.js +6 -6
- package/src/{vcs/vcm/layer/featureStore.js → layer/featureStoreLayer.js} +43 -43
- package/src/{vcs/vcm/layer/featureStoreChanges.js → layer/featureStoreLayerChanges.js} +12 -12
- package/src/{vcs/vcm/layer/featureStoreState.js → layer/featureStoreLayerState.js} +1 -1
- package/src/{vcs/vcm/layer → layer}/featureVisibility.js +6 -5
- package/src/{vcs/vcm/layer → layer}/geojsonHelpers.js +13 -18
- package/src/{vcs/vcm/layer/geojson.js → layer/geojsonLayer.js} +11 -11
- package/src/{vcs/vcm/layer → layer}/globalHider.js +1 -11
- package/src/{vcs/vcm/layer → layer}/layer.js +3 -3
- package/src/{vcs/vcm/layer → layer}/layerImplementation.js +2 -2
- package/src/{vcs/vcm/layer → layer}/layerState.js +0 -0
- package/src/{vcs/vcm/layer → layer}/layerSymbols.js +0 -0
- package/src/{vcs/vcm/layer/oblique/layerOblique.js → layer/oblique/layerObliqueImpl.js} +4 -4
- package/src/{vcs/vcm/layer → layer}/oblique/obliqueHelpers.js +0 -0
- package/src/{vcs/vcm/layer/oblique/vectorOblique.js → layer/oblique/vectorObliqueImpl.js} +6 -6
- package/src/{vcs/vcm/layer/openStreetMap.js → layer/openStreetMapLayer.js} +19 -19
- package/src/{vcs/vcm/layer/openlayers/layerOpenlayers.js → layer/openlayers/layerOpenlayersImpl.js} +5 -5
- package/src/layer/openlayers/openStreetMapOpenlayersImpl.js +27 -0
- package/src/{vcs/vcm/layer/openlayers/rasterLayerOpenlayers.js → layer/openlayers/rasterLayerOpenlayersImpl.js} +9 -8
- package/src/{vcs/vcm/layer/openlayers/singleImageOpenlayers.js → layer/openlayers/singleImageOpenlayersImpl.js} +6 -6
- package/src/{vcs/vcm/layer/openlayers/tileDebugOpenlayers.js → layer/openlayers/tileDebugOpenlayersImpl.js} +5 -5
- package/src/{vcs/vcm/layer/openlayers/tmsOpenlayers.js → layer/openlayers/tmsOpenlayersImpl.js} +7 -7
- package/src/{vcs/vcm/layer/openlayers/vectorOpenlayers.js → layer/openlayers/vectorOpenlayersImpl.js} +6 -6
- package/src/{vcs/vcm/layer/openlayers/vectorTileOpenlayers.js → layer/openlayers/vectorTileOpenlayersImpl.js} +6 -6
- package/src/{vcs/vcm/layer/openlayers/wmsOpenlayers.js → layer/openlayers/wmsOpenlayersImpl.js} +7 -7
- package/src/{vcs/vcm/layer/openlayers/wmtsOpenlayers.js → layer/openlayers/wmtsOpenlayersImpl.js} +7 -7
- package/src/{vcs/vcm/layer/pointCloud.js → layer/pointCloudLayer.js} +18 -18
- package/src/{vcs/vcm/layer → layer}/rasterLayer.js +2 -2
- package/src/{vcs/vcm/layer/singleImage.js → layer/singleImageLayer.js} +15 -15
- package/src/{vcs/vcm/layer → layer}/terrainHelpers.js +0 -0
- package/src/{vcs/vcm/layer/terrain.js → layer/terrainLayer.js} +10 -10
- package/src/{vcs/vcm/layer → layer}/tileLoadedHelper.js +5 -5
- package/src/{vcs/vcm/layer → layer}/tileProvider/mvtTileProvider.js +1 -1
- package/src/{vcs/vcm/layer → layer}/tileProvider/staticGeojsonTileProvider.js +4 -4
- package/src/{vcs/vcm/layer → layer}/tileProvider/tileProvider.js +4 -4
- package/src/{vcs/vcm/layer → layer}/tileProvider/tileProviderFactory.js +2 -2
- package/src/{vcs/vcm/layer → layer}/tileProvider/urlTemplateTileProvider.js +2 -2
- package/src/{vcs/vcm/layer/tms.js → layer/tmsLayer.js} +16 -16
- package/src/{vcs/vcm/layer → layer}/vectorHelpers.js +1 -1
- package/src/{vcs/vcm/layer/vector.js → layer/vectorLayer.js} +27 -27
- package/src/{vcs/vcm/layer → layer}/vectorProperties.js +3 -3
- package/src/{vcs/vcm/layer → layer}/vectorSymbols.js +0 -0
- package/src/{vcs/vcm/layer/vectorTile.js → layer/vectorTileLayer.js} +19 -19
- package/src/{vcs/vcm/layer/wfs.js → layer/wfsLayer.js} +10 -10
- package/src/{vcs/vcm/layer → layer}/wmsHelpers.js +1 -1
- package/src/{vcs/vcm/layer/wms.js → layer/wmsLayer.js} +18 -18
- package/src/{vcs/vcm/layer/wmts.js → layer/wmtsLayer.js} +17 -17
- package/src/{vcs/vcm/maps → map}/baseOLMap.js +3 -3
- package/src/{vcs/vcm/maps → map}/cameraLimiter.js +1 -1
- package/src/{vcs/vcm/maps/cesium.js → map/cesiumMap.js} +13 -28
- package/src/{vcs/vcm/maps → map}/mapState.js +0 -0
- package/src/{vcs/vcm/maps/oblique.js → map/obliqueMap.js} +31 -45
- package/src/{vcs/vcm/maps/openlayers.js → map/openlayersMap.js} +14 -11
- package/src/{vcs/vcm/maps/map.js → map/vcsMap.js} +5 -5
- package/src/oblique/defaultObliqueCollection.js +62 -0
- package/src/{vcs/vcm/oblique → oblique}/helpers.js +1 -1
- package/src/{vcs/vcm/oblique/ObliqueCollection.js → oblique/obliqueCollection.js} +39 -10
- package/src/{vcs/vcm/oblique/ObliqueDataSet.js → oblique/obliqueDataSet.js} +1 -1
- package/src/{vcs/vcm/oblique/ObliqueImage.js → oblique/obliqueImage.js} +0 -0
- package/src/{vcs/vcm/oblique/ObliqueImageMeta.js → oblique/obliqueImageMeta.js} +2 -2
- package/src/{vcs/vcm/oblique/ObliqueProvider.js → oblique/obliqueProvider.js} +9 -6
- package/src/{vcs/vcm/oblique/ObliqueView.js → oblique/obliqueView.js} +31 -1
- package/src/{vcs/vcm/oblique/ObliqueViewDirection.js → oblique/obliqueViewDirection.js} +0 -0
- package/src/{vcs/vcm/oblique → oblique}/parseImageJson.js +3 -3
- package/src/ol/geom/circle.js +1 -1
- package/src/{vcs/vcm/util/style → style}/declarativeStyleItem.js +3 -3
- package/src/{vcs/vcm/util/style → style}/shapesCategory.js +0 -0
- package/src/{vcs/vcm/util/style → style}/styleFactory.js +2 -2
- package/src/{vcs/vcm/util/style → style}/styleHelpers.js +1 -1
- package/src/{vcs/vcm/util/style → style}/styleItem.js +4 -4
- package/src/{vcs/vcm/util/style → style}/vectorStyleItem.js +6 -6
- package/src/{vcs/vcm/util/style → style}/writeStyle.js +0 -0
- package/src/{vcs/vcm/util → util}/clipping/clippingObject.js +10 -10
- package/src/{vcs/vcm/util → util}/clipping/clippingObjectManager.js +2 -2
- package/src/{vcs/vcm/util → util}/clipping/clippingPlaneHelper.js +0 -0
- package/src/{vcs/vcm/util → util}/collection.js +1 -1
- package/src/{vcs/vcm/util → util}/dateTime.js +0 -0
- package/src/{vcs/vcm/util → util}/exclusiveManager.js +0 -0
- package/src/{vcs/vcm/util → util}/extent.js +1 -1
- package/src/{vcs/vcm/util → util}/featureconverter/circleToCesium.js +0 -0
- package/src/{vcs/vcm/util → util}/featureconverter/convert.js +0 -0
- package/src/{vcs/vcm/util → util}/featureconverter/extent3D.js +0 -0
- package/src/{vcs/vcm/util → util}/featureconverter/featureconverterHelper.js +1 -1
- package/src/{vcs/vcm/util → util}/featureconverter/lineStringToCesium.js +0 -0
- package/src/{vcs/vcm/util → util}/featureconverter/pointToCesium.js +1 -1
- package/src/{vcs/vcm/util → util}/featureconverter/polygonToCesium.js +1 -1
- package/src/{vcs/vcm/util → util}/fetch.js +0 -0
- package/src/{vcs/vcm/util → util}/geometryHelpers.js +0 -0
- package/src/{vcs/vcm/util → util}/indexedCollection.js +1 -1
- package/src/{vcs/vcm/util → util}/isMobile.js +0 -0
- package/src/{vcs/vcm/util → util}/layerCollection.js +1 -1
- package/src/{vcs/vcm/util → util}/locale.js +1 -1
- package/src/{vcs/vcm/util → util}/mapCollection.js +63 -21
- package/src/{vcs/vcm/util → util}/math.js +0 -0
- package/src/{vcs/vcm/util → util}/overrideCollection.js +1 -1
- package/src/{vcs/vcm/util → util}/projection.js +5 -21
- package/src/{vcs/vcm/util → util}/splitScreen.js +3 -3
- package/src/{vcs/vcm/util → util}/urlHelpers.js +0 -0
- package/src/{vcs/vcm/util → util}/viewpoint.js +2 -2
- package/src/{vcs/vcm/vcsApp.js → vcsApp.js} +18 -5
- package/src/{vcs/vcm/vcsAppContextHelpers.js → vcsAppContextHelpers.js} +2 -2
- package/src/{vcs/vcm/event/vcsEvent.js → vcsEvent.js} +2 -2
- package/src/{vcs/vcm/object.js → vcsObject.js} +1 -9
- package/src/vcs/vcm/layer/buildings.js +0 -17
- package/src/vcs/vcm/layer/openlayers/openStreetMapOpenlayers.js +0 -27
package/index.js
CHANGED
|
@@ -6,142 +6,142 @@ import './src/cesium/cesium3DTilePointFeature.js';
|
|
|
6
6
|
import './src/cesium/cesium3DTileFeature.js';
|
|
7
7
|
import './src/cesium/cesiumVcsCameraPrimitive.js';
|
|
8
8
|
|
|
9
|
-
export { default as AppBackedCategory } from './src/
|
|
10
|
-
export { default as Category } from './src/
|
|
11
|
-
export { default as CategoryCollection } from './src/
|
|
12
|
-
export { VcsClassRegistry, default as ClassRegistry } from './src/
|
|
13
|
-
export { default as Context } from './src/
|
|
14
|
-
export { default as
|
|
15
|
-
export {
|
|
16
|
-
export {
|
|
17
|
-
export { default as
|
|
18
|
-
export { default as
|
|
19
|
-
export {
|
|
20
|
-
export { default as
|
|
21
|
-
export { default as
|
|
22
|
-
export {
|
|
23
|
-
export { default as
|
|
24
|
-
export {
|
|
25
|
-
export { default as
|
|
26
|
-
export {
|
|
27
|
-
export { default as
|
|
28
|
-
export { default as
|
|
29
|
-
export { default as
|
|
30
|
-
export { default as
|
|
31
|
-
export { default as
|
|
32
|
-
export { default as
|
|
33
|
-
export { default as
|
|
34
|
-
export {
|
|
35
|
-
export { default as
|
|
36
|
-
export {
|
|
37
|
-
export { default as
|
|
38
|
-
export { default as
|
|
39
|
-
export { default as
|
|
40
|
-
export { default as
|
|
41
|
-
export { default as
|
|
42
|
-
export { default as
|
|
43
|
-
export { default as
|
|
44
|
-
export {
|
|
45
|
-
export { default as
|
|
46
|
-
export {
|
|
47
|
-
export {
|
|
48
|
-
export {
|
|
49
|
-
export {
|
|
50
|
-
export {
|
|
51
|
-
export {
|
|
52
|
-
export { default as
|
|
53
|
-
export { default as
|
|
54
|
-
export {
|
|
55
|
-
export { default as
|
|
56
|
-
export {
|
|
57
|
-
export {
|
|
58
|
-
export { default as
|
|
59
|
-
export {
|
|
60
|
-
export { default as
|
|
61
|
-
export { default as
|
|
62
|
-
export { default as
|
|
63
|
-
export { default as
|
|
64
|
-
export { default as
|
|
65
|
-
export { default as
|
|
66
|
-
export { default as
|
|
67
|
-
export { default as
|
|
68
|
-
export { default as
|
|
69
|
-
export {
|
|
70
|
-
export {
|
|
71
|
-
export { default as
|
|
72
|
-
export { default as
|
|
73
|
-
export {
|
|
74
|
-
export {
|
|
75
|
-
export {
|
|
76
|
-
export { default as
|
|
77
|
-
export {
|
|
78
|
-
export { default as
|
|
79
|
-
export {
|
|
80
|
-
export { default as
|
|
81
|
-
export { default as
|
|
82
|
-
export {
|
|
83
|
-
export {
|
|
84
|
-
export {
|
|
85
|
-
export { default as
|
|
86
|
-
export { default as
|
|
87
|
-
export {
|
|
88
|
-
export {
|
|
89
|
-
export { default as
|
|
90
|
-
export {
|
|
91
|
-
export {
|
|
92
|
-
export { default as
|
|
93
|
-
export { default as
|
|
94
|
-
export { default as
|
|
95
|
-
export {
|
|
96
|
-
export { default as
|
|
97
|
-
export { default as
|
|
98
|
-
export { default as
|
|
99
|
-
export {
|
|
100
|
-
export { default as
|
|
101
|
-
export {
|
|
102
|
-
export { default as
|
|
103
|
-
export { default as
|
|
104
|
-
export {
|
|
105
|
-
export {
|
|
106
|
-
export {
|
|
107
|
-
export { default as
|
|
108
|
-
export {
|
|
109
|
-
export {
|
|
110
|
-
export { default as
|
|
111
|
-
export {
|
|
112
|
-
export {
|
|
113
|
-
export {
|
|
114
|
-
export { default as
|
|
115
|
-
export {
|
|
116
|
-
export {
|
|
117
|
-
export { default as
|
|
118
|
-
export {
|
|
119
|
-
export {
|
|
120
|
-
export {
|
|
121
|
-
export {
|
|
122
|
-
export {
|
|
123
|
-
export {
|
|
124
|
-
export {
|
|
125
|
-
export {
|
|
126
|
-
export {
|
|
127
|
-
export {
|
|
128
|
-
export { default as
|
|
129
|
-
export {
|
|
130
|
-
export { default as
|
|
131
|
-
export {
|
|
132
|
-
export {
|
|
133
|
-
export {
|
|
134
|
-
export {
|
|
135
|
-
export {
|
|
136
|
-
export {
|
|
137
|
-
export {
|
|
138
|
-
export {
|
|
139
|
-
export {
|
|
140
|
-
export {
|
|
141
|
-
export {
|
|
142
|
-
export {
|
|
143
|
-
export {
|
|
144
|
-
export {
|
|
145
|
-
export {
|
|
146
|
-
export {
|
|
147
|
-
export {
|
|
9
|
+
export { default as AppBackedCategory } from './src/category/appBackedCategory.js';
|
|
10
|
+
export { default as Category } from './src/category/category.js';
|
|
11
|
+
export { default as CategoryCollection } from './src/category/categoryCollection.js';
|
|
12
|
+
export { VcsClassRegistry, default as ClassRegistry } from './src/classRegistry.js';
|
|
13
|
+
export { default as Context } from './src/context.js';
|
|
14
|
+
export { default as AbstractFeatureProvider } from './src/featureProvider/abstractFeatureProvider.js';
|
|
15
|
+
export { getGenericFeatureFromProvidedFeature } from './src/featureProvider/featureProviderHelpers.js';
|
|
16
|
+
export { isProvidedFeature, showProvidedFeature } from './src/featureProvider/featureProviderSymbols.js';
|
|
17
|
+
export { default as TileProviderFeatureProvider } from './src/featureProvider/tileProviderFeatureProvider.js';
|
|
18
|
+
export { getFormat, default as WMSFeatureProvider } from './src/featureProvider/wmsFeatureProvider.js';
|
|
19
|
+
export { styleCollection } from './src/globalCollections.js';
|
|
20
|
+
export { default as AbstractInteraction } from './src/interaction/abstractInteraction.js';
|
|
21
|
+
export { default as CoordinateAtPixel } from './src/interaction/coordinateAtPixel.js';
|
|
22
|
+
export { default as EventHandler } from './src/interaction/eventHandler.js';
|
|
23
|
+
export { default as FeatureAtPixelInteraction } from './src/interaction/featureAtPixelInteraction.js';
|
|
24
|
+
export { default as FeatureProviderInteraction } from './src/interaction/featureProviderInteraction.js';
|
|
25
|
+
export { default as InteractionChain } from './src/interaction/interactionChain.js';
|
|
26
|
+
export { BitCounter, ModificationKeyType, EventType, PointerKeyType, PointerEventType } from './src/interaction/interactionType.js';
|
|
27
|
+
export { cesiumTilesetLastUpdated, getExtentFromTileset, default as CesiumTilesetCesiumImpl } from './src/layer/cesium/cesiumTilesetCesiumImpl.js';
|
|
28
|
+
export { default as ClusterContext } from './src/layer/cesium/clusterContext.js';
|
|
29
|
+
export { default as DataSourceCesiumImpl } from './src/layer/cesium/dataSourceCesiumImpl.js';
|
|
30
|
+
export { default as OpenStreetMapCesiumImpl } from './src/layer/cesium/openStreetMapCesiumImpl.js';
|
|
31
|
+
export { default as PointCloudCesiumImpl } from './src/layer/cesium/pointCloudCesiumImpl.js';
|
|
32
|
+
export { default as RasterLayerCesiumImpl } from './src/layer/cesium/rasterLayerCesiumImpl.js';
|
|
33
|
+
export { default as SingleImageCesiumImpl } from './src/layer/cesium/singleImageCesiumImpl.js';
|
|
34
|
+
export { default as TerrainCesiumImpl } from './src/layer/cesium/terrainCesiumImpl.js';
|
|
35
|
+
export { default as TmsCesiumImpl } from './src/layer/cesium/tmsCesiumImpl.js';
|
|
36
|
+
export { default as VectorCesiumImpl } from './src/layer/cesium/vectorCesiumImpl.js';
|
|
37
|
+
export { setReferenceForPicking, removeArrayFromCollection, removeFeatureFromMap, addPrimitiveToContext, default as VectorContext } from './src/layer/cesium/vectorContext.js';
|
|
38
|
+
export { default as VectorRasterTileCesiumImpl } from './src/layer/cesium/vectorRasterTileCesiumImpl.js';
|
|
39
|
+
export { toContext, getCanvasFromFeatures, default as VectorTileImageryProvider } from './src/layer/cesium/vectorTileImageryProvider.js';
|
|
40
|
+
export { default as WmsCesiumImpl } from './src/layer/cesium/wmsCesiumImpl.js';
|
|
41
|
+
export { default as WmtsCesiumImpl } from './src/layer/cesium/wmtsCesiumImpl.js';
|
|
42
|
+
export { default as getJSONObjectFromObject } from './src/layer/cesium/x3dmHelper.js';
|
|
43
|
+
export { default as CesiumTilesetLayer } from './src/layer/cesiumTilesetLayer.js';
|
|
44
|
+
export { default as CzmlLayer } from './src/layer/czmlLayer.js';
|
|
45
|
+
export { default as DataSourceLayer } from './src/layer/dataSourceLayer.js';
|
|
46
|
+
export { default as FeatureLayer } from './src/layer/featureLayer.js';
|
|
47
|
+
export { isTiledFeature, default as FeatureStoreLayer } from './src/layer/featureStoreLayer.js';
|
|
48
|
+
export { default as FeatureStoreLayerChanges } from './src/layer/featureStoreLayerChanges.js';
|
|
49
|
+
export { featureStoreStateSymbol, FeatureStoreLayerState } from './src/layer/featureStoreLayerState.js';
|
|
50
|
+
export { originalStyle, highlighted, hidden, globalHidden, featureExists, FeatureVisibilityAction, synchronizeFeatureVisibility, default as FeatureVisibility } from './src/layer/featureVisibility.js';
|
|
51
|
+
export { getEPSGCodeFromGeojson, updateLegacyFeature, parseGeoJSON, writeGeoJSONFeature, writeGeoJSON } from './src/layer/geojsonHelpers.js';
|
|
52
|
+
export { featureFromOptions, default as GeoJSONLayer } from './src/layer/geojsonLayer.js';
|
|
53
|
+
export { getGlobalHider, default as GlobalHider } from './src/layer/globalHider.js';
|
|
54
|
+
export { vcsMetaVersion, default as Layer } from './src/layer/layer.js';
|
|
55
|
+
export { default as LayerImplementation } from './src/layer/layerImplementation.js';
|
|
56
|
+
export { default as LayerState } from './src/layer/layerState.js';
|
|
57
|
+
export { vcsLayerName } from './src/layer/layerSymbols.js';
|
|
58
|
+
export { default as LayerObliqueImpl } from './src/layer/oblique/layerObliqueImpl.js';
|
|
59
|
+
export { getLongestSide, getResolutionOptions, getZoom, mercatorGeometryToImageGeometry, imageGeometryToMercatorGeometry, getPolygonizedGeometry, setNewGeometry } from './src/layer/oblique/obliqueHelpers.js';
|
|
60
|
+
export { default as VectorObliqueImpl } from './src/layer/oblique/vectorObliqueImpl.js';
|
|
61
|
+
export { default as OpenStreetMapLayer } from './src/layer/openStreetMapLayer.js';
|
|
62
|
+
export { default as LayerOpenlayersImpl } from './src/layer/openlayers/layerOpenlayersImpl.js';
|
|
63
|
+
export { default as OpenStreetMapOpenlayersImpl } from './src/layer/openlayers/openStreetMapOpenlayersImpl.js';
|
|
64
|
+
export { default as RasterLayerOpenlayersImpl } from './src/layer/openlayers/rasterLayerOpenlayersImpl.js';
|
|
65
|
+
export { default as SingleImageOpenlayersImpl } from './src/layer/openlayers/singleImageOpenlayersImpl.js';
|
|
66
|
+
export { default as TileDebugOpenlayersImpl } from './src/layer/openlayers/tileDebugOpenlayersImpl.js';
|
|
67
|
+
export { default as TmsOpenlayersImpl } from './src/layer/openlayers/tmsOpenlayersImpl.js';
|
|
68
|
+
export { default as VectorOpenlayersImpl } from './src/layer/openlayers/vectorOpenlayersImpl.js';
|
|
69
|
+
export { default as VectorTileOpenlayersImpl } from './src/layer/openlayers/vectorTileOpenlayersImpl.js';
|
|
70
|
+
export { default as WmsOpenlayersImpl } from './src/layer/openlayers/wmsOpenlayersImpl.js';
|
|
71
|
+
export { default as WmtsOpenlayersImpl } from './src/layer/openlayers/wmtsOpenlayersImpl.js';
|
|
72
|
+
export { defaultPointCloudStyle, default as PointCloudLayer } from './src/layer/pointCloudLayer.js';
|
|
73
|
+
export { TilingScheme, getTilingScheme, calculateMinLevel, default as RasterLayer } from './src/layer/rasterLayer.js';
|
|
74
|
+
export { default as SingleImageLayer } from './src/layer/singleImageLayer.js';
|
|
75
|
+
export { getTerrainProviderForUrl, sampleCesiumTerrainMostDetailed, sampleCesiumTerrain, getHeightFromTerrainProvider, isTerrainTileAvailable } from './src/layer/terrainHelpers.js';
|
|
76
|
+
export { default as TerrainLayer } from './src/layer/terrainLayer.js';
|
|
77
|
+
export { tiledLayerLoaded, globeLoaded } from './src/layer/tileLoadedHelper.js';
|
|
78
|
+
export { default as MVTTileProvider } from './src/layer/tileProvider/mvtTileProvider.js';
|
|
79
|
+
export { default as StaticGeoJSONTileProvider } from './src/layer/tileProvider/staticGeojsonTileProvider.js';
|
|
80
|
+
export { mercatorResolutionsToLevel, rectangleToExtent, default as TileProvider } from './src/layer/tileProvider/tileProvider.js';
|
|
81
|
+
export { default as factory } from './src/layer/tileProvider/tileProviderFactory.js';
|
|
82
|
+
export { getURL, default as URLTemplateTileProvider } from './src/layer/tileProvider/urlTemplateTileProvider.js';
|
|
83
|
+
export { default as TMSLayer } from './src/layer/tmsLayer.js';
|
|
84
|
+
export { fvLastUpdated, globalHiderLastUpdated, updateFeatureVisibility, updateGlobalHider, synchronizeFeatureVisibilityWithSource, getGenericFeatureFromClickedObject } from './src/layer/vectorHelpers.js';
|
|
85
|
+
export { default as VectorLayer } from './src/layer/vectorLayer.js';
|
|
86
|
+
export { AltitudeModeCesium, ClassificationTypeCesium, parseNearFarScalar, parseCartesian3, parseStoreyHeights, getAltitudeModeOptions, getClassificationTypeOptions, getNearFarValueOptions, getCartesian3Options, default as VectorProperties } from './src/layer/vectorProperties.js';
|
|
87
|
+
export { alreadyTransformedToMercator, alreadyTransformedToImage, obliqueGeometry, doNotTransform, originalFeatureSymbol, actuallyIsCircle } from './src/layer/vectorSymbols.js';
|
|
88
|
+
export { default as VectorTileLayer } from './src/layer/vectorTileLayer.js';
|
|
89
|
+
export { default as WFSLayer } from './src/layer/wfsLayer.js';
|
|
90
|
+
export { getWMSSource } from './src/layer/wmsHelpers.js';
|
|
91
|
+
export { default as WMSLayer } from './src/layer/wmsLayer.js';
|
|
92
|
+
export { default as WMTSLayer } from './src/layer/wmtsLayer.js';
|
|
93
|
+
export { default as BaseOLMap } from './src/map/baseOLMap.js';
|
|
94
|
+
export { CameraLimiterMode, default as CameraLimiter } from './src/map/cameraLimiter.js';
|
|
95
|
+
export { default as CesiumMap } from './src/map/cesiumMap.js';
|
|
96
|
+
export { default as MapState } from './src/map/mapState.js';
|
|
97
|
+
export { getViewDirectionFromViewPoint, default as ObliqueMap } from './src/map/obliqueMap.js';
|
|
98
|
+
export { default as OpenlayersMap } from './src/map/openlayersMap.js';
|
|
99
|
+
export { default as VcsMap } from './src/map/vcsMap.js';
|
|
100
|
+
export { default as DefaultObliqueCollection } from './src/oblique/defaultObliqueCollection.js';
|
|
101
|
+
export { sortRealWordEdgeCoordinates, checkLineIntersection, transformCWIFC, transformToImage, transformFromImage, hasSameOrigin } from './src/oblique/helpers.js';
|
|
102
|
+
export { default as ObliqueCollection } from './src/oblique/obliqueCollection.js';
|
|
103
|
+
export { DataState, getStateFromStatesArray, default as ObliqueDataSet } from './src/oblique/obliqueDataSet.js';
|
|
104
|
+
export { default as ObliqueImage } from './src/oblique/obliqueImage.js';
|
|
105
|
+
export { default as ObliqueImageMeta } from './src/oblique/obliqueImageMeta.js';
|
|
106
|
+
export { default as ObliqueProvider } from './src/oblique/obliqueProvider.js';
|
|
107
|
+
export { default as ObliqueView } from './src/oblique/obliqueView.js';
|
|
108
|
+
export { ObliqueViewDirection, obliqueViewDirectionNames, getDirectionName } from './src/oblique/obliqueViewDirection.js';
|
|
109
|
+
export { getVersionFromImageJson, parseImageMeta, parseImageData, parseLegacyImageData } from './src/oblique/parseImageJson.js';
|
|
110
|
+
export { defaultDeclarativeStyle, default as DeclarativeStyleItem } from './src/style/declarativeStyleItem.js';
|
|
111
|
+
export { getShapeFromOptions, shapeCategory } from './src/style/shapesCategory.js';
|
|
112
|
+
export { getStyleOrDefaultStyle } from './src/style/styleFactory.js';
|
|
113
|
+
export { PatternType, hexToOlColor, cesiumColorToColor, olColorToCesiumColor, parseColor, getCesiumColor, getStringColor, createPattern, olColorToHex, validateHexColor, parseFont, combineFont, colorInCanvas, getFillOptions, getStrokeOptions, getTextOptions, getTextFromOptions, getCssStyleFromTextStyle, emptyStyle, emptyColor, whiteColor, blackColor, getDefaultVectorStyleItemOptions, getDefaultCondition, defaultExtrudedHeightCondition } from './src/style/styleHelpers.js';
|
|
114
|
+
export { StyleType, referenceableStyleSymbol, default as StyleItem } from './src/style/styleItem.js';
|
|
115
|
+
export { OlcsGeometryType, vectorStyleSymbol, defaultVectorStyle, fromCesiumColor, default as VectorStyleItem } from './src/style/vectorStyleItem.js';
|
|
116
|
+
export { embedIconsInStyle, default as writeStyle } from './src/style/writeStyle.js';
|
|
117
|
+
export { default as ClippingObject } from './src/util/clipping/clippingObject.js';
|
|
118
|
+
export { default as ClippingObjectManager } from './src/util/clipping/clippingObjectManager.js';
|
|
119
|
+
export { createClippingPlaneCollection, copyClippingPlanesToCollection, clearClippingPlanes, setClippingPlanes, createClippingFeature, getClippingOptions } from './src/util/clipping/clippingPlaneHelper.js';
|
|
120
|
+
export { default as Collection } from './src/util/collection.js';
|
|
121
|
+
export { getShortLocaleDate, getShortLocaleTime, getISODateString, getDayOfYear, isLeapYear } from './src/util/dateTime.js';
|
|
122
|
+
export { default as ExclusiveManager } from './src/util/exclusiveManager.js';
|
|
123
|
+
export { default as Extent } from './src/util/extent.js';
|
|
124
|
+
export { validateCircle, default as circleToCesium } from './src/util/featureconverter/circleToCesium.js';
|
|
125
|
+
export { getStylesArray, default as convert } from './src/util/featureconverter/convert.js';
|
|
126
|
+
export { default as Extent3D } from './src/util/featureconverter/extent3D.js';
|
|
127
|
+
export { getMaterialAppearance, createClassificationPrimitive, createPrimitive, createOutlinePrimitive, createLinePrimitive, getMinHeightOrGroundLevel, getStoreyHeights, validateStoreys, getHeightAboveGround, getHeightInfo, getStoreyOptions, addPrimitivesToContext } from './src/util/featureconverter/featureconverterHelper.js';
|
|
128
|
+
export { validateLineString, default as lineStringToCesium } from './src/util/featureconverter/lineStringToCesium.js';
|
|
129
|
+
export { getBillboardOptions, getLabelOptions, getModelOptions, validatePoint, getCartesian3AndWGS84FromCoordinates, default as pointToCesium } from './src/util/featureconverter/pointToCesium.js';
|
|
130
|
+
export { validatePolygon, default as polygonToCesium } from './src/util/featureconverter/polygonToCesium.js';
|
|
131
|
+
export { requestUrl, requestJson, requestArrayBuffer } from './src/util/fetch.js';
|
|
132
|
+
export { getFlatCoordinatesFromSimpleGeometry, getFlatCoordinatesFromGeometry, circleFromCenterRadius, convertGeometryToPolygon, enforceEndingVertex, removeEndingVertex, removeEndingVertexFromGeometry, enforceRightHand } from './src/util/geometryHelpers.js';
|
|
133
|
+
export { default as IndexedCollection } from './src/util/indexedCollection.js';
|
|
134
|
+
export { isMobile } from './src/util/isMobile.js';
|
|
135
|
+
export { default as LayerCollection } from './src/util/layerCollection.js';
|
|
136
|
+
export { getLocaleChangedEvent, detectBrowserLocale, getCurrentLocale, setCurrentLocale } from './src/util/locale.js';
|
|
137
|
+
export { default as MapCollection } from './src/util/mapCollection.js';
|
|
138
|
+
export { coordinateAtDistance, initialBearingBetweenCoords, cartesian2DDistance, cartesian3DDistance } from './src/util/math.js';
|
|
139
|
+
export { isOverrideCollection, default as makeOverrideCollection } from './src/util/overrideCollection.js';
|
|
140
|
+
export { wgs84ToMercatorTransformer, mercatorToWgs84Transformer, setDefaultProjectionOptions, getDefaultProjection, wgs84Projection, mercatorProjection, default as Projection } from './src/util/projection.js';
|
|
141
|
+
export { default as SplitScreen } from './src/util/splitScreen.js';
|
|
142
|
+
export { isSameOrigin } from './src/util/urlHelpers.js';
|
|
143
|
+
export { propertyEqualsEpsilon, angleEqualsEpsilon, coordinateEqualsEpsilon, default as ViewPoint } from './src/util/viewpoint.js';
|
|
144
|
+
export { getVcsAppById, default as VcsApp } from './src/vcsApp.js';
|
|
145
|
+
export { contextIdSymbol, getObjectFromOptions, deserializeMap, deserializeViewPoint, serializeLayer, getLayerIndex, destroyCollection } from './src/vcsAppContextHelpers.js';
|
|
146
|
+
export { default as VcsEvent } from './src/vcsEvent.js';
|
|
147
|
+
export { default as VcsObject } from './src/vcsObject.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vcmap/core",
|
|
3
|
-
"version": "5.0.0-rc.
|
|
3
|
+
"version": "5.0.0-rc.8",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -36,7 +36,6 @@
|
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@rollup/plugin-commonjs": "^18.0.0",
|
|
38
38
|
"@rollup/plugin-node-resolve": "^11.2.1",
|
|
39
|
-
"@vcmap/cesium": "^1.87.3",
|
|
40
39
|
"@vcsuite/eslint-config": "^2.0.3",
|
|
41
40
|
"@vcsuite/tsd-jsdoc": "^1.0.2",
|
|
42
41
|
"@web/dev-server": "^0.1.11",
|
|
@@ -53,14 +52,13 @@
|
|
|
53
52
|
"mocha-junit-reporter": "^2.0.2",
|
|
54
53
|
"nock": "^13.2.4",
|
|
55
54
|
"node-fetch": "^3.2.0",
|
|
56
|
-
"ol": "^6.9.0",
|
|
57
55
|
"sinon": "^9.2.4",
|
|
58
56
|
"sinon-chai": "^3.6.0",
|
|
59
|
-
"typescript": "^4.
|
|
57
|
+
"typescript": "^4.6.2"
|
|
60
58
|
},
|
|
61
59
|
"peerDependencies": {
|
|
62
|
-
"@vcmap/cesium": "~1.87.
|
|
63
|
-
"ol": "
|
|
60
|
+
"@vcmap/cesium": "~1.87.3",
|
|
61
|
+
"ol": "~6.13.0"
|
|
64
62
|
},
|
|
65
63
|
"eslintConfig": {
|
|
66
64
|
"extends": [
|
|
@@ -79,7 +77,7 @@
|
|
|
79
77
|
"@vcsuite/logger": "^1.0.1",
|
|
80
78
|
"@vcsuite/parsers": "^1.0.1",
|
|
81
79
|
"fast-deep-equal": "^3.1.3",
|
|
82
|
-
"proj4": "^2.7.
|
|
80
|
+
"proj4": "^2.7.5",
|
|
83
81
|
"rbush": ">=3.0.1",
|
|
84
82
|
"rbush-knn": "^3.0.1",
|
|
85
83
|
"underscore.template": "^0.1.7",
|
|
@@ -11,7 +11,7 @@ import { VcsClassRegistry } from '../classRegistry.js';
|
|
|
11
11
|
* @extends {Category<import("@vcmap/core").VcsObject>}
|
|
12
12
|
*/
|
|
13
13
|
class AppBackedCategory extends Category {
|
|
14
|
-
static get className() { return '
|
|
14
|
+
static get className() { return 'AppBackedCategory'; }
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* @param {AppBackedCategoryOptions} options
|
|
@@ -4,13 +4,13 @@ import { parseBoolean } from '@vcsuite/parsers';
|
|
|
4
4
|
import { Feature } from 'ol';
|
|
5
5
|
import { contextIdSymbol, destroyCollection, getObjectFromOptions } from '../vcsAppContextHelpers.js';
|
|
6
6
|
import makeOverrideCollection, { isOverrideCollection } from '../util/overrideCollection.js';
|
|
7
|
-
import VcsObject from '../
|
|
8
|
-
import
|
|
7
|
+
import VcsObject from '../vcsObject.js';
|
|
8
|
+
import VectorLayer from '../layer/vectorLayer.js';
|
|
9
9
|
import IndexedCollection from '../util/indexedCollection.js';
|
|
10
10
|
import { parseGeoJSON, writeGeoJSONFeature } from '../layer/geojsonHelpers.js';
|
|
11
11
|
import Collection from '../util/collection.js';
|
|
12
12
|
import { VcsClassRegistry } from '../classRegistry.js';
|
|
13
|
-
import { getStyleOrDefaultStyle } from '../
|
|
13
|
+
import { getStyleOrDefaultStyle } from '../style/styleFactory.js';
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* @typedef {VcsObjectOptions} CategoryOptions
|
|
@@ -28,7 +28,7 @@ import { getStyleOrDefaultStyle } from '../util/style/styleFactory.js';
|
|
|
28
28
|
const categoryContextId = uuidv4();
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
|
-
* @param {import("@vcmap/core").
|
|
31
|
+
* @param {import("@vcmap/core").VectorLayer} layer
|
|
32
32
|
* @param {VectorOptions} options
|
|
33
33
|
* @private
|
|
34
34
|
*/
|
|
@@ -76,7 +76,7 @@ function checkMergeOptionOverride(key, value, defaultOption, option) {
|
|
|
76
76
|
* @template {Object|VcsObject} T
|
|
77
77
|
*/
|
|
78
78
|
class Category extends VcsObject {
|
|
79
|
-
static get className() { return '
|
|
79
|
+
static get className() { return 'Category'; }
|
|
80
80
|
|
|
81
81
|
/**
|
|
82
82
|
* @returns {CategoryOptions}
|
|
@@ -123,12 +123,12 @@ class Category extends VcsObject {
|
|
|
123
123
|
*/
|
|
124
124
|
this._layerOptions = options.layerOptions || defaultOptions.layerOptions;
|
|
125
125
|
/**
|
|
126
|
-
* @type {import("@vcmap/core").
|
|
126
|
+
* @type {import("@vcmap/core").VectorLayer}
|
|
127
127
|
* @protected
|
|
128
128
|
*/
|
|
129
129
|
this._layer = null;
|
|
130
130
|
if (this._featureProperty) {
|
|
131
|
-
this._layer = new
|
|
131
|
+
this._layer = new VectorLayer(this._layerOptions);
|
|
132
132
|
this._layer[contextIdSymbol] = categoryContextId;
|
|
133
133
|
}
|
|
134
134
|
/**
|
|
@@ -167,7 +167,7 @@ class Category extends VcsObject {
|
|
|
167
167
|
* Returns the layer of this collection. Caution, do not use the layer API to add or remove items.
|
|
168
168
|
* When adding items to the collection, the features are added to the layer async (timeout of 0), since there is weird behavior
|
|
169
169
|
* when removing and adding a feature with the same id in the same sync call.
|
|
170
|
-
* @type {import("@vcmap/core").
|
|
170
|
+
* @type {import("@vcmap/core").VectorLayer|null}
|
|
171
171
|
*/
|
|
172
172
|
get layer() {
|
|
173
173
|
return this._layer;
|
|
File without changes
|
|
@@ -15,7 +15,7 @@ class ClassRegistry {
|
|
|
15
15
|
/**
|
|
16
16
|
* @type {import("@vcsuite/logger").Logger}
|
|
17
17
|
*/
|
|
18
|
-
this.logger = getLogger('
|
|
18
|
+
this.logger = getLogger('ClassRegistry');
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
/**
|
|
@@ -78,23 +78,6 @@ class ClassRegistry {
|
|
|
78
78
|
}
|
|
79
79
|
return new Ctor(...args);
|
|
80
80
|
}
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* @param {string} className
|
|
84
|
-
* @param {...*} args
|
|
85
|
-
* @returns {*}
|
|
86
|
-
* @deprecated 4.0
|
|
87
|
-
*/
|
|
88
|
-
createSync(className, ...args) {
|
|
89
|
-
check(className, String);
|
|
90
|
-
|
|
91
|
-
const Ctor = /** @type {function(new: *, ...*)} */ (this.getClass(className));
|
|
92
|
-
if (!Ctor) {
|
|
93
|
-
this.logger.error(`could not find constructor ${className}`);
|
|
94
|
-
return undefined;
|
|
95
|
-
}
|
|
96
|
-
return new Ctor(...args);
|
|
97
|
-
}
|
|
98
81
|
}
|
|
99
82
|
|
|
100
83
|
export default ClassRegistry;
|
|
File without changes
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { v4 as uuidv4 } from 'uuid';
|
|
2
2
|
import { parseBoolean } from '@vcsuite/parsers';
|
|
3
|
-
import { vcsLayerName } from '
|
|
4
|
-
import VcsObject from '
|
|
3
|
+
import { vcsLayerName } from '../layer/layerSymbols.js';
|
|
4
|
+
import VcsObject from '../vcsObject.js';
|
|
5
5
|
import { getStyleOrDefaultStyle } from '../style/styleFactory.js';
|
|
6
6
|
import { defaultVectorStyle } from '../style/vectorStyleItem.js';
|
|
7
|
-
import VectorProperties from '
|
|
7
|
+
import VectorProperties from '../layer/vectorProperties.js';
|
|
8
8
|
import { isProvidedFeature, showProvidedFeature } from './featureProviderSymbols.js';
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -22,14 +22,14 @@ import { isProvidedFeature, showProvidedFeature } from './featureProviderSymbols
|
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
24
|
* An abstract class providing features for {@link Layer}s which cannot provide features directly, but can provide features for
|
|
25
|
-
* a given location, e.g.
|
|
25
|
+
* a given location, e.g. WmsLayer with a getFeatureInfo configuration. In this case, a feature provider can be created for this layer.
|
|
26
26
|
* @class
|
|
27
27
|
* @export
|
|
28
28
|
* @abstract
|
|
29
29
|
* @api
|
|
30
30
|
*/
|
|
31
31
|
class AbstractFeatureProvider extends VcsObject {
|
|
32
|
-
static get className() { return '
|
|
32
|
+
static get className() { return 'AbstractFeatureProvider'; }
|
|
33
33
|
|
|
34
34
|
/**
|
|
35
35
|
* @returns {AbstractFeatureProviderOptions}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getCenter } from 'ol/extent.js';
|
|
2
|
-
import Projection from '../projection.js';
|
|
3
|
-
import Extent3D from '../featureconverter/extent3D.js';
|
|
2
|
+
import Projection from '../util/projection.js';
|
|
3
|
+
import Extent3D from '../util/featureconverter/extent3D.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* @param {VectorClickedObject} feature
|
|
File without changes
|
|
@@ -12,7 +12,7 @@ import AbstractFeatureProvider from './abstractFeatureProvider.js';
|
|
|
12
12
|
* @extends {AbstractFeatureProvider}
|
|
13
13
|
*/
|
|
14
14
|
class TileProviderFeatureProvider extends AbstractFeatureProvider {
|
|
15
|
-
static get className() { return '
|
|
15
|
+
static get className() { return 'TileProviderFeatureProvider'; }
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* @param {string} layerName
|
|
@@ -26,7 +26,7 @@ class TileProviderFeatureProvider extends AbstractFeatureProvider {
|
|
|
26
26
|
* @type {Array<string>}
|
|
27
27
|
* @api
|
|
28
28
|
*/
|
|
29
|
-
this.mapTypes = ['
|
|
29
|
+
this.mapTypes = ['CesiumMap'];
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
32
|
* TileProvider
|
|
@@ -6,15 +6,15 @@ import Point from 'ol/geom/Point.js';
|
|
|
6
6
|
import { getTransform } from 'ol/proj.js';
|
|
7
7
|
import { parseInteger } from '@vcsuite/parsers';
|
|
8
8
|
import AbstractFeatureProvider from './abstractFeatureProvider.js';
|
|
9
|
-
import Projection, { mercatorProjection } from '../projection.js';
|
|
10
|
-
import { getWMSSource } from '
|
|
11
|
-
import Extent from '../extent.js';
|
|
12
|
-
import { requestJson } from '../fetch.js';
|
|
9
|
+
import Projection, { mercatorProjection } from '../util/projection.js';
|
|
10
|
+
import { getWMSSource } from '../layer/wmsHelpers.js';
|
|
11
|
+
import Extent from '../util/extent.js';
|
|
12
|
+
import { requestJson } from '../util/fetch.js';
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* @typedef {AbstractFeatureProviderOptions} WMSFeatureProviderOptions
|
|
16
16
|
* @property {string|undefined} [responseType='text/xml'] - the response type for the feature info
|
|
17
|
-
* @property {Object|undefined} formatOptions - format options for the
|
|
17
|
+
* @property {Object|undefined} formatOptions - format options for the GeojsonLayer, WfsLayer or GML format. To overwrite the gmlFormat option in WfsLayer format, use 'GML', 'GML2' or 'GML3' as string
|
|
18
18
|
* @property {ProjectionOptions|undefined} projection - the projection of the data, if not encoded in the response
|
|
19
19
|
* @property {string} url
|
|
20
20
|
* @property {string} [tilingSchema='geographic'] - either "geographic" or "mercator"
|
|
@@ -71,7 +71,7 @@ export function getFormat(responseType, options = {}) {
|
|
|
71
71
|
* @extends {AbstractFeatureProvider}
|
|
72
72
|
*/
|
|
73
73
|
class WMSFeatureProvider extends AbstractFeatureProvider {
|
|
74
|
-
static get className() { return '
|
|
74
|
+
static get className() { return 'WMSFeatureProvider'; }
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
77
|
* @returns {WMSFeatureProviderOptions}
|
|
@@ -124,7 +124,7 @@ class WMSFeatureProvider extends AbstractFeatureProvider {
|
|
|
124
124
|
version: options.version || defaultOptions.version,
|
|
125
125
|
};
|
|
126
126
|
/**
|
|
127
|
-
* The
|
|
127
|
+
* The WmsLayer Source used to generate getFeatureInfo urls
|
|
128
128
|
* @type {import("ol/source/TileWMS").default}
|
|
129
129
|
* @api
|
|
130
130
|
*/
|
|
@@ -198,7 +198,8 @@ class WMSFeatureProvider extends AbstractFeatureProvider {
|
|
|
198
198
|
let coords = coordinate;
|
|
199
199
|
if (projection) {
|
|
200
200
|
const transform = getTransform(mercatorProjection.proj, projection);
|
|
201
|
-
|
|
201
|
+
// error in TransformFunction type definition, remove undefined after openlayer fixed the type
|
|
202
|
+
coords = transform(coordinate.slice(), undefined, undefined);
|
|
202
203
|
}
|
|
203
204
|
|
|
204
205
|
const metersPerUnit = 111194.87428468118;
|
|
@@ -3,9 +3,5 @@ import Collection from './util/collection.js';
|
|
|
3
3
|
/**
|
|
4
4
|
* @type {import("@vcmap/core").Collection<import("@vcmap/core").StyleItem>}
|
|
5
5
|
*/
|
|
6
|
+
// eslint-disable-next-line import/prefer-default-export
|
|
6
7
|
export const styleCollection = new Collection();
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* @type {import("@vcmap/core").Collection<import("@vcmap/core").ObliqueCollection>}
|
|
10
|
-
*/
|
|
11
|
-
export const obliqueCollectionCollection = new Collection();
|