@vcmap/core 5.0.0-rc.10 → 5.0.0-rc.13
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/index.d.ts +201 -125
- package/index.js +2 -3
- package/package.json +6 -2
- package/src/category/category.js +21 -5
- package/src/classRegistry.js +0 -6
- package/src/context.js +0 -1
- package/src/featureProvider/abstractFeatureProvider.js +0 -1
- package/src/featureProvider/wmsFeatureProvider.js +0 -1
- package/src/interaction/abstractInteraction.js +0 -1
- package/src/interaction/interactionChain.js +0 -1
- package/src/interaction/interactionType.js +1 -5
- package/src/layer/cesium/cesiumTilesetCesiumImpl.js +2 -3
- package/src/layer/cesium/dataSourceCesiumImpl.js +0 -1
- package/src/layer/cesium/openStreetMapCesiumImpl.js +0 -1
- package/src/layer/cesium/rasterLayerCesiumImpl.js +0 -1
- package/src/layer/cesium/singleImageCesiumImpl.js +0 -1
- package/src/layer/cesium/terrainCesiumImpl.js +0 -1
- package/src/layer/cesium/tmsCesiumImpl.js +0 -1
- package/src/layer/cesium/vectorCesiumImpl.js +3 -4
- package/src/layer/cesium/vectorRasterTileCesiumImpl.js +0 -1
- package/src/layer/cesium/vectorTileImageryProvider.js +0 -1
- package/src/layer/cesium/wmsCesiumImpl.js +0 -1
- package/src/layer/cesium/wmtsCesiumImpl.js +0 -1
- package/src/layer/cesiumTilesetLayer.js +0 -1
- package/src/layer/czmlLayer.js +0 -1
- package/src/layer/dataSourceLayer.js +25 -16
- package/src/layer/featureLayer.js +10 -1
- package/src/layer/featureStoreLayer.js +1 -1
- package/src/layer/featureStoreLayerState.js +0 -1
- package/src/layer/featureVisibility.js +3 -1
- package/src/layer/geojsonHelpers.js +0 -4
- package/src/layer/geojsonLayer.js +0 -1
- package/src/layer/globalHider.js +7 -21
- package/src/layer/layer.js +84 -38
- package/src/layer/layerImplementation.js +0 -1
- package/src/layer/layerState.js +0 -1
- package/src/layer/oblique/vectorObliqueImpl.js +1 -3
- package/src/layer/openStreetMapLayer.js +0 -1
- package/src/layer/openlayers/layerOpenlayersImpl.js +0 -1
- package/src/layer/openlayers/openStreetMapOpenlayersImpl.js +0 -1
- package/src/layer/openlayers/singleImageOpenlayersImpl.js +0 -1
- package/src/layer/openlayers/tileDebugOpenlayersImpl.js +0 -1
- package/src/layer/openlayers/tmsOpenlayersImpl.js +0 -1
- package/src/layer/openlayers/vectorOpenlayersImpl.js +2 -3
- package/src/layer/openlayers/vectorTileOpenlayersImpl.js +0 -1
- package/src/layer/openlayers/wmsOpenlayersImpl.js +0 -1
- package/src/layer/openlayers/wmtsOpenlayersImpl.js +0 -1
- package/src/layer/pointCloudLayer.js +0 -1
- package/src/layer/rasterLayer.js +0 -2
- package/src/layer/singleImageLayer.js +0 -1
- package/src/layer/terrainLayer.js +0 -1
- package/src/layer/tileProvider/mvtTileProvider.js +21 -2
- package/src/layer/tileProvider/staticGeojsonTileProvider.js +0 -1
- package/src/layer/tileProvider/tileProvider.js +27 -1
- package/src/layer/tileProvider/urlTemplateTileProvider.js +26 -6
- package/src/layer/tmsLayer.js +0 -1
- package/src/layer/vectorLayer.js +0 -1
- package/src/layer/vectorProperties.js +0 -1
- package/src/layer/vectorTileLayer.js +45 -13
- package/src/layer/wfsLayer.js +0 -1
- package/src/layer/wmsLayer.js +0 -1
- package/src/layer/wmtsLayer.js +0 -1
- package/src/map/baseOLMap.js +0 -1
- package/src/map/cameraLimiter.js +0 -1
- package/src/map/cesiumMap.js +0 -1
- package/src/map/mapState.js +0 -1
- package/src/map/obliqueMap.js +0 -1
- package/src/map/openlayersMap.js +0 -1
- package/src/map/vcsMap.js +6 -2
- package/src/oblique/helpers.js +0 -3
- package/src/oblique/obliqueCollection.js +0 -1
- package/src/oblique/obliqueDataSet.js +0 -2
- package/src/oblique/obliqueImage.js +0 -1
- package/src/oblique/obliqueImageMeta.js +0 -1
- package/src/oblique/obliqueProvider.js +0 -1
- package/src/oblique/obliqueView.js +0 -1
- package/src/oblique/obliqueViewDirection.js +0 -3
- package/src/ol/render/canvas/canvasTileRenderer.js +0 -1
- package/src/style/declarativeStyleItem.js +0 -1
- package/src/style/shapesCategory.js +0 -2
- package/src/style/styleHelpers.js +0 -11
- package/src/style/styleItem.js +0 -1
- package/src/style/vectorStyleItem.js +0 -4
- package/src/util/clipping/clippingObject.js +0 -2
- package/src/util/clipping/clippingObjectManager.js +0 -1
- package/src/util/clipping/clippingPlaneHelper.js +0 -4
- package/src/util/collection.js +15 -3
- package/src/util/extent.js +0 -1
- package/src/util/indexedCollection.js +0 -1
- package/src/util/layerCollection.js +71 -6
- package/src/util/locale.js +1 -42
- package/src/util/mapCollection.js +29 -14
- package/src/util/overrideCollection.js +8 -9
- package/src/util/projection.js +0 -5
- package/src/util/viewpoint.js +0 -4
- package/src/vcsApp.js +53 -0
- package/src/vcsEvent.js +0 -1
- package/tests/data/buildings/tileset.json +428 -0
- package/tests/data/dynamicPointCzml.json +64 -0
- package/tests/data/oblique/imageData/imagev34.json +352 -0
- package/tests/data/oblique/imageData/imagev35.json +54 -0
- package/tests/data/oblique/imageData/imagev35PerImageSize.json +53 -0
- package/tests/data/oblique/tiledImageData/12/2199/1342.json +1 -0
- package/tests/data/oblique/tiledImageData/12/2199/1343.json +1 -0
- package/tests/data/oblique/tiledImageData/12/2199/1344.json +1 -0
- package/tests/data/oblique/tiledImageData/12/2200/1342.json +1 -0
- package/tests/data/oblique/tiledImageData/12/2200/1343.json +1 -0
- package/tests/data/oblique/tiledImageData/12/2200/1344.json +1 -0
- package/tests/data/oblique/tiledImageData/12/2201/1342.json +1 -0
- package/tests/data/oblique/tiledImageData/12/2201/1343.json +1 -0
- package/tests/data/oblique/tiledImageData/12/2201/1344.json +1 -0
- package/tests/data/oblique/tiledImageData/image.json +1 -0
- package/tests/data/terrain/13/8800/6485.terrain +0 -0
- package/tests/data/terrain/13/8800/6486.terrain +0 -0
- package/tests/data/terrain/13/8801/6485.terrain +0 -0
- package/tests/data/terrain/13/8801/6486.terrain +0 -0
- package/tests/data/terrain/layer.json +136 -0
- package/tests/data/testGeoJSON.json +161 -0
- package/tests/data/tile.pbf +0 -0
- package/tests/unit/helpers/cesiumHelpers.js +272 -0
- package/tests/unit/helpers/getFileNameFromUrl.js +12 -0
- package/tests/unit/helpers/helpers.js +11 -0
- package/tests/unit/helpers/imageHelpers.js +20 -0
- package/tests/unit/helpers/importJSON.js +15 -0
- package/tests/unit/helpers/obliqueData.js +76 -0
- package/tests/unit/helpers/obliqueHelpers.js +112 -0
- package/tests/unit/helpers/openlayersHelpers.js +22 -0
- package/tests/unit/helpers/terrain/terrainData.js +46 -0
- package/src/util/dateTime.js +0 -60
package/index.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export interface CategoryOptions extends VcsObjectOptions {
|
|
|
20
20
|
/**
|
|
21
21
|
* the class registry name on the current app to provide classes for this category. if provided, parseItems will deserialize using this class registry. See: {@link getObjectFromClassRegistry}.
|
|
22
22
|
*/
|
|
23
|
-
classRegistryName?: string;
|
|
23
|
+
classRegistryName?: string | symbol;
|
|
24
24
|
featureProperty?: string | undefined;
|
|
25
25
|
layerOptions?: VectorOptions;
|
|
26
26
|
/**
|
|
@@ -44,11 +44,15 @@ export class Category<T extends Object|VcsObject> extends VcsObject {
|
|
|
44
44
|
};
|
|
45
45
|
protected _app: VcsApp;
|
|
46
46
|
protected _layer: VectorLayer;
|
|
47
|
-
readonly classRegistryName: string;
|
|
47
|
+
readonly classRegistryName: string | symbol;
|
|
48
48
|
/**
|
|
49
49
|
* The collection of this category.
|
|
50
50
|
*/
|
|
51
51
|
readonly collection: OverrideCollection<T>;
|
|
52
|
+
/**
|
|
53
|
+
* Event raised if the collection is reset
|
|
54
|
+
*/
|
|
55
|
+
readonly collectionChanged: VcsEvent<void>;
|
|
52
56
|
/**
|
|
53
57
|
* Returns the layer of this collection. Caution, do not use the layer API to add or remove items.
|
|
54
58
|
* When adding items to the collection, the features are added to the layer async (timeout of 0), since there is weird behavior
|
|
@@ -65,7 +69,7 @@ export class Category<T extends Object|VcsObject> extends VcsObject {
|
|
|
65
69
|
*/
|
|
66
70
|
mergeOptions(options: CategoryOptions): void;
|
|
67
71
|
/**
|
|
68
|
-
* When setting the category, it MUST use the same
|
|
72
|
+
* When setting the category, it MUST use the same uniqueKey as the previous collection (default is "name").
|
|
69
73
|
* All items in the current collection _will be destroyed_ and the current collection will be destroyed. The category will take
|
|
70
74
|
* complete ownership of the collection and destroy it once the category is destroyed. The collection will
|
|
71
75
|
* be turned into an {@see OverrideCollection}.
|
|
@@ -677,7 +681,7 @@ export class InteractionChain extends AbstractInteraction {
|
|
|
677
681
|
}
|
|
678
682
|
|
|
679
683
|
/**
|
|
680
|
-
* Provides
|
|
684
|
+
* Provides information to other interaction plugins for creating bitmasks
|
|
681
685
|
*/
|
|
682
686
|
export class BitCounter {
|
|
683
687
|
static interactionTypeCounter: any;
|
|
@@ -749,6 +753,7 @@ export class CesiumTilesetCesiumImpl extends LayerImplementation<CesiumMap> impl
|
|
|
749
753
|
splitDirection: import("@vcmap/cesium").SplitDirection;
|
|
750
754
|
style: StyleItem;
|
|
751
755
|
featureVisibility: FeatureVisibility;
|
|
756
|
+
globalHider: GlobalHider;
|
|
752
757
|
tilesetProperties: CesiumTilesetTilesetProperties[];
|
|
753
758
|
modelMatrix: import("@vcmap/cesium").Matrix4;
|
|
754
759
|
offset: import("ol/coordinate").Coordinate;
|
|
@@ -878,6 +883,7 @@ export class VectorCesiumImpl extends LayerImplementation<CesiumMap> implements
|
|
|
878
883
|
featureVisibility: FeatureVisibility;
|
|
879
884
|
|
|
880
885
|
protected _context: VectorContext | ClusterContext | null;
|
|
886
|
+
globalHider: GlobalHider;
|
|
881
887
|
protected _setupContext(cesiumMap: CesiumMap): Promise<void>;
|
|
882
888
|
initialize(): Promise<void>;
|
|
883
889
|
/**
|
|
@@ -1147,19 +1153,15 @@ export class CesiumTilesetLayer extends FeatureLayer implements SplitLayer {
|
|
|
1147
1153
|
* The class names of the supported maps.
|
|
1148
1154
|
*/
|
|
1149
1155
|
protected _supportedMaps: string[];
|
|
1156
|
+
protected _url: string | any;
|
|
1150
1157
|
/**
|
|
1151
1158
|
* Called when the zIndex of this layer is changed. Is passed the new zIndex as its only argument.
|
|
1152
1159
|
*/
|
|
1153
1160
|
zIndexChanged: VcsEvent<number>;
|
|
1154
|
-
/**
|
|
1155
|
-
* array of object Ids which should be hidden within the context of the layers layerCollection, if this layer is active
|
|
1156
|
-
*/
|
|
1157
|
-
hiddenObjectIds: string[];
|
|
1158
1161
|
/**
|
|
1159
1162
|
* event raised if the exclusives group of the layer changes. is passed the array of exclusive groups as its only argument
|
|
1160
1163
|
*/
|
|
1161
1164
|
exclusiveGroupsChanged: VcsEvent<(string | symbol)[]>;
|
|
1162
|
-
globalHider: GlobalHider;
|
|
1163
1165
|
copyright: CopyrightOptions | undefined;
|
|
1164
1166
|
/**
|
|
1165
1167
|
* Event raised, if the layers state changes. Is passed the LayerState as its only parameter
|
|
@@ -1181,6 +1183,8 @@ export class CesiumTilesetLayer extends FeatureLayer implements SplitLayer {
|
|
|
1181
1183
|
* A layers url, should on be configured, else an empty string
|
|
1182
1184
|
*/
|
|
1183
1185
|
url: string;
|
|
1186
|
+
hiddenObjectIds: string[];
|
|
1187
|
+
readonly globalHider: GlobalHider | null;
|
|
1184
1188
|
/**
|
|
1185
1189
|
* Indicates, that this layer is part of an exclusiveGroup
|
|
1186
1190
|
*/
|
|
@@ -1190,6 +1194,10 @@ export class CesiumTilesetLayer extends FeatureLayer implements SplitLayer {
|
|
|
1190
1194
|
*/
|
|
1191
1195
|
readonly exclusiveGroups: any;
|
|
1192
1196
|
zIndex: number;
|
|
1197
|
+
/**
|
|
1198
|
+
* returns the currently set locale. Can be used to provide locale specific URLs.
|
|
1199
|
+
*/
|
|
1200
|
+
locale: string;
|
|
1193
1201
|
/**
|
|
1194
1202
|
* unique Name
|
|
1195
1203
|
*/
|
|
@@ -1238,19 +1246,15 @@ export class CzmlLayer extends DataSourceLayer {
|
|
|
1238
1246
|
* The class names of the supported maps.
|
|
1239
1247
|
*/
|
|
1240
1248
|
protected _supportedMaps: string[];
|
|
1249
|
+
protected _url: string | any;
|
|
1241
1250
|
/**
|
|
1242
1251
|
* Called when the zIndex of this layer is changed. Is passed the new zIndex as its only argument.
|
|
1243
1252
|
*/
|
|
1244
1253
|
zIndexChanged: VcsEvent<number>;
|
|
1245
|
-
/**
|
|
1246
|
-
* array of object Ids which should be hidden within the context of the layers layerCollection, if this layer is active
|
|
1247
|
-
*/
|
|
1248
|
-
hiddenObjectIds: string[];
|
|
1249
1254
|
/**
|
|
1250
1255
|
* event raised if the exclusives group of the layer changes. is passed the array of exclusive groups as its only argument
|
|
1251
1256
|
*/
|
|
1252
1257
|
exclusiveGroupsChanged: VcsEvent<(string | symbol)[]>;
|
|
1253
|
-
globalHider: GlobalHider;
|
|
1254
1258
|
copyright: CopyrightOptions | undefined;
|
|
1255
1259
|
/**
|
|
1256
1260
|
* Event raised, if the layers state changes. Is passed the LayerState as its only parameter
|
|
@@ -1272,6 +1276,8 @@ export class CzmlLayer extends DataSourceLayer {
|
|
|
1272
1276
|
* A layers url, should on be configured, else an empty string
|
|
1273
1277
|
*/
|
|
1274
1278
|
url: string;
|
|
1279
|
+
hiddenObjectIds: string[];
|
|
1280
|
+
readonly globalHider: GlobalHider | null;
|
|
1275
1281
|
/**
|
|
1276
1282
|
* Indicates, that this layer is part of an exclusiveGroup
|
|
1277
1283
|
*/
|
|
@@ -1281,6 +1287,10 @@ export class CzmlLayer extends DataSourceLayer {
|
|
|
1281
1287
|
*/
|
|
1282
1288
|
readonly exclusiveGroups: any;
|
|
1283
1289
|
zIndex: number;
|
|
1290
|
+
/**
|
|
1291
|
+
* returns the currently set locale. Can be used to provide locale specific URLs.
|
|
1292
|
+
*/
|
|
1293
|
+
locale: string;
|
|
1284
1294
|
/**
|
|
1285
1295
|
* unique Name
|
|
1286
1296
|
*/
|
|
@@ -1354,19 +1364,15 @@ export class DataSourceLayer extends Layer {
|
|
|
1354
1364
|
* The class names of the supported maps.
|
|
1355
1365
|
*/
|
|
1356
1366
|
protected _supportedMaps: string[];
|
|
1367
|
+
protected _url: string | any;
|
|
1357
1368
|
/**
|
|
1358
1369
|
* Called when the zIndex of this layer is changed. Is passed the new zIndex as its only argument.
|
|
1359
1370
|
*/
|
|
1360
1371
|
zIndexChanged: VcsEvent<number>;
|
|
1361
|
-
/**
|
|
1362
|
-
* array of object Ids which should be hidden within the context of the layers layerCollection, if this layer is active
|
|
1363
|
-
*/
|
|
1364
|
-
hiddenObjectIds: string[];
|
|
1365
1372
|
/**
|
|
1366
1373
|
* event raised if the exclusives group of the layer changes. is passed the array of exclusive groups as its only argument
|
|
1367
1374
|
*/
|
|
1368
1375
|
exclusiveGroupsChanged: VcsEvent<(string | symbol)[]>;
|
|
1369
|
-
globalHider: GlobalHider;
|
|
1370
1376
|
copyright: CopyrightOptions | undefined;
|
|
1371
1377
|
/**
|
|
1372
1378
|
* Event raised, if the layers state changes. Is passed the LayerState as its only parameter
|
|
@@ -1388,6 +1394,8 @@ export class DataSourceLayer extends Layer {
|
|
|
1388
1394
|
* A layers url, should on be configured, else an empty string
|
|
1389
1395
|
*/
|
|
1390
1396
|
url: string;
|
|
1397
|
+
hiddenObjectIds: string[];
|
|
1398
|
+
readonly globalHider: GlobalHider | null;
|
|
1391
1399
|
/**
|
|
1392
1400
|
* Indicates, that this layer is part of an exclusiveGroup
|
|
1393
1401
|
*/
|
|
@@ -1397,6 +1405,10 @@ export class DataSourceLayer extends Layer {
|
|
|
1397
1405
|
*/
|
|
1398
1406
|
readonly exclusiveGroups: any;
|
|
1399
1407
|
zIndex: number;
|
|
1408
|
+
/**
|
|
1409
|
+
* returns the currently set locale. Can be used to provide locale specific URLs.
|
|
1410
|
+
*/
|
|
1411
|
+
locale: string;
|
|
1400
1412
|
/**
|
|
1401
1413
|
* unique Name
|
|
1402
1414
|
*/
|
|
@@ -1421,6 +1433,7 @@ export interface FeatureLayerOptions extends LayerOptions {
|
|
|
1421
1433
|
}
|
|
1422
1434
|
|
|
1423
1435
|
export interface FeatureLayerImplementationOptions extends LayerImplementationOptions {
|
|
1436
|
+
globalHider: GlobalHider;
|
|
1424
1437
|
featureVisibility: FeatureVisibility;
|
|
1425
1438
|
style: StyleItem;
|
|
1426
1439
|
}
|
|
@@ -1496,19 +1509,15 @@ export class FeatureLayer extends Layer {
|
|
|
1496
1509
|
* The class names of the supported maps.
|
|
1497
1510
|
*/
|
|
1498
1511
|
protected _supportedMaps: string[];
|
|
1512
|
+
protected _url: string | any;
|
|
1499
1513
|
/**
|
|
1500
1514
|
* Called when the zIndex of this layer is changed. Is passed the new zIndex as its only argument.
|
|
1501
1515
|
*/
|
|
1502
1516
|
zIndexChanged: VcsEvent<number>;
|
|
1503
|
-
/**
|
|
1504
|
-
* array of object Ids which should be hidden within the context of the layers layerCollection, if this layer is active
|
|
1505
|
-
*/
|
|
1506
|
-
hiddenObjectIds: string[];
|
|
1507
1517
|
/**
|
|
1508
1518
|
* event raised if the exclusives group of the layer changes. is passed the array of exclusive groups as its only argument
|
|
1509
1519
|
*/
|
|
1510
1520
|
exclusiveGroupsChanged: VcsEvent<(string | symbol)[]>;
|
|
1511
|
-
globalHider: GlobalHider;
|
|
1512
1521
|
copyright: CopyrightOptions | undefined;
|
|
1513
1522
|
/**
|
|
1514
1523
|
* Event raised, if the layers state changes. Is passed the LayerState as its only parameter
|
|
@@ -1530,6 +1539,8 @@ export class FeatureLayer extends Layer {
|
|
|
1530
1539
|
* A layers url, should on be configured, else an empty string
|
|
1531
1540
|
*/
|
|
1532
1541
|
url: string;
|
|
1542
|
+
hiddenObjectIds: string[];
|
|
1543
|
+
readonly globalHider: GlobalHider | null;
|
|
1533
1544
|
/**
|
|
1534
1545
|
* Indicates, that this layer is part of an exclusiveGroup
|
|
1535
1546
|
*/
|
|
@@ -1539,6 +1550,10 @@ export class FeatureLayer extends Layer {
|
|
|
1539
1550
|
*/
|
|
1540
1551
|
readonly exclusiveGroups: any;
|
|
1541
1552
|
zIndex: number;
|
|
1553
|
+
/**
|
|
1554
|
+
* returns the currently set locale. Can be used to provide locale specific URLs.
|
|
1555
|
+
*/
|
|
1556
|
+
locale: string;
|
|
1542
1557
|
/**
|
|
1543
1558
|
* unique Name
|
|
1544
1559
|
*/
|
|
@@ -1713,19 +1728,15 @@ export class FeatureStoreLayer extends VectorLayer {
|
|
|
1713
1728
|
* The class names of the supported maps.
|
|
1714
1729
|
*/
|
|
1715
1730
|
protected _supportedMaps: string[];
|
|
1731
|
+
protected _url: string | any;
|
|
1716
1732
|
/**
|
|
1717
1733
|
* Called when the zIndex of this layer is changed. Is passed the new zIndex as its only argument.
|
|
1718
1734
|
*/
|
|
1719
1735
|
zIndexChanged: VcsEvent<number>;
|
|
1720
|
-
/**
|
|
1721
|
-
* array of object Ids which should be hidden within the context of the layers layerCollection, if this layer is active
|
|
1722
|
-
*/
|
|
1723
|
-
hiddenObjectIds: string[];
|
|
1724
1736
|
/**
|
|
1725
1737
|
* event raised if the exclusives group of the layer changes. is passed the array of exclusive groups as its only argument
|
|
1726
1738
|
*/
|
|
1727
1739
|
exclusiveGroupsChanged: VcsEvent<(string | symbol)[]>;
|
|
1728
|
-
globalHider: GlobalHider;
|
|
1729
1740
|
copyright: CopyrightOptions | undefined;
|
|
1730
1741
|
/**
|
|
1731
1742
|
* Event raised, if the layers state changes. Is passed the LayerState as its only parameter
|
|
@@ -1746,6 +1757,8 @@ export class FeatureStoreLayer extends VectorLayer {
|
|
|
1746
1757
|
* A layers url, should on be configured, else an empty string
|
|
1747
1758
|
*/
|
|
1748
1759
|
url: string;
|
|
1760
|
+
hiddenObjectIds: string[];
|
|
1761
|
+
readonly globalHider: GlobalHider | null;
|
|
1749
1762
|
/**
|
|
1750
1763
|
* Indicates, that this layer is part of an exclusiveGroup
|
|
1751
1764
|
*/
|
|
@@ -1755,6 +1768,10 @@ export class FeatureStoreLayer extends VectorLayer {
|
|
|
1755
1768
|
*/
|
|
1756
1769
|
readonly exclusiveGroups: any;
|
|
1757
1770
|
zIndex: number;
|
|
1771
|
+
/**
|
|
1772
|
+
* returns the currently set locale. Can be used to provide locale specific URLs.
|
|
1773
|
+
*/
|
|
1774
|
+
locale: string;
|
|
1758
1775
|
/**
|
|
1759
1776
|
* unique Name
|
|
1760
1777
|
*/
|
|
@@ -1904,6 +1921,11 @@ export const enum FeatureVisibilityAction {
|
|
|
1904
1921
|
|
|
1905
1922
|
export function synchronizeFeatureVisibility(source: FeatureVisibility, destination: FeatureVisibility): (...params: any[]) => any;
|
|
1906
1923
|
|
|
1924
|
+
/**
|
|
1925
|
+
* FeatureVisibility handles the visibility and highlighting of features of a specific {@link FeatureLayer} or {@link DataSourceLayer}
|
|
1926
|
+
* and its {@link FeatureLayerImplementation} resp. {@link DataSourceCesiumImpl}.
|
|
1927
|
+
* The visibility is being synchronized with the {@link GlobalHider}.
|
|
1928
|
+
*/
|
|
1907
1929
|
export class FeatureVisibility {
|
|
1908
1930
|
hiddenObjects: {
|
|
1909
1931
|
[key: string]: Set<import("@vcmap/cesium").Cesium3DTileFeature | import("ol").Feature<import("ol/geom/Geometry").default> | import("@vcmap/cesium").Entity>;
|
|
@@ -2117,19 +2139,15 @@ export class GeoJSONLayer extends VectorLayer {
|
|
|
2117
2139
|
* The class names of the supported maps.
|
|
2118
2140
|
*/
|
|
2119
2141
|
protected _supportedMaps: string[];
|
|
2142
|
+
protected _url: string | any;
|
|
2120
2143
|
/**
|
|
2121
2144
|
* Called when the zIndex of this layer is changed. Is passed the new zIndex as its only argument.
|
|
2122
2145
|
*/
|
|
2123
2146
|
zIndexChanged: VcsEvent<number>;
|
|
2124
|
-
/**
|
|
2125
|
-
* array of object Ids which should be hidden within the context of the layers layerCollection, if this layer is active
|
|
2126
|
-
*/
|
|
2127
|
-
hiddenObjectIds: string[];
|
|
2128
2147
|
/**
|
|
2129
2148
|
* event raised if the exclusives group of the layer changes. is passed the array of exclusive groups as its only argument
|
|
2130
2149
|
*/
|
|
2131
2150
|
exclusiveGroupsChanged: VcsEvent<(string | symbol)[]>;
|
|
2132
|
-
globalHider: GlobalHider;
|
|
2133
2151
|
copyright: CopyrightOptions | undefined;
|
|
2134
2152
|
/**
|
|
2135
2153
|
* Event raised, if the layers state changes. Is passed the LayerState as its only parameter
|
|
@@ -2150,6 +2168,8 @@ export class GeoJSONLayer extends VectorLayer {
|
|
|
2150
2168
|
* A layers url, should on be configured, else an empty string
|
|
2151
2169
|
*/
|
|
2152
2170
|
url: string;
|
|
2171
|
+
hiddenObjectIds: string[];
|
|
2172
|
+
readonly globalHider: GlobalHider | null;
|
|
2153
2173
|
/**
|
|
2154
2174
|
* Indicates, that this layer is part of an exclusiveGroup
|
|
2155
2175
|
*/
|
|
@@ -2159,6 +2179,10 @@ export class GeoJSONLayer extends VectorLayer {
|
|
|
2159
2179
|
*/
|
|
2160
2180
|
readonly exclusiveGroups: any;
|
|
2161
2181
|
zIndex: number;
|
|
2182
|
+
/**
|
|
2183
|
+
* returns the currently set locale. Can be used to provide locale specific URLs.
|
|
2184
|
+
*/
|
|
2185
|
+
locale: string;
|
|
2162
2186
|
/**
|
|
2163
2187
|
* unique Name
|
|
2164
2188
|
*/
|
|
@@ -2167,6 +2191,17 @@ export class GeoJSONLayer extends VectorLayer {
|
|
|
2167
2191
|
readonly className: string;
|
|
2168
2192
|
}
|
|
2169
2193
|
|
|
2194
|
+
export interface HiddenObject {
|
|
2195
|
+
id: string;
|
|
2196
|
+
}
|
|
2197
|
+
|
|
2198
|
+
/**
|
|
2199
|
+
* GlobalHider globally hides features existing within a layer of a {@link LayerCollection}.
|
|
2200
|
+
* Features can be defined as hidden by {@link VcsAppConfig} or {@link LayerOptions}.
|
|
2201
|
+
* Hiding will be performed, when a {@link Context} is loaded, a {@link Layer} is activated or GlobalHider API is called.
|
|
2202
|
+
* A feature can be hidden multiple times by different actors, e.g. contexts, layers, which is handled by this class.
|
|
2203
|
+
* A feature will be shown again, when a {@link Context} is removed, a {@link Layer} is deactivated or GlobalHider API is called.
|
|
2204
|
+
*/
|
|
2170
2205
|
export class GlobalHider {
|
|
2171
2206
|
hiddenObjects: {
|
|
2172
2207
|
[key: string]: number;
|
|
@@ -2189,8 +2224,6 @@ export class GlobalHider {
|
|
|
2189
2224
|
hasFeature(uuid: string | number, feature: import("ol").Feature<import("ol/geom/Geometry").default> | import("@vcmap/cesium").Cesium3DTileFeature | import("@vcmap/cesium").Cesium3DTilePointFeature | import("@vcmap/cesium").Entity): boolean;
|
|
2190
2225
|
}
|
|
2191
2226
|
|
|
2192
|
-
export function getGlobalHider(): GlobalHider;
|
|
2193
|
-
|
|
2194
2227
|
export interface GenericFeature {
|
|
2195
2228
|
longitude: number;
|
|
2196
2229
|
latitude: number;
|
|
@@ -2311,19 +2344,15 @@ export class Layer extends VcsObject {
|
|
|
2311
2344
|
* The class names of the supported maps.
|
|
2312
2345
|
*/
|
|
2313
2346
|
protected _supportedMaps: string[];
|
|
2347
|
+
protected _url: string | any;
|
|
2314
2348
|
/**
|
|
2315
2349
|
* Called when the zIndex of this layer is changed. Is passed the new zIndex as its only argument.
|
|
2316
2350
|
*/
|
|
2317
2351
|
zIndexChanged: VcsEvent<number>;
|
|
2318
|
-
/**
|
|
2319
|
-
* array of object Ids which should be hidden within the context of the layers layerCollection, if this layer is active
|
|
2320
|
-
*/
|
|
2321
|
-
hiddenObjectIds: string[];
|
|
2322
2352
|
/**
|
|
2323
2353
|
* event raised if the exclusives group of the layer changes. is passed the array of exclusive groups as its only argument
|
|
2324
2354
|
*/
|
|
2325
2355
|
exclusiveGroupsChanged: VcsEvent<(string | symbol)[]>;
|
|
2326
|
-
globalHider: GlobalHider;
|
|
2327
2356
|
copyright: CopyrightOptions | undefined;
|
|
2328
2357
|
/**
|
|
2329
2358
|
* Event raised, if the layers state changes. Is passed the LayerState as its only parameter
|
|
@@ -2342,12 +2371,19 @@ export class Layer extends VcsObject {
|
|
|
2342
2371
|
readonly state: LayerState;
|
|
2343
2372
|
allowPicking: any;
|
|
2344
2373
|
url: any;
|
|
2374
|
+
hiddenObjectIds: any;
|
|
2375
|
+
readonly globalHider: GlobalHider | null;
|
|
2376
|
+
setGlobalHider(globalHider: GlobalHider): void;
|
|
2345
2377
|
/**
|
|
2346
2378
|
* Indicates, that this layer is part of an exclusiveGroup
|
|
2347
2379
|
*/
|
|
2348
2380
|
readonly exclusive: boolean;
|
|
2349
2381
|
exclusiveGroups: any;
|
|
2350
2382
|
zIndex: any;
|
|
2383
|
+
/**
|
|
2384
|
+
* sets the locale and reloads the layer the if the URL is a locale aware Object.
|
|
2385
|
+
*/
|
|
2386
|
+
locale: any;
|
|
2351
2387
|
/**
|
|
2352
2388
|
* creates an array of layer implementations for the given map.
|
|
2353
2389
|
* @param map - Map
|
|
@@ -2608,19 +2644,15 @@ export class OpenStreetMapLayer extends Layer implements SplitLayer {
|
|
|
2608
2644
|
* The class names of the supported maps.
|
|
2609
2645
|
*/
|
|
2610
2646
|
protected _supportedMaps: string[];
|
|
2647
|
+
protected _url: string | any;
|
|
2611
2648
|
/**
|
|
2612
2649
|
* Called when the zIndex of this layer is changed. Is passed the new zIndex as its only argument.
|
|
2613
2650
|
*/
|
|
2614
2651
|
zIndexChanged: VcsEvent<number>;
|
|
2615
|
-
/**
|
|
2616
|
-
* array of object Ids which should be hidden within the context of the layers layerCollection, if this layer is active
|
|
2617
|
-
*/
|
|
2618
|
-
hiddenObjectIds: string[];
|
|
2619
2652
|
/**
|
|
2620
2653
|
* event raised if the exclusives group of the layer changes. is passed the array of exclusive groups as its only argument
|
|
2621
2654
|
*/
|
|
2622
2655
|
exclusiveGroupsChanged: VcsEvent<(string | symbol)[]>;
|
|
2623
|
-
globalHider: GlobalHider;
|
|
2624
2656
|
copyright: CopyrightOptions | undefined;
|
|
2625
2657
|
/**
|
|
2626
2658
|
* Event raised, if the layers state changes. Is passed the LayerState as its only parameter
|
|
@@ -2642,6 +2674,8 @@ export class OpenStreetMapLayer extends Layer implements SplitLayer {
|
|
|
2642
2674
|
* A layers url, should on be configured, else an empty string
|
|
2643
2675
|
*/
|
|
2644
2676
|
url: string;
|
|
2677
|
+
hiddenObjectIds: string[];
|
|
2678
|
+
readonly globalHider: GlobalHider | null;
|
|
2645
2679
|
/**
|
|
2646
2680
|
* Indicates, that this layer is part of an exclusiveGroup
|
|
2647
2681
|
*/
|
|
@@ -2651,6 +2685,10 @@ export class OpenStreetMapLayer extends Layer implements SplitLayer {
|
|
|
2651
2685
|
*/
|
|
2652
2686
|
readonly exclusiveGroups: any;
|
|
2653
2687
|
zIndex: number;
|
|
2688
|
+
/**
|
|
2689
|
+
* returns the currently set locale. Can be used to provide locale specific URLs.
|
|
2690
|
+
*/
|
|
2691
|
+
locale: string;
|
|
2654
2692
|
/**
|
|
2655
2693
|
* unique Name
|
|
2656
2694
|
*/
|
|
@@ -2753,6 +2791,7 @@ export class VectorOpenlayersImpl extends LayerOpenlayersImpl implements Feature
|
|
|
2753
2791
|
minResolution: number;
|
|
2754
2792
|
featureVisibility: FeatureVisibility;
|
|
2755
2793
|
olLayer: import("ol/layer/Vector").default<import("ol/source").Vector<import("ol/geom/Geometry").default>> | null;
|
|
2794
|
+
globalHider: GlobalHider;
|
|
2756
2795
|
updateStyle(style: StyleItem, silent?: boolean): void;
|
|
2757
2796
|
setVisibility(visibility: boolean): void;
|
|
2758
2797
|
}
|
|
@@ -2917,19 +2956,15 @@ export class PointCloudLayer extends CesiumTilesetLayer {
|
|
|
2917
2956
|
* The class names of the supported maps.
|
|
2918
2957
|
*/
|
|
2919
2958
|
protected _supportedMaps: string[];
|
|
2959
|
+
protected _url: string | any;
|
|
2920
2960
|
/**
|
|
2921
2961
|
* Called when the zIndex of this layer is changed. Is passed the new zIndex as its only argument.
|
|
2922
2962
|
*/
|
|
2923
2963
|
zIndexChanged: VcsEvent<number>;
|
|
2924
|
-
/**
|
|
2925
|
-
* array of object Ids which should be hidden within the context of the layers layerCollection, if this layer is active
|
|
2926
|
-
*/
|
|
2927
|
-
hiddenObjectIds: string[];
|
|
2928
2964
|
/**
|
|
2929
2965
|
* event raised if the exclusives group of the layer changes. is passed the array of exclusive groups as its only argument
|
|
2930
2966
|
*/
|
|
2931
2967
|
exclusiveGroupsChanged: VcsEvent<(string | symbol)[]>;
|
|
2932
|
-
globalHider: GlobalHider;
|
|
2933
2968
|
copyright: CopyrightOptions | undefined;
|
|
2934
2969
|
/**
|
|
2935
2970
|
* Event raised, if the layers state changes. Is passed the LayerState as its only parameter
|
|
@@ -2951,6 +2986,8 @@ export class PointCloudLayer extends CesiumTilesetLayer {
|
|
|
2951
2986
|
* A layers url, should on be configured, else an empty string
|
|
2952
2987
|
*/
|
|
2953
2988
|
url: string;
|
|
2989
|
+
hiddenObjectIds: string[];
|
|
2990
|
+
readonly globalHider: GlobalHider | null;
|
|
2954
2991
|
/**
|
|
2955
2992
|
* Indicates, that this layer is part of an exclusiveGroup
|
|
2956
2993
|
*/
|
|
@@ -2960,6 +2997,10 @@ export class PointCloudLayer extends CesiumTilesetLayer {
|
|
|
2960
2997
|
*/
|
|
2961
2998
|
readonly exclusiveGroups: any;
|
|
2962
2999
|
zIndex: number;
|
|
3000
|
+
/**
|
|
3001
|
+
* returns the currently set locale. Can be used to provide locale specific URLs.
|
|
3002
|
+
*/
|
|
3003
|
+
locale: string;
|
|
2963
3004
|
/**
|
|
2964
3005
|
* unique Name
|
|
2965
3006
|
*/
|
|
@@ -3061,19 +3102,15 @@ export class RasterLayer extends Layer implements SplitLayer {
|
|
|
3061
3102
|
* The class names of the supported maps.
|
|
3062
3103
|
*/
|
|
3063
3104
|
protected _supportedMaps: string[];
|
|
3105
|
+
protected _url: string | any;
|
|
3064
3106
|
/**
|
|
3065
3107
|
* Called when the zIndex of this layer is changed. Is passed the new zIndex as its only argument.
|
|
3066
3108
|
*/
|
|
3067
3109
|
zIndexChanged: VcsEvent<number>;
|
|
3068
|
-
/**
|
|
3069
|
-
* array of object Ids which should be hidden within the context of the layers layerCollection, if this layer is active
|
|
3070
|
-
*/
|
|
3071
|
-
hiddenObjectIds: string[];
|
|
3072
3110
|
/**
|
|
3073
3111
|
* event raised if the exclusives group of the layer changes. is passed the array of exclusive groups as its only argument
|
|
3074
3112
|
*/
|
|
3075
3113
|
exclusiveGroupsChanged: VcsEvent<(string | symbol)[]>;
|
|
3076
|
-
globalHider: GlobalHider;
|
|
3077
3114
|
copyright: CopyrightOptions | undefined;
|
|
3078
3115
|
/**
|
|
3079
3116
|
* Event raised, if the layers state changes. Is passed the LayerState as its only parameter
|
|
@@ -3095,6 +3132,8 @@ export class RasterLayer extends Layer implements SplitLayer {
|
|
|
3095
3132
|
* A layers url, should on be configured, else an empty string
|
|
3096
3133
|
*/
|
|
3097
3134
|
url: string;
|
|
3135
|
+
hiddenObjectIds: string[];
|
|
3136
|
+
readonly globalHider: GlobalHider | null;
|
|
3098
3137
|
/**
|
|
3099
3138
|
* Indicates, that this layer is part of an exclusiveGroup
|
|
3100
3139
|
*/
|
|
@@ -3104,6 +3143,10 @@ export class RasterLayer extends Layer implements SplitLayer {
|
|
|
3104
3143
|
*/
|
|
3105
3144
|
readonly exclusiveGroups: any;
|
|
3106
3145
|
zIndex: number;
|
|
3146
|
+
/**
|
|
3147
|
+
* returns the currently set locale. Can be used to provide locale specific URLs.
|
|
3148
|
+
*/
|
|
3149
|
+
locale: string;
|
|
3107
3150
|
/**
|
|
3108
3151
|
* unique Name
|
|
3109
3152
|
*/
|
|
@@ -3172,19 +3215,15 @@ export class SingleImageLayer extends RasterLayer {
|
|
|
3172
3215
|
* The class names of the supported maps.
|
|
3173
3216
|
*/
|
|
3174
3217
|
protected _supportedMaps: string[];
|
|
3218
|
+
protected _url: string | any;
|
|
3175
3219
|
/**
|
|
3176
3220
|
* Called when the zIndex of this layer is changed. Is passed the new zIndex as its only argument.
|
|
3177
3221
|
*/
|
|
3178
3222
|
zIndexChanged: VcsEvent<number>;
|
|
3179
|
-
/**
|
|
3180
|
-
* array of object Ids which should be hidden within the context of the layers layerCollection, if this layer is active
|
|
3181
|
-
*/
|
|
3182
|
-
hiddenObjectIds: string[];
|
|
3183
3223
|
/**
|
|
3184
3224
|
* event raised if the exclusives group of the layer changes. is passed the array of exclusive groups as its only argument
|
|
3185
3225
|
*/
|
|
3186
3226
|
exclusiveGroupsChanged: VcsEvent<(string | symbol)[]>;
|
|
3187
|
-
globalHider: GlobalHider;
|
|
3188
3227
|
copyright: CopyrightOptions | undefined;
|
|
3189
3228
|
/**
|
|
3190
3229
|
* Event raised, if the layers state changes. Is passed the LayerState as its only parameter
|
|
@@ -3206,6 +3245,8 @@ export class SingleImageLayer extends RasterLayer {
|
|
|
3206
3245
|
* A layers url, should on be configured, else an empty string
|
|
3207
3246
|
*/
|
|
3208
3247
|
url: string;
|
|
3248
|
+
hiddenObjectIds: string[];
|
|
3249
|
+
readonly globalHider: GlobalHider | null;
|
|
3209
3250
|
/**
|
|
3210
3251
|
* Indicates, that this layer is part of an exclusiveGroup
|
|
3211
3252
|
*/
|
|
@@ -3215,6 +3256,10 @@ export class SingleImageLayer extends RasterLayer {
|
|
|
3215
3256
|
*/
|
|
3216
3257
|
readonly exclusiveGroups: any;
|
|
3217
3258
|
zIndex: number;
|
|
3259
|
+
/**
|
|
3260
|
+
* returns the currently set locale. Can be used to provide locale specific URLs.
|
|
3261
|
+
*/
|
|
3262
|
+
locale: string;
|
|
3218
3263
|
/**
|
|
3219
3264
|
* unique Name
|
|
3220
3265
|
*/
|
|
@@ -3290,19 +3335,15 @@ export class TerrainLayer extends Layer {
|
|
|
3290
3335
|
* The class names of the supported maps.
|
|
3291
3336
|
*/
|
|
3292
3337
|
protected _supportedMaps: string[];
|
|
3338
|
+
protected _url: string | any;
|
|
3293
3339
|
/**
|
|
3294
3340
|
* Called when the zIndex of this layer is changed. Is passed the new zIndex as its only argument.
|
|
3295
3341
|
*/
|
|
3296
3342
|
zIndexChanged: VcsEvent<number>;
|
|
3297
|
-
/**
|
|
3298
|
-
* array of object Ids which should be hidden within the context of the layers layerCollection, if this layer is active
|
|
3299
|
-
*/
|
|
3300
|
-
hiddenObjectIds: string[];
|
|
3301
3343
|
/**
|
|
3302
3344
|
* event raised if the exclusives group of the layer changes. is passed the array of exclusive groups as its only argument
|
|
3303
3345
|
*/
|
|
3304
3346
|
exclusiveGroupsChanged: VcsEvent<(string | symbol)[]>;
|
|
3305
|
-
globalHider: GlobalHider;
|
|
3306
3347
|
copyright: CopyrightOptions | undefined;
|
|
3307
3348
|
/**
|
|
3308
3349
|
* Event raised, if the layers state changes. Is passed the LayerState as its only parameter
|
|
@@ -3324,6 +3365,8 @@ export class TerrainLayer extends Layer {
|
|
|
3324
3365
|
* A layers url, should on be configured, else an empty string
|
|
3325
3366
|
*/
|
|
3326
3367
|
url: string;
|
|
3368
|
+
hiddenObjectIds: string[];
|
|
3369
|
+
readonly globalHider: GlobalHider | null;
|
|
3327
3370
|
/**
|
|
3328
3371
|
* Indicates, that this layer is part of an exclusiveGroup
|
|
3329
3372
|
*/
|
|
@@ -3333,6 +3376,10 @@ export class TerrainLayer extends Layer {
|
|
|
3333
3376
|
*/
|
|
3334
3377
|
readonly exclusiveGroups: any;
|
|
3335
3378
|
zIndex: number;
|
|
3379
|
+
/**
|
|
3380
|
+
* returns the currently set locale. Can be used to provide locale specific URLs.
|
|
3381
|
+
*/
|
|
3382
|
+
locale: string;
|
|
3336
3383
|
/**
|
|
3337
3384
|
* unique Name
|
|
3338
3385
|
*/
|
|
@@ -3367,6 +3414,10 @@ export class MVTTileProvider extends TileProvider {
|
|
|
3367
3414
|
static getDefaultOptions(): MVTTileProviderOptions;
|
|
3368
3415
|
url: string;
|
|
3369
3416
|
idProperty: string | undefined;
|
|
3417
|
+
/**
|
|
3418
|
+
* sets the locale and clears the Cache if the URL is a locale aware Object.
|
|
3419
|
+
*/
|
|
3420
|
+
locale: any;
|
|
3370
3421
|
/**
|
|
3371
3422
|
* Cesium Webmercator TilingScheme
|
|
3372
3423
|
*/
|
|
@@ -3452,6 +3503,7 @@ export class StaticGeoJSONTileProvider extends TileProvider {
|
|
|
3452
3503
|
* use setTileCacheSize to change
|
|
3453
3504
|
*/
|
|
3454
3505
|
readonly tileCacheSize: number;
|
|
3506
|
+
locale: string;
|
|
3455
3507
|
/**
|
|
3456
3508
|
* unique Name
|
|
3457
3509
|
*/
|
|
@@ -3551,6 +3603,10 @@ export class TileProvider extends VcsObject {
|
|
|
3551
3603
|
* use setTileCacheSize to change
|
|
3552
3604
|
*/
|
|
3553
3605
|
readonly tileCacheSize: number;
|
|
3606
|
+
/**
|
|
3607
|
+
* sets the locale and reloads the layer the if the URL is a locale aware Object.
|
|
3608
|
+
*/
|
|
3609
|
+
locale: any;
|
|
3554
3610
|
setTileCacheSize(value: number): Promise<any>;
|
|
3555
3611
|
/**
|
|
3556
3612
|
* returns the closest baseLevel for the given resolution
|
|
@@ -3631,9 +3687,9 @@ export interface URLTemplateTileProviderOptions extends TileProviderOptions {
|
|
|
3631
3687
|
/**
|
|
3632
3688
|
* replaces {x}, {y}, {z} with the x, y, z tiling coordinates
|
|
3633
3689
|
* replaces {minx}, {miny}, {maxx}, {maxy} with extent of the tile if tilingExtent is provided
|
|
3634
|
-
* replaces {locale} with the
|
|
3690
|
+
* replaces {locale} with the given locale
|
|
3635
3691
|
*/
|
|
3636
|
-
export function getURL(url: string, x: number, y: number, z: number, tilingExtent?: import("@vcmap/cesium").Rectangle): string;
|
|
3692
|
+
export function getURL(url: string, x: number, y: number, z: number, tilingExtent?: import("@vcmap/cesium").Rectangle, locale?: string): string;
|
|
3637
3693
|
|
|
3638
3694
|
/**
|
|
3639
3695
|
* TileProvider loads GeojsonLayer from the provided URL. The URL has placeholders:
|
|
@@ -3646,6 +3702,10 @@ export class URLTemplateTileProvider extends TileProvider {
|
|
|
3646
3702
|
static readonly className: any;
|
|
3647
3703
|
static getDefaultOptions(): URLTemplateTileProviderOptions;
|
|
3648
3704
|
url: string;
|
|
3705
|
+
/**
|
|
3706
|
+
* sets the locale and clears the Cache if the URL is a locale aware Object.
|
|
3707
|
+
*/
|
|
3708
|
+
locale: any;
|
|
3649
3709
|
/**
|
|
3650
3710
|
* Cesium Webmercator TilingScheme
|
|
3651
3711
|
*/
|
|
@@ -3738,19 +3798,15 @@ export class TMSLayer extends RasterLayer {
|
|
|
3738
3798
|
* The class names of the supported maps.
|
|
3739
3799
|
*/
|
|
3740
3800
|
protected _supportedMaps: string[];
|
|
3801
|
+
protected _url: string | any;
|
|
3741
3802
|
/**
|
|
3742
3803
|
* Called when the zIndex of this layer is changed. Is passed the new zIndex as its only argument.
|
|
3743
3804
|
*/
|
|
3744
3805
|
zIndexChanged: VcsEvent<number>;
|
|
3745
|
-
/**
|
|
3746
|
-
* array of object Ids which should be hidden within the context of the layers layerCollection, if this layer is active
|
|
3747
|
-
*/
|
|
3748
|
-
hiddenObjectIds: string[];
|
|
3749
3806
|
/**
|
|
3750
3807
|
* event raised if the exclusives group of the layer changes. is passed the array of exclusive groups as its only argument
|
|
3751
3808
|
*/
|
|
3752
3809
|
exclusiveGroupsChanged: VcsEvent<(string | symbol)[]>;
|
|
3753
|
-
globalHider: GlobalHider;
|
|
3754
3810
|
copyright: CopyrightOptions | undefined;
|
|
3755
3811
|
/**
|
|
3756
3812
|
* Event raised, if the layers state changes. Is passed the LayerState as its only parameter
|
|
@@ -3772,6 +3828,8 @@ export class TMSLayer extends RasterLayer {
|
|
|
3772
3828
|
* A layers url, should on be configured, else an empty string
|
|
3773
3829
|
*/
|
|
3774
3830
|
url: string;
|
|
3831
|
+
hiddenObjectIds: string[];
|
|
3832
|
+
readonly globalHider: GlobalHider | null;
|
|
3775
3833
|
/**
|
|
3776
3834
|
* Indicates, that this layer is part of an exclusiveGroup
|
|
3777
3835
|
*/
|
|
@@ -3781,6 +3839,10 @@ export class TMSLayer extends RasterLayer {
|
|
|
3781
3839
|
*/
|
|
3782
3840
|
readonly exclusiveGroups: any;
|
|
3783
3841
|
zIndex: number;
|
|
3842
|
+
/**
|
|
3843
|
+
* returns the currently set locale. Can be used to provide locale specific URLs.
|
|
3844
|
+
*/
|
|
3845
|
+
locale: string;
|
|
3784
3846
|
/**
|
|
3785
3847
|
* unique Name
|
|
3786
3848
|
*/
|
|
@@ -3997,19 +4059,15 @@ export class VectorLayer extends FeatureLayer {
|
|
|
3997
4059
|
* The class names of the supported maps.
|
|
3998
4060
|
*/
|
|
3999
4061
|
protected _supportedMaps: string[];
|
|
4062
|
+
protected _url: string | any;
|
|
4000
4063
|
/**
|
|
4001
4064
|
* Called when the zIndex of this layer is changed. Is passed the new zIndex as its only argument.
|
|
4002
4065
|
*/
|
|
4003
4066
|
zIndexChanged: VcsEvent<number>;
|
|
4004
|
-
/**
|
|
4005
|
-
* array of object Ids which should be hidden within the context of the layers layerCollection, if this layer is active
|
|
4006
|
-
*/
|
|
4007
|
-
hiddenObjectIds: string[];
|
|
4008
4067
|
/**
|
|
4009
4068
|
* event raised if the exclusives group of the layer changes. is passed the array of exclusive groups as its only argument
|
|
4010
4069
|
*/
|
|
4011
4070
|
exclusiveGroupsChanged: VcsEvent<(string | symbol)[]>;
|
|
4012
|
-
globalHider: GlobalHider;
|
|
4013
4071
|
copyright: CopyrightOptions | undefined;
|
|
4014
4072
|
/**
|
|
4015
4073
|
* Event raised, if the layers state changes. Is passed the LayerState as its only parameter
|
|
@@ -4030,6 +4088,8 @@ export class VectorLayer extends FeatureLayer {
|
|
|
4030
4088
|
* A layers url, should on be configured, else an empty string
|
|
4031
4089
|
*/
|
|
4032
4090
|
url: string;
|
|
4091
|
+
hiddenObjectIds: string[];
|
|
4092
|
+
readonly globalHider: GlobalHider | null;
|
|
4033
4093
|
/**
|
|
4034
4094
|
* Indicates, that this layer is part of an exclusiveGroup
|
|
4035
4095
|
*/
|
|
@@ -4039,6 +4099,10 @@ export class VectorLayer extends FeatureLayer {
|
|
|
4039
4099
|
*/
|
|
4040
4100
|
readonly exclusiveGroups: any;
|
|
4041
4101
|
zIndex: number;
|
|
4102
|
+
/**
|
|
4103
|
+
* returns the currently set locale. Can be used to provide locale specific URLs.
|
|
4104
|
+
*/
|
|
4105
|
+
locale: string;
|
|
4042
4106
|
/**
|
|
4043
4107
|
* unique Name
|
|
4044
4108
|
*/
|
|
@@ -4315,6 +4379,10 @@ export class VectorTileLayer extends FeatureLayer {
|
|
|
4315
4379
|
*/
|
|
4316
4380
|
vectorProperties: VectorProperties;
|
|
4317
4381
|
tileProvider: TileProvider;
|
|
4382
|
+
/**
|
|
4383
|
+
* sets the locale and reloads the layer the if the URL is a locale aware Object.
|
|
4384
|
+
*/
|
|
4385
|
+
locale: any;
|
|
4318
4386
|
/**
|
|
4319
4387
|
* rerenders the specified tiles
|
|
4320
4388
|
* rendering happens async
|
|
@@ -4361,19 +4429,15 @@ export class VectorTileLayer extends FeatureLayer {
|
|
|
4361
4429
|
* The class names of the supported maps.
|
|
4362
4430
|
*/
|
|
4363
4431
|
protected _supportedMaps: string[];
|
|
4432
|
+
protected _url: string | any;
|
|
4364
4433
|
/**
|
|
4365
4434
|
* Called when the zIndex of this layer is changed. Is passed the new zIndex as its only argument.
|
|
4366
4435
|
*/
|
|
4367
4436
|
zIndexChanged: VcsEvent<number>;
|
|
4368
|
-
/**
|
|
4369
|
-
* array of object Ids which should be hidden within the context of the layers layerCollection, if this layer is active
|
|
4370
|
-
*/
|
|
4371
|
-
hiddenObjectIds: string[];
|
|
4372
4437
|
/**
|
|
4373
4438
|
* event raised if the exclusives group of the layer changes. is passed the array of exclusive groups as its only argument
|
|
4374
4439
|
*/
|
|
4375
4440
|
exclusiveGroupsChanged: VcsEvent<(string | symbol)[]>;
|
|
4376
|
-
globalHider: GlobalHider;
|
|
4377
4441
|
copyright: CopyrightOptions | undefined;
|
|
4378
4442
|
/**
|
|
4379
4443
|
* Event raised, if the layers state changes. Is passed the LayerState as its only parameter
|
|
@@ -4395,6 +4459,8 @@ export class VectorTileLayer extends FeatureLayer {
|
|
|
4395
4459
|
* A layers url, should on be configured, else an empty string
|
|
4396
4460
|
*/
|
|
4397
4461
|
url: string;
|
|
4462
|
+
hiddenObjectIds: string[];
|
|
4463
|
+
readonly globalHider: GlobalHider | null;
|
|
4398
4464
|
/**
|
|
4399
4465
|
* Indicates, that this layer is part of an exclusiveGroup
|
|
4400
4466
|
*/
|
|
@@ -4507,19 +4573,15 @@ export class WFSLayer extends VectorLayer {
|
|
|
4507
4573
|
* The class names of the supported maps.
|
|
4508
4574
|
*/
|
|
4509
4575
|
protected _supportedMaps: string[];
|
|
4576
|
+
protected _url: string | any;
|
|
4510
4577
|
/**
|
|
4511
4578
|
* Called when the zIndex of this layer is changed. Is passed the new zIndex as its only argument.
|
|
4512
4579
|
*/
|
|
4513
4580
|
zIndexChanged: VcsEvent<number>;
|
|
4514
|
-
/**
|
|
4515
|
-
* array of object Ids which should be hidden within the context of the layers layerCollection, if this layer is active
|
|
4516
|
-
*/
|
|
4517
|
-
hiddenObjectIds: string[];
|
|
4518
4581
|
/**
|
|
4519
4582
|
* event raised if the exclusives group of the layer changes. is passed the array of exclusive groups as its only argument
|
|
4520
4583
|
*/
|
|
4521
4584
|
exclusiveGroupsChanged: VcsEvent<(string | symbol)[]>;
|
|
4522
|
-
globalHider: GlobalHider;
|
|
4523
4585
|
copyright: CopyrightOptions | undefined;
|
|
4524
4586
|
/**
|
|
4525
4587
|
* Event raised, if the layers state changes. Is passed the LayerState as its only parameter
|
|
@@ -4540,6 +4602,8 @@ export class WFSLayer extends VectorLayer {
|
|
|
4540
4602
|
* A layers url, should on be configured, else an empty string
|
|
4541
4603
|
*/
|
|
4542
4604
|
url: string;
|
|
4605
|
+
hiddenObjectIds: string[];
|
|
4606
|
+
readonly globalHider: GlobalHider | null;
|
|
4543
4607
|
/**
|
|
4544
4608
|
* Indicates, that this layer is part of an exclusiveGroup
|
|
4545
4609
|
*/
|
|
@@ -4549,6 +4613,10 @@ export class WFSLayer extends VectorLayer {
|
|
|
4549
4613
|
*/
|
|
4550
4614
|
readonly exclusiveGroups: any;
|
|
4551
4615
|
zIndex: number;
|
|
4616
|
+
/**
|
|
4617
|
+
* returns the currently set locale. Can be used to provide locale specific URLs.
|
|
4618
|
+
*/
|
|
4619
|
+
locale: string;
|
|
4552
4620
|
/**
|
|
4553
4621
|
* unique Name
|
|
4554
4622
|
*/
|
|
@@ -4671,19 +4739,15 @@ export class WMSLayer extends RasterLayer {
|
|
|
4671
4739
|
* The class names of the supported maps.
|
|
4672
4740
|
*/
|
|
4673
4741
|
protected _supportedMaps: string[];
|
|
4742
|
+
protected _url: string | any;
|
|
4674
4743
|
/**
|
|
4675
4744
|
* Called when the zIndex of this layer is changed. Is passed the new zIndex as its only argument.
|
|
4676
4745
|
*/
|
|
4677
4746
|
zIndexChanged: VcsEvent<number>;
|
|
4678
|
-
/**
|
|
4679
|
-
* array of object Ids which should be hidden within the context of the layers layerCollection, if this layer is active
|
|
4680
|
-
*/
|
|
4681
|
-
hiddenObjectIds: string[];
|
|
4682
4747
|
/**
|
|
4683
4748
|
* event raised if the exclusives group of the layer changes. is passed the array of exclusive groups as its only argument
|
|
4684
4749
|
*/
|
|
4685
4750
|
exclusiveGroupsChanged: VcsEvent<(string | symbol)[]>;
|
|
4686
|
-
globalHider: GlobalHider;
|
|
4687
4751
|
copyright: CopyrightOptions | undefined;
|
|
4688
4752
|
/**
|
|
4689
4753
|
* Event raised, if the layers state changes. Is passed the LayerState as its only parameter
|
|
@@ -4705,6 +4769,8 @@ export class WMSLayer extends RasterLayer {
|
|
|
4705
4769
|
* A layers url, should on be configured, else an empty string
|
|
4706
4770
|
*/
|
|
4707
4771
|
url: string;
|
|
4772
|
+
hiddenObjectIds: string[];
|
|
4773
|
+
readonly globalHider: GlobalHider | null;
|
|
4708
4774
|
/**
|
|
4709
4775
|
* Indicates, that this layer is part of an exclusiveGroup
|
|
4710
4776
|
*/
|
|
@@ -4714,6 +4780,10 @@ export class WMSLayer extends RasterLayer {
|
|
|
4714
4780
|
*/
|
|
4715
4781
|
readonly exclusiveGroups: any;
|
|
4716
4782
|
zIndex: number;
|
|
4783
|
+
/**
|
|
4784
|
+
* returns the currently set locale. Can be used to provide locale specific URLs.
|
|
4785
|
+
*/
|
|
4786
|
+
locale: string;
|
|
4717
4787
|
/**
|
|
4718
4788
|
* unique Name
|
|
4719
4789
|
*/
|
|
@@ -4799,19 +4869,15 @@ export class WMTSLayer extends RasterLayer {
|
|
|
4799
4869
|
* The class names of the supported maps.
|
|
4800
4870
|
*/
|
|
4801
4871
|
protected _supportedMaps: string[];
|
|
4872
|
+
protected _url: string | any;
|
|
4802
4873
|
/**
|
|
4803
4874
|
* Called when the zIndex of this layer is changed. Is passed the new zIndex as its only argument.
|
|
4804
4875
|
*/
|
|
4805
4876
|
zIndexChanged: VcsEvent<number>;
|
|
4806
|
-
/**
|
|
4807
|
-
* array of object Ids which should be hidden within the context of the layers layerCollection, if this layer is active
|
|
4808
|
-
*/
|
|
4809
|
-
hiddenObjectIds: string[];
|
|
4810
4877
|
/**
|
|
4811
4878
|
* event raised if the exclusives group of the layer changes. is passed the array of exclusive groups as its only argument
|
|
4812
4879
|
*/
|
|
4813
4880
|
exclusiveGroupsChanged: VcsEvent<(string | symbol)[]>;
|
|
4814
|
-
globalHider: GlobalHider;
|
|
4815
4881
|
copyright: CopyrightOptions | undefined;
|
|
4816
4882
|
/**
|
|
4817
4883
|
* Event raised, if the layers state changes. Is passed the LayerState as its only parameter
|
|
@@ -4833,6 +4899,8 @@ export class WMTSLayer extends RasterLayer {
|
|
|
4833
4899
|
* A layers url, should on be configured, else an empty string
|
|
4834
4900
|
*/
|
|
4835
4901
|
url: string;
|
|
4902
|
+
hiddenObjectIds: string[];
|
|
4903
|
+
readonly globalHider: GlobalHider | null;
|
|
4836
4904
|
/**
|
|
4837
4905
|
* Indicates, that this layer is part of an exclusiveGroup
|
|
4838
4906
|
*/
|
|
@@ -4842,6 +4910,10 @@ export class WMTSLayer extends RasterLayer {
|
|
|
4842
4910
|
*/
|
|
4843
4911
|
readonly exclusiveGroups: any;
|
|
4844
4912
|
zIndex: number;
|
|
4913
|
+
/**
|
|
4914
|
+
* returns the currently set locale. Can be used to provide locale specific URLs.
|
|
4915
|
+
*/
|
|
4916
|
+
locale: string;
|
|
4845
4917
|
/**
|
|
4846
4918
|
* unique Name
|
|
4847
4919
|
*/
|
|
@@ -6242,6 +6314,9 @@ export const defaultDeclarativeStyle: DeclarativeStyleItem;
|
|
|
6242
6314
|
|
|
6243
6315
|
export function getShapeFromOptions(options: VectorStyleItemImage): import("ol/style/RegularShape").default | import("ol/style/Circle").default;
|
|
6244
6316
|
|
|
6317
|
+
/**
|
|
6318
|
+
* TODO refactor to getdefaultShapeCategory...
|
|
6319
|
+
*/
|
|
6245
6320
|
export const shapeCategory: any;
|
|
6246
6321
|
|
|
6247
6322
|
export function getStyleOrDefaultStyle(styleOptions?: DeclarativeStyleItemOptions | VectorStyleItemOptions | StyleItem, defaultStyle?: StyleItem): StyleItem;
|
|
@@ -6751,6 +6826,11 @@ export class Collection<T extends any> {
|
|
|
6751
6826
|
* @returns the index at which the item was inserted
|
|
6752
6827
|
*/
|
|
6753
6828
|
add(item: T): number | null;
|
|
6829
|
+
/**
|
|
6830
|
+
* internal remove function, to remove an item from the collection, does not raise an event.
|
|
6831
|
+
* @returns returns the index of the removed item or -1 if the item has not been found.
|
|
6832
|
+
*/
|
|
6833
|
+
protected _remove(item: T): number;
|
|
6754
6834
|
/**
|
|
6755
6835
|
* Removes an item from the collection
|
|
6756
6836
|
*/
|
|
@@ -6773,16 +6853,6 @@ export class Collection<T extends any> {
|
|
|
6773
6853
|
destroy(): void;
|
|
6774
6854
|
}
|
|
6775
6855
|
|
|
6776
|
-
export function getShortLocaleDate(date: Date, locale?: string): string;
|
|
6777
|
-
|
|
6778
|
-
export function getShortLocaleTime(date: Date, locale?: string): string;
|
|
6779
|
-
|
|
6780
|
-
export function getISODateString(date: Date): string;
|
|
6781
|
-
|
|
6782
|
-
export function getDayOfYear(date: Date): number;
|
|
6783
|
-
|
|
6784
|
-
export function isLeapYear(date: Date): boolean;
|
|
6785
|
-
|
|
6786
6856
|
/**
|
|
6787
6857
|
* Tracks layer exclusivity, added to every {@link LayerCollection}.
|
|
6788
6858
|
*/
|
|
@@ -7026,28 +7096,26 @@ export class LayerCollection extends IndexedCollection<Layer> {
|
|
|
7026
7096
|
* ensures consistency by setting a new local z index if needed.
|
|
7027
7097
|
*/
|
|
7028
7098
|
readonly zIndexSymbol: symbol;
|
|
7099
|
+
/**
|
|
7100
|
+
* Set global hider for these maps.
|
|
7101
|
+
*/
|
|
7102
|
+
globalHider: any;
|
|
7103
|
+
locale: any;
|
|
7029
7104
|
/**
|
|
7030
7105
|
* Adds a layer to the collection. Can optionally be passed an index at which to insert the layer.
|
|
7106
|
+
* The layer locale will be set to the same locale of the layerCollection. This will trigger a forceRedraw
|
|
7107
|
+
* of the layer if the layer locale is different and the layer is locale aware.
|
|
7031
7108
|
* @returns returns the layer index or null, if the layers name is not unique
|
|
7032
7109
|
*/
|
|
7033
7110
|
add(layer: Layer, index?: number): number | null;
|
|
7034
|
-
|
|
7035
|
-
* Removes a layer from the collection.
|
|
7036
|
-
*/
|
|
7037
|
-
remove(layer: Layer): void;
|
|
7111
|
+
protected _remove(layer: Layer): number;
|
|
7038
7112
|
}
|
|
7039
7113
|
|
|
7040
|
-
export function getLocaleChangedEvent(): VcsEvent<string>;
|
|
7041
|
-
|
|
7042
7114
|
/**
|
|
7043
7115
|
* returns the default browserLocale, if not possible 'en'
|
|
7044
7116
|
*/
|
|
7045
7117
|
export function detectBrowserLocale(): string;
|
|
7046
7118
|
|
|
7047
|
-
export function getCurrentLocale(): string;
|
|
7048
|
-
|
|
7049
|
-
export function setCurrentLocale(value: string): void;
|
|
7050
|
-
|
|
7051
7119
|
export interface MapCollectionInitializationError {
|
|
7052
7120
|
error: Error;
|
|
7053
7121
|
map: VcsMap;
|
|
@@ -7102,11 +7170,7 @@ export class MapCollection extends Collection<VcsMap> {
|
|
|
7102
7170
|
* It will add map event listeners and pass them to the event handler of this collection.
|
|
7103
7171
|
*/
|
|
7104
7172
|
add(map: VcsMap): number | null;
|
|
7105
|
-
|
|
7106
|
-
* Removes the map from the collection. Will also set _splitScreen & target to null and an empty _layerCollection on the map,
|
|
7107
|
-
* if the map is currently part of the collection.
|
|
7108
|
-
*/
|
|
7109
|
-
remove(map: VcsMap): void;
|
|
7173
|
+
protected _remove(map: VcsMap): number;
|
|
7110
7174
|
/**
|
|
7111
7175
|
* Set the target for these maps.
|
|
7112
7176
|
*/
|
|
@@ -7157,7 +7221,7 @@ export const isOverrideCollection: symbol;
|
|
|
7157
7221
|
/**
|
|
7158
7222
|
* @param getDynamicContextId - function to get the current dynamic context id
|
|
7159
7223
|
* @param [serializeItem] - optional function to serialize an item, defaults to returning item.toJSON or item: i => (i.toJSON || i)
|
|
7160
|
-
* @param [deserializeItem] - optional
|
|
7224
|
+
* @param [deserializeItem] - optional deserialization function. defaults to returning the passed object: i => i
|
|
7161
7225
|
* @param [ctor] - optional constructor to validate deserialized items against. if passed, deserializeItem must be an instance of ctor.
|
|
7162
7226
|
* @param [determineShadowIndex] - return the index where a shadow should be inserted. only has relevance, if the collection is indexed. previous and current index may be null.
|
|
7163
7227
|
*/
|
|
@@ -7194,7 +7258,13 @@ export interface ProjectionOptions {
|
|
|
7194
7258
|
export function setDefaultProjectionOptions(options: ProjectionOptions): void;
|
|
7195
7259
|
|
|
7196
7260
|
/**
|
|
7197
|
-
*
|
|
7261
|
+
* For example:
|
|
7262
|
+
* <pre><code>
|
|
7263
|
+
* {
|
|
7264
|
+
* "epsg" : "EPSG:25833"
|
|
7265
|
+
* "proj4" : "+proj=utm +zone=33 +ellps=GRS80 +units=m +no_defs"
|
|
7266
|
+
* }
|
|
7267
|
+
* </code></pre>
|
|
7198
7268
|
*/
|
|
7199
7269
|
export class Projection {
|
|
7200
7270
|
constructor(options: ProjectionOptions);
|
|
@@ -7419,6 +7489,12 @@ export class ViewPoint extends VcsObject {
|
|
|
7419
7489
|
|
|
7420
7490
|
export class VcsApp {
|
|
7421
7491
|
readonly id: string;
|
|
7492
|
+
/**
|
|
7493
|
+
* sets the locale of the vcsApp and the linked layerCollection.
|
|
7494
|
+
* This will trigger the localeChanged Event.
|
|
7495
|
+
*/
|
|
7496
|
+
locale: any;
|
|
7497
|
+
readonly localeChanged: VcsEvent<string>;
|
|
7422
7498
|
readonly maps: OverrideMapCollection;
|
|
7423
7499
|
readonly layers: OverrideLayerCollection;
|
|
7424
7500
|
readonly obliqueCollections: OverrideCollection<ObliqueCollection>;
|