@vcmap/core 5.0.0-rc.34 → 5.0.0-rc.36
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 +2 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/src/category/category.d.ts +1 -0
- package/dist/src/category/category.js +1 -0
- package/dist/src/category/category.js.map +1 -1
- package/dist/src/category/categoryCollection.d.ts +3 -0
- package/dist/src/category/categoryCollection.js +3 -0
- package/dist/src/category/categoryCollection.js.map +1 -1
- package/dist/src/featureProvider/abstractFeatureProvider.js +1 -2
- package/dist/src/featureProvider/abstractFeatureProvider.js.map +1 -1
- package/dist/src/featureProvider/featureProviderSymbols.d.ts +0 -5
- package/dist/src/featureProvider/featureProviderSymbols.js +1 -5
- package/dist/src/featureProvider/featureProviderSymbols.js.map +1 -1
- package/dist/src/interaction/abstractInteraction.d.ts +1 -0
- package/dist/src/interaction/abstractInteraction.js +1 -0
- package/dist/src/interaction/abstractInteraction.js.map +1 -1
- package/dist/src/interaction/coordinateAtPixel.d.ts +3 -0
- package/dist/src/interaction/coordinateAtPixel.js +3 -0
- package/dist/src/interaction/coordinateAtPixel.js.map +1 -1
- package/dist/src/interaction/featureAtPixelInteraction.d.ts +3 -0
- package/dist/src/interaction/featureAtPixelInteraction.js +3 -0
- package/dist/src/interaction/featureAtPixelInteraction.js.map +1 -1
- package/dist/src/interaction/featureProviderInteraction.d.ts +3 -0
- package/dist/src/interaction/featureProviderInteraction.js +3 -0
- package/dist/src/interaction/featureProviderInteraction.js.map +1 -1
- package/dist/src/interaction/interactionChain.d.ts +3 -0
- package/dist/src/interaction/interactionChain.js +3 -0
- package/dist/src/interaction/interactionChain.js.map +1 -1
- package/dist/src/layer/cesium/vectorRasterTileCesiumImpl.js +1 -1
- package/dist/src/layer/cesiumTilesetLayer.d.ts +1 -0
- package/dist/src/layer/cesiumTilesetLayer.js +1 -0
- package/dist/src/layer/cesiumTilesetLayer.js.map +1 -1
- package/dist/src/layer/czmlLayer.d.ts +3 -0
- package/dist/src/layer/czmlLayer.js +3 -0
- package/dist/src/layer/czmlLayer.js.map +1 -1
- package/dist/src/layer/dataSourceLayer.d.ts +1 -0
- package/dist/src/layer/dataSourceLayer.js +1 -0
- package/dist/src/layer/dataSourceLayer.js.map +1 -1
- package/dist/src/layer/featureLayer.d.ts +1 -0
- package/dist/src/layer/featureLayer.js +1 -0
- package/dist/src/layer/featureLayer.js.map +1 -1
- package/dist/src/layer/featureStoreLayer.d.ts +2 -0
- package/dist/src/layer/featureStoreLayer.js +2 -0
- package/dist/src/layer/featureStoreLayer.js.map +1 -1
- package/dist/src/layer/geojsonHelpers.js +0 -4
- package/dist/src/layer/geojsonHelpers.js.map +1 -1
- package/dist/src/layer/geojsonLayer.d.ts +3 -0
- package/dist/src/layer/geojsonLayer.js +3 -0
- package/dist/src/layer/geojsonLayer.js.map +1 -1
- package/dist/src/layer/layer.d.ts +1 -5
- package/dist/src/layer/layer.js +1 -8
- package/dist/src/layer/layer.js.map +1 -1
- package/dist/src/layer/layerSymbols.d.ts +3 -0
- package/dist/src/layer/layerSymbols.js +3 -0
- package/dist/src/layer/layerSymbols.js.map +1 -1
- package/dist/src/layer/openStreetMapLayer.d.ts +3 -0
- package/dist/src/layer/openStreetMapLayer.js +3 -0
- package/dist/src/layer/openStreetMapLayer.js.map +1 -1
- package/dist/src/layer/pointCloudLayer.d.ts +1 -0
- package/dist/src/layer/pointCloudLayer.js +1 -0
- package/dist/src/layer/pointCloudLayer.js.map +1 -1
- package/dist/src/layer/rasterLayer.d.ts +1 -0
- package/dist/src/layer/rasterLayer.js +1 -0
- package/dist/src/layer/rasterLayer.js.map +1 -1
- package/dist/src/layer/singleImageLayer.d.ts +1 -0
- package/dist/src/layer/singleImageLayer.js +1 -0
- package/dist/src/layer/singleImageLayer.js.map +1 -1
- package/dist/src/layer/terrainLayer.d.ts +3 -0
- package/dist/src/layer/terrainLayer.js +3 -0
- package/dist/src/layer/terrainLayer.js.map +1 -1
- package/dist/src/layer/tmsLayer.d.ts +3 -0
- package/dist/src/layer/tmsLayer.js +3 -0
- package/dist/src/layer/tmsLayer.js.map +1 -1
- package/dist/src/layer/vectorLayer.d.ts +1 -20
- package/dist/src/layer/vectorLayer.js +2 -31
- package/dist/src/layer/vectorLayer.js.map +1 -1
- package/dist/src/layer/vectorProperties.d.ts +0 -14
- package/dist/src/layer/vectorProperties.js +0 -36
- package/dist/src/layer/vectorProperties.js.map +1 -1
- package/dist/src/layer/vectorTileLayer.d.ts +1 -0
- package/dist/src/layer/vectorTileLayer.js +1 -0
- package/dist/src/layer/vectorTileLayer.js.map +1 -1
- package/dist/src/layer/wfsLayer.d.ts +3 -0
- package/dist/src/layer/wfsLayer.js +3 -0
- package/dist/src/layer/wfsLayer.js.map +1 -1
- package/dist/src/layer/wmsLayer.d.ts +1 -0
- package/dist/src/layer/wmsLayer.js +1 -0
- package/dist/src/layer/wmsLayer.js.map +1 -1
- package/dist/src/layer/wmtsLayer.d.ts +3 -0
- package/dist/src/layer/wmtsLayer.js +3 -0
- package/dist/src/layer/wmtsLayer.js.map +1 -1
- package/dist/src/map/baseOLMap.d.ts +3 -0
- package/dist/src/map/baseOLMap.js +3 -0
- package/dist/src/map/baseOLMap.js.map +1 -1
- package/dist/src/map/cesiumMap.d.ts +7 -0
- package/dist/src/map/cesiumMap.js +14 -0
- package/dist/src/map/cesiumMap.js.map +1 -1
- package/dist/src/map/obliqueMap.d.ts +3 -0
- package/dist/src/map/obliqueMap.js +3 -0
- package/dist/src/map/obliqueMap.js.map +1 -1
- package/dist/src/map/openlayersMap.d.ts +3 -0
- package/dist/src/map/openlayersMap.js +3 -0
- package/dist/src/map/openlayersMap.js.map +1 -1
- package/dist/src/map/vcsMap.d.ts +1 -0
- package/dist/src/map/vcsMap.js +1 -0
- package/dist/src/map/vcsMap.js.map +1 -1
- package/dist/src/style/declarativeStyleItem.d.ts +1 -0
- package/dist/src/style/declarativeStyleItem.js +2 -3
- package/dist/src/style/declarativeStyleItem.js.map +1 -1
- package/dist/src/style/styleHelpers.d.ts +27 -3
- package/dist/src/style/styleHelpers.js +143 -15
- package/dist/src/style/styleHelpers.js.map +1 -1
- package/dist/src/style/styleItem.d.ts +1 -0
- package/dist/src/style/styleItem.js +1 -0
- package/dist/src/style/styleItem.js.map +1 -1
- package/dist/src/style/vectorStyleItem.d.ts +3 -0
- package/dist/src/style/vectorStyleItem.js +13 -33
- package/dist/src/style/vectorStyleItem.js.map +1 -1
- package/dist/src/util/editor/createFeatureSession.d.ts +1 -0
- package/dist/src/util/editor/createFeatureSession.js +1 -0
- 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 +2 -1
- package/dist/src/util/editor/editFeaturesSession.js.map +1 -1
- package/dist/src/util/editor/editGeometrySession.js +1 -0
- package/dist/src/util/editor/editGeometrySession.js.map +1 -1
- package/dist/src/util/editor/selectFeaturesSession.d.ts +2 -1
- package/dist/src/util/editor/selectFeaturesSession.js +2 -1
- package/dist/src/util/editor/selectFeaturesSession.js.map +1 -1
- package/dist/src/util/editor/transformation/transformationTypes.d.ts +2 -2
- package/dist/src/util/featureconverter/featureconverterHelper.js +16 -60
- package/dist/src/util/featureconverter/featureconverterHelper.js.map +1 -1
- package/dist/src/util/viewpoint.d.ts +1 -0
- package/dist/src/util/viewpoint.js +1 -0
- package/dist/src/util/viewpoint.js.map +1 -1
- package/dist/src/vcsApp.d.ts +3 -0
- package/dist/src/vcsApp.js +3 -0
- package/dist/src/vcsApp.js.map +1 -1
- package/dist/src/vcsModule.d.ts +3 -0
- package/dist/src/vcsModule.js +3 -0
- package/dist/src/vcsModule.js.map +1 -1
- package/index.ts +7 -4
- package/package.json +7 -7
- package/src/category/category.ts +1 -0
- package/src/category/categoryCollection.ts +3 -0
- package/src/featureProvider/abstractFeatureProvider.ts +1 -5
- package/src/featureProvider/featureProviderSymbols.ts +1 -6
- package/src/interaction/abstractInteraction.ts +1 -0
- package/src/interaction/coordinateAtPixel.ts +3 -0
- package/src/interaction/featureAtPixelInteraction.ts +3 -0
- package/src/interaction/featureProviderInteraction.ts +3 -0
- package/src/interaction/interactionChain.ts +3 -0
- package/src/layer/cesium/vectorRasterTileCesiumImpl.ts +1 -1
- package/src/layer/cesiumTilesetLayer.ts +1 -0
- package/src/layer/czmlLayer.ts +3 -0
- package/src/layer/dataSourceLayer.ts +1 -0
- package/src/layer/featureLayer.ts +1 -0
- package/src/layer/featureStoreLayer.ts +2 -0
- package/src/layer/geojsonHelpers.ts +0 -4
- package/src/layer/geojsonLayer.ts +3 -0
- package/src/layer/layer.ts +1 -9
- package/src/layer/layerSymbols.ts +3 -0
- package/src/layer/openStreetMapLayer.ts +3 -0
- package/src/layer/pointCloudLayer.ts +1 -0
- package/src/layer/rasterLayer.ts +1 -0
- package/src/layer/singleImageLayer.ts +1 -0
- package/src/layer/terrainLayer.ts +3 -0
- package/src/layer/tmsLayer.ts +3 -0
- package/src/layer/vectorLayer.ts +2 -42
- package/src/layer/vectorProperties.ts +0 -48
- package/src/layer/vectorTileLayer.ts +1 -0
- package/src/layer/wfsLayer.ts +3 -0
- package/src/layer/wmsLayer.ts +1 -0
- package/src/layer/wmtsLayer.ts +3 -0
- package/src/map/baseOLMap.ts +3 -0
- package/src/map/cesiumMap.ts +26 -0
- package/src/map/obliqueMap.ts +3 -0
- package/src/map/openlayersMap.ts +3 -0
- package/src/map/vcsMap.ts +1 -0
- package/src/ol/geojson.d.ts +0 -6
- package/src/ol/ol.d.ts +1 -5
- package/src/style/declarativeStyleItem.ts +2 -3
- package/src/style/styleHelpers.ts +166 -17
- package/src/style/styleItem.ts +1 -0
- package/src/style/vectorStyleItem.ts +15 -31
- package/src/util/editor/createFeatureSession.ts +1 -0
- package/src/util/editor/editFeaturesSession.ts +2 -1
- package/src/util/editor/editGeometrySession.ts +1 -0
- package/src/util/editor/selectFeaturesSession.ts +2 -1
- package/src/util/editor/transformation/transformationTypes.ts +2 -2
- package/src/util/featureconverter/featureconverterHelper.ts +25 -85
- package/src/util/viewpoint.ts +1 -0
- package/src/vcsApp.ts +3 -0
- package/src/vcsModule.ts +3 -0
|
@@ -26,6 +26,9 @@ import type OpenlayersMap from '../map/openlayersMap.js';
|
|
|
26
26
|
import type ObliqueMap from '../map/obliqueMap.js';
|
|
27
27
|
import type CesiumMap from '../map/cesiumMap.js';
|
|
28
28
|
|
|
29
|
+
/**
|
|
30
|
+
* @group Interaction
|
|
31
|
+
*/
|
|
29
32
|
class FeatureAtPixelInteraction extends AbstractInteraction {
|
|
30
33
|
private _pickPosition = EventType.CLICK;
|
|
31
34
|
|
|
@@ -36,7 +36,7 @@ class VectorRasterTileCesiumImpl extends RasterLayerCesiumImpl {
|
|
|
36
36
|
const rasterLayerOptions: RasterLayerImplementationOptions = {
|
|
37
37
|
...options,
|
|
38
38
|
tilingSchema: TilingScheme.MERCATOR,
|
|
39
|
-
opacity:
|
|
39
|
+
opacity: 1,
|
|
40
40
|
};
|
|
41
41
|
super(map, rasterLayerOptions);
|
|
42
42
|
this.tileProvider = options.tileProvider;
|
package/src/layer/czmlLayer.ts
CHANGED
|
@@ -265,9 +265,6 @@ function readFeature(
|
|
|
265
265
|
}
|
|
266
266
|
|
|
267
267
|
featureObj.vcsMeta = featureObj.vcsMeta || ({} as VcsMeta);
|
|
268
|
-
if (featureObj.vcsStyle) {
|
|
269
|
-
featureObj.vcsMeta.style = featureObj.vcsMeta.style || featureObj.vcsStyle;
|
|
270
|
-
}
|
|
271
268
|
const { properties } = featureObj;
|
|
272
269
|
if (
|
|
273
270
|
properties &&
|
|
@@ -352,7 +349,6 @@ export function parseGeoJSON(
|
|
|
352
349
|
geoJSON.vcsMeta ||
|
|
353
350
|
({
|
|
354
351
|
embeddedIcons: geoJSON.vcsEmbeddedIcons,
|
|
355
|
-
style: geoJSON.vcsStyle,
|
|
356
352
|
} as VcsMeta);
|
|
357
353
|
|
|
358
354
|
let style;
|
|
@@ -16,6 +16,9 @@ export type GeoJSONOptions = VectorOptions & {
|
|
|
16
16
|
*/
|
|
17
17
|
export const featureFromOptions = Symbol('featureFromOptions');
|
|
18
18
|
|
|
19
|
+
/**
|
|
20
|
+
* @group Layer
|
|
21
|
+
*/
|
|
19
22
|
class GeoJSONLayer extends VectorLayer {
|
|
20
23
|
static get className(): string {
|
|
21
24
|
return 'GeoJSONLayer';
|
package/src/layer/layer.ts
CHANGED
|
@@ -2,7 +2,6 @@ import { check, checkMaybe } from '@vcsuite/check';
|
|
|
2
2
|
import { parseBoolean, parseInteger } from '@vcsuite/parsers';
|
|
3
3
|
import VcsObject, { VcsObjectOptions } from '../vcsObject.js';
|
|
4
4
|
import Extent, { type ExtentOptions } from '../util/extent.js';
|
|
5
|
-
import { vcsLayerName } from './layerSymbols.js';
|
|
6
5
|
import LayerState from './layerState.js';
|
|
7
6
|
import VcsEvent from '../vcsEvent.js';
|
|
8
7
|
import { layerClassRegistry } from '../classRegistry.js';
|
|
@@ -56,6 +55,7 @@ export type LayerImplementationOptions = {
|
|
|
56
55
|
* Abstract base class for Layers.
|
|
57
56
|
* To create a layer Implementation the function `createImplementationsForMap` has to be implemented.
|
|
58
57
|
* To receive implementation options, implement `geImplementationOptions`
|
|
58
|
+
* @group Layer
|
|
59
59
|
*/
|
|
60
60
|
class Layer<
|
|
61
61
|
I extends LayerImplementation<VcsMap> = LayerImplementation<VcsMap>,
|
|
@@ -64,14 +64,6 @@ class Layer<
|
|
|
64
64
|
return 'Layer';
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
/**
|
|
68
|
-
* Symbol to declare a layers name on its visualizations, e.g. ol.layer.Layer, Cesium.Cesium3DTileset
|
|
69
|
-
* @deprecated
|
|
70
|
-
*/
|
|
71
|
-
static get vcsLayerNameSymbol(): symbol {
|
|
72
|
-
return vcsLayerName;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
67
|
static getDefaultOptions(): LayerOptions {
|
|
76
68
|
return {
|
|
77
69
|
name: undefined,
|
|
@@ -29,6 +29,7 @@ export const defaultPointCloudStyle = new DeclarativeStyleItem({});
|
|
|
29
29
|
* <li>url: string: url to the p3dm dataset
|
|
30
30
|
* <li>pointSize: number: size of the points to display
|
|
31
31
|
* </ul>
|
|
32
|
+
* @group Layer
|
|
32
33
|
*/
|
|
33
34
|
class PointCloudLayer extends CesiumTilesetLayer {
|
|
34
35
|
static get className(): string {
|
package/src/layer/rasterLayer.ts
CHANGED
|
@@ -149,6 +149,7 @@ export function calculateMinLevel(
|
|
|
149
149
|
/**
|
|
150
150
|
* This abstract class allows for automatic loading scheme determination
|
|
151
151
|
* for raster layers
|
|
152
|
+
* @group Layer
|
|
152
153
|
*/
|
|
153
154
|
class RasterLayer<
|
|
154
155
|
I extends LayerImplementation<VcsMap> & RasterLayerImplementation,
|
|
@@ -20,6 +20,9 @@ export type TerrainImplementationOptions = LayerImplementationOptions & {
|
|
|
20
20
|
requestWaterMask: boolean;
|
|
21
21
|
};
|
|
22
22
|
|
|
23
|
+
/**
|
|
24
|
+
* @group Layer
|
|
25
|
+
*/
|
|
23
26
|
class TerrainLayer extends Layer<TerrainCesiumImpl> {
|
|
24
27
|
static get className(): string {
|
|
25
28
|
return 'TerrainLayer';
|
package/src/layer/tmsLayer.ts
CHANGED
|
@@ -21,6 +21,9 @@ export type TMSImplementationOptions = RasterLayerImplementationOptions & {
|
|
|
21
21
|
tileSize: Size;
|
|
22
22
|
};
|
|
23
23
|
|
|
24
|
+
/**
|
|
25
|
+
* @group Layer
|
|
26
|
+
*/
|
|
24
27
|
class TMSLayer extends RasterLayer<TmsCesiumImpl | TmsOpenlayersImpl> {
|
|
25
28
|
static get className(): string {
|
|
26
29
|
return 'TMSLayer';
|
package/src/layer/vectorLayer.ts
CHANGED
|
@@ -33,13 +33,7 @@ import DeclarativeStyleItem, {
|
|
|
33
33
|
DeclarativeStyleItemOptions,
|
|
34
34
|
} from '../style/declarativeStyleItem.js';
|
|
35
35
|
import writeStyle from '../style/writeStyle.js';
|
|
36
|
-
import {
|
|
37
|
-
alreadyTransformedToImage,
|
|
38
|
-
alreadyTransformedToMercator,
|
|
39
|
-
doNotTransform,
|
|
40
|
-
obliqueGeometry,
|
|
41
|
-
originalFeatureSymbol,
|
|
42
|
-
} from './vectorSymbols.js';
|
|
36
|
+
import { alreadyTransformedToMercator } from './vectorSymbols.js';
|
|
43
37
|
import Extent from '../util/extent.js';
|
|
44
38
|
import VectorProperties, {
|
|
45
39
|
VcsMeta,
|
|
@@ -144,6 +138,7 @@ export type VectorImplementationOptions = FeatureLayerImplementationOptions & {
|
|
|
144
138
|
|
|
145
139
|
/**
|
|
146
140
|
* VectorLayer Layer for OpenlayersMap, Cesium and ObliqueMap
|
|
141
|
+
* @group Layer
|
|
147
142
|
*/
|
|
148
143
|
class VectorLayer
|
|
149
144
|
extends FeatureLayer<
|
|
@@ -158,41 +153,6 @@ class VectorLayer
|
|
|
158
153
|
return 'VectorLayer';
|
|
159
154
|
}
|
|
160
155
|
|
|
161
|
-
/**
|
|
162
|
-
* @deprecated
|
|
163
|
-
*/
|
|
164
|
-
static get alreadyTransformedToMercator(): symbol {
|
|
165
|
-
return alreadyTransformedToMercator;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
/**
|
|
169
|
-
* @deprecated
|
|
170
|
-
*/
|
|
171
|
-
static get alreadyTransformedToImage(): symbol {
|
|
172
|
-
return alreadyTransformedToImage;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
/**
|
|
176
|
-
* @deprecated
|
|
177
|
-
*/
|
|
178
|
-
static get obliqueGeometry(): symbol {
|
|
179
|
-
return obliqueGeometry;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
/**
|
|
183
|
-
* @deprecated
|
|
184
|
-
*/
|
|
185
|
-
static get doNotTransform(): symbol {
|
|
186
|
-
return doNotTransform;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
/**
|
|
190
|
-
* @deprecated
|
|
191
|
-
*/
|
|
192
|
-
static get originalFeatureSymbol(): symbol {
|
|
193
|
-
return originalFeatureSymbol;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
156
|
static getDefaultOptions(): VectorOptions {
|
|
197
157
|
return {
|
|
198
158
|
...Layer.getDefaultOptions(),
|
|
@@ -113,7 +113,6 @@ export type VectorPropertiesOptions = {
|
|
|
113
113
|
storeysBelowGround?: number;
|
|
114
114
|
storeyHeightsAboveGround?: number[] | number;
|
|
115
115
|
storeyHeightsBelowGround?: number[] | number;
|
|
116
|
-
storeyHeight?: number;
|
|
117
116
|
modelUrl?: string;
|
|
118
117
|
modelScaleX?: number;
|
|
119
118
|
modelScaleY?: number;
|
|
@@ -302,7 +301,6 @@ class VectorProperties {
|
|
|
302
301
|
storeysBelowGround: 0,
|
|
303
302
|
storeyHeightsAboveGround: [],
|
|
304
303
|
storeyHeightsBelowGround: [],
|
|
305
|
-
storeyHeight: undefined,
|
|
306
304
|
modelUrl: undefined,
|
|
307
305
|
modelScaleX: 1,
|
|
308
306
|
modelScaleY: 1,
|
|
@@ -343,11 +341,6 @@ class VectorProperties {
|
|
|
343
341
|
|
|
344
342
|
private _storeyHeightsBelowGround: number[];
|
|
345
343
|
|
|
346
|
-
/**
|
|
347
|
-
* @deprecated v3.8
|
|
348
|
-
*/
|
|
349
|
-
private _storeyHeight: number | undefined;
|
|
350
|
-
|
|
351
344
|
private _modelUrl: string | undefined;
|
|
352
345
|
|
|
353
346
|
private _modelScaleX: number;
|
|
@@ -441,11 +434,6 @@ class VectorProperties {
|
|
|
441
434
|
defaultValues.storeyHeightsBelowGround,
|
|
442
435
|
);
|
|
443
436
|
|
|
444
|
-
this._storeyHeight = parseNumber(
|
|
445
|
-
options.storeyHeight,
|
|
446
|
-
defaultValues.storeyHeight,
|
|
447
|
-
);
|
|
448
|
-
|
|
449
437
|
this._modelUrl = options.modelUrl ?? defaultValues.modelUrl;
|
|
450
438
|
|
|
451
439
|
this._modelScaleX = parseNumber(
|
|
@@ -738,26 +726,6 @@ class VectorProperties {
|
|
|
738
726
|
);
|
|
739
727
|
}
|
|
740
728
|
|
|
741
|
-
/**
|
|
742
|
-
* @deprecated v3.8
|
|
743
|
-
*/
|
|
744
|
-
get storeyHeight(): number | undefined {
|
|
745
|
-
return this._storeyHeight;
|
|
746
|
-
}
|
|
747
|
-
|
|
748
|
-
/**
|
|
749
|
-
* @param value
|
|
750
|
-
* @deprecated v3.8
|
|
751
|
-
*/
|
|
752
|
-
set storeyHeight(value: number | undefined) {
|
|
753
|
-
if (value !== this._storeyHeight) {
|
|
754
|
-
getLogger().deprecate('storeyHeight', 'use storeyHeightAboveGround');
|
|
755
|
-
check(value, Number);
|
|
756
|
-
this._storeyHeight = value;
|
|
757
|
-
this.propertyChanged.raiseEvent(['storeyHeight']);
|
|
758
|
-
}
|
|
759
|
-
}
|
|
760
|
-
|
|
761
729
|
get modelUrl(): string | undefined {
|
|
762
730
|
return this._modelUrl;
|
|
763
731
|
}
|
|
@@ -1199,18 +1167,6 @@ class VectorProperties {
|
|
|
1199
1167
|
}
|
|
1200
1168
|
}
|
|
1201
1169
|
|
|
1202
|
-
if ('storeyHeight' in options) {
|
|
1203
|
-
const parsedStoreyHeight = parseNumber(
|
|
1204
|
-
options.storeyHeight,
|
|
1205
|
-
defaultValues.storeyHeight,
|
|
1206
|
-
);
|
|
1207
|
-
if (parsedStoreyHeight !== this._storeyHeight) {
|
|
1208
|
-
getLogger().deprecate('storeyHeight', 'use storeyHeightAboveGround');
|
|
1209
|
-
this._storeyHeight = parsedStoreyHeight;
|
|
1210
|
-
changedProperties.push('storeyHeight');
|
|
1211
|
-
}
|
|
1212
|
-
}
|
|
1213
|
-
|
|
1214
1170
|
if ('modelUrl' in options) {
|
|
1215
1171
|
if (options.modelUrl !== this._modelUrl) {
|
|
1216
1172
|
this._modelUrl = options.modelUrl ?? '';
|
|
@@ -1311,7 +1267,6 @@ class VectorProperties {
|
|
|
1311
1267
|
storeysBelowGround: this.storeysBelowGround,
|
|
1312
1268
|
storeyHeightsAboveGround: this.storeyHeightsAboveGround,
|
|
1313
1269
|
storeyHeightsBelowGround: this.storeyHeightsBelowGround,
|
|
1314
|
-
storeyHeight: this.storeyHeight,
|
|
1315
1270
|
modelUrl: this.modelUrl,
|
|
1316
1271
|
modelScaleX: this.modelScaleX,
|
|
1317
1272
|
modelScaleY: this.modelScaleY,
|
|
@@ -1394,9 +1349,6 @@ class VectorProperties {
|
|
|
1394
1349
|
) {
|
|
1395
1350
|
vcsMeta.storeyHeightsBelowGround = this.storeyHeightsBelowGround;
|
|
1396
1351
|
}
|
|
1397
|
-
if (this.storeyHeight !== defaultValues.storeyHeight) {
|
|
1398
|
-
vcsMeta.storeyHeight = this.storeyHeight;
|
|
1399
|
-
}
|
|
1400
1352
|
if (this.modelUrl !== defaultValues.modelUrl) {
|
|
1401
1353
|
vcsMeta.modelUrl = this.modelUrl;
|
|
1402
1354
|
}
|
|
@@ -102,6 +102,7 @@ export interface VectorTileImplementation extends FeatureLayerImplementation {
|
|
|
102
102
|
|
|
103
103
|
/**
|
|
104
104
|
* VectorTileLayer Layer for tiled vector Data. Can be connected to data with a TileProvider
|
|
105
|
+
* @group Layer
|
|
105
106
|
*/
|
|
106
107
|
class VectorTileLayer extends FeatureLayer<
|
|
107
108
|
VectorTileOpenlayersImpl | VectorRasterTileCesiumImpl
|
package/src/layer/wfsLayer.ts
CHANGED
package/src/layer/wmsLayer.ts
CHANGED
package/src/layer/wmtsLayer.ts
CHANGED
package/src/map/baseOLMap.ts
CHANGED
package/src/map/cesiumMap.ts
CHANGED
|
@@ -74,6 +74,12 @@ export type CesiumMapOptions = VcsMapOptions & {
|
|
|
74
74
|
* the color of the globe, if no image is provided
|
|
75
75
|
*/
|
|
76
76
|
globeColor?: string;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* use Original Cesium Shader, otherwise the VCS Customized Shader will be used.
|
|
80
|
+
* This is a global Setting for all VCMap Instances on the same page.
|
|
81
|
+
*/
|
|
82
|
+
useOriginalCesiumShader?: boolean;
|
|
77
83
|
};
|
|
78
84
|
|
|
79
85
|
export type CesiumMapEvent = {
|
|
@@ -265,6 +271,7 @@ export type CesiumVisualisationType =
|
|
|
265
271
|
|
|
266
272
|
/**
|
|
267
273
|
* Cesium Globe Map Class (3D map)
|
|
274
|
+
* @group Map
|
|
268
275
|
*/
|
|
269
276
|
class CesiumMap extends VcsMap<CesiumVisualisationType> {
|
|
270
277
|
static get className(): string {
|
|
@@ -279,6 +286,7 @@ class CesiumMap extends VcsMap<CesiumVisualisationType> {
|
|
|
279
286
|
webGLaa: false,
|
|
280
287
|
cameraLimiter: undefined,
|
|
281
288
|
globeColor: '#3f47cc',
|
|
289
|
+
useOriginalCesiumShader: false,
|
|
282
290
|
};
|
|
283
291
|
}
|
|
284
292
|
|
|
@@ -334,6 +342,8 @@ class CesiumMap extends VcsMap<CesiumVisualisationType> {
|
|
|
334
342
|
|
|
335
343
|
private _lastEventFrameNumber: number | null;
|
|
336
344
|
|
|
345
|
+
private _useOriginalCesiumShader: boolean;
|
|
346
|
+
|
|
337
347
|
constructor(options: CesiumMapOptions) {
|
|
338
348
|
super(options);
|
|
339
349
|
|
|
@@ -366,6 +376,11 @@ class CesiumMap extends VcsMap<CesiumVisualisationType> {
|
|
|
366
376
|
|
|
367
377
|
this.webGLaa = parseBoolean(options.webGLaa, defaultOptions.webGLaa);
|
|
368
378
|
|
|
379
|
+
this._useOriginalCesiumShader = parseBoolean(
|
|
380
|
+
options.useOriginalCesiumShader,
|
|
381
|
+
defaultOptions.useOriginalCesiumShader,
|
|
382
|
+
);
|
|
383
|
+
|
|
369
384
|
this.globeColor = Color.fromCssColorString(
|
|
370
385
|
options.globeColor || (defaultOptions.globeColor as string),
|
|
371
386
|
);
|
|
@@ -578,6 +593,17 @@ class CesiumMap extends VcsMap<CesiumVisualisationType> {
|
|
|
578
593
|
|
|
579
594
|
initialize(): Promise<void> {
|
|
580
595
|
if (!this.initialized) {
|
|
596
|
+
if (!this._useOriginalCesiumShader) {
|
|
597
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
598
|
+
// @ts-ignore
|
|
599
|
+
globalThis.useVcsCustomShading = true;
|
|
600
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
601
|
+
// @ts-ignore
|
|
602
|
+
} else if (globalThis.useVcsCustomShading) {
|
|
603
|
+
console.error(
|
|
604
|
+
'Cannot activate Original Cesium Shader, flag to use VCS Shader is already set by another Cesium Map or VCMap Instance',
|
|
605
|
+
);
|
|
606
|
+
}
|
|
581
607
|
this._cesiumWidget = new CesiumWidget(this.mapElement, {
|
|
582
608
|
requestRenderMode: false,
|
|
583
609
|
scene3DOnly: true,
|
package/src/map/obliqueMap.ts
CHANGED
|
@@ -69,6 +69,9 @@ export function getMercatorViewpointCenter(viewpoint: Viewpoint): Coordinate {
|
|
|
69
69
|
return transform(gpWGS84, wgs84Projection.proj, mercatorProjection.proj);
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
+
/**
|
|
73
|
+
* @group Map
|
|
74
|
+
*/
|
|
72
75
|
class ObliqueMap extends BaseOLMap {
|
|
73
76
|
static get className(): string {
|
|
74
77
|
return 'ObliqueMap';
|
package/src/map/openlayersMap.ts
CHANGED
package/src/map/vcsMap.ts
CHANGED
package/src/ol/geojson.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { GeoJsonProperties, Geometry } from 'geojson';
|
|
2
|
-
import type { StyleItemOptions } from '../style/styleItem.js';
|
|
3
2
|
import type { VcsMeta } from '../layer/vectorProperties.js';
|
|
4
3
|
import { FeatureStoreLayerState } from '../layer/featureStoreLayerState.js';
|
|
5
4
|
|
|
@@ -16,10 +15,6 @@ declare module 'geojson' {
|
|
|
16
15
|
id?: string | number;
|
|
17
16
|
radius?: G extends Point ? number : never;
|
|
18
17
|
vcsMeta?: VcsMeta;
|
|
19
|
-
/**
|
|
20
|
-
* @deprecated
|
|
21
|
-
*/
|
|
22
|
-
vcsStyle?: StyleItemOptions;
|
|
23
18
|
state?: FeatureStoreLayerState;
|
|
24
19
|
}
|
|
25
20
|
|
|
@@ -29,6 +24,5 @@ declare module 'geojson' {
|
|
|
29
24
|
| { type: 'EPSG'; properties: { code: string } };
|
|
30
25
|
vcsMeta?: VcsMeta;
|
|
31
26
|
vcsEmbeddedIcons?: string[];
|
|
32
|
-
vcsStyle?: StyleItemOptions;
|
|
33
27
|
}
|
|
34
28
|
}
|
package/src/ol/ol.d.ts
CHANGED
|
@@ -22,10 +22,7 @@ import {
|
|
|
22
22
|
originalFeatureSymbol,
|
|
23
23
|
} from '../layer/vectorSymbols.js';
|
|
24
24
|
import { vcsLayerName } from '../layer/layerSymbols.js';
|
|
25
|
-
import {
|
|
26
|
-
isProvidedFeature,
|
|
27
|
-
showProvidedFeature,
|
|
28
|
-
} from '../featureProvider/featureProviderSymbols.js';
|
|
25
|
+
import { isProvidedFeature } from '../featureProvider/featureProviderSymbols.js';
|
|
29
26
|
import {
|
|
30
27
|
globalHidden,
|
|
31
28
|
hidden,
|
|
@@ -90,7 +87,6 @@ declare module 'ol/index.js' {
|
|
|
90
87
|
[vectorStyleSymbol]?: VectorStyleItem;
|
|
91
88
|
[featureArcStruct]?: ArcStruct;
|
|
92
89
|
[isProvidedFeature]?: boolean;
|
|
93
|
-
[showProvidedFeature]?: boolean;
|
|
94
90
|
[globalHidden]?: boolean;
|
|
95
91
|
[hidden]?: boolean;
|
|
96
92
|
[highlighted]?: VectorStyleItem;
|
|
@@ -90,6 +90,7 @@ function addCustomProperty(
|
|
|
90
90
|
|
|
91
91
|
/**
|
|
92
92
|
* Style Object {@link https://github.com/AnalyticalGraphicsInc/3d-tiles/tree/master/Styling}
|
|
93
|
+
* @group Style
|
|
93
94
|
*/
|
|
94
95
|
class DeclarativeStyleItem extends StyleItem {
|
|
95
96
|
static get className(): string {
|
|
@@ -220,9 +221,7 @@ class DeclarativeStyleItem extends StyleItem {
|
|
|
220
221
|
|
|
221
222
|
private _styleLineString(feature: Feature): Style {
|
|
222
223
|
const style = new Style({});
|
|
223
|
-
const isExtruded =
|
|
224
|
-
(feature.get('olcs_storeyHeight') &&
|
|
225
|
-
feature.get('olcs_storeyNumber'))) as boolean;
|
|
224
|
+
const isExtruded = !!feature.get('olcs_extrudedHeight');
|
|
226
225
|
const color = this.cesiumStyle.color
|
|
227
226
|
? this.cesiumStyle.color.evaluate<Color>(feature, scratchColor)
|
|
228
227
|
: Color.WHITE;
|