@vcmap/core 5.0.0-rc.11 → 5.0.0-rc.14
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 +204 -118
- package/index.js +2 -3
- package/package.json +1 -1
- package/src/category/category.js +21 -5
- package/src/layer/cesium/cesiumTilesetCesiumImpl.js +2 -2
- package/src/layer/cesium/vectorCesiumImpl.js +3 -3
- package/src/layer/dataSourceLayer.js +25 -15
- package/src/layer/featureLayer.js +10 -0
- package/src/layer/featureStoreLayer.js +1 -0
- package/src/layer/featureStoreLayerChanges.js +3 -1
- package/src/layer/featureVisibility.js +3 -0
- package/src/layer/globalHider.js +7 -20
- package/src/layer/layer.js +84 -37
- package/src/layer/oblique/vectorObliqueImpl.js +1 -2
- package/src/layer/openlayers/vectorOpenlayersImpl.js +2 -2
- package/src/layer/tileProvider/mvtTileProvider.js +21 -1
- package/src/layer/tileProvider/tileProvider.js +27 -0
- package/src/layer/tileProvider/urlTemplateTileProvider.js +26 -5
- package/src/layer/vectorTileLayer.js +45 -12
- package/src/util/layerCollection.js +66 -0
- package/src/util/locale.js +1 -42
- package/src/util/overrideCollection.js +7 -7
- package/src/vcsApp.js +95 -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}.
|
|
@@ -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
|
*/
|
|
@@ -1811,7 +1828,9 @@ export class FeatureStoreLayerChanges extends VcsObject {
|
|
|
1811
1828
|
/**
|
|
1812
1829
|
* commits the changes to the provided url. url should contain accessTokens and point to a featureStore layers bulk operation endpoint
|
|
1813
1830
|
*/
|
|
1814
|
-
commitChanges(url: string
|
|
1831
|
+
commitChanges(url: string, headers?: {
|
|
1832
|
+
[key: string]: string;
|
|
1833
|
+
}): Promise<void>;
|
|
1815
1834
|
/**
|
|
1816
1835
|
* resets all changes since the last commit or the beginning of tracking
|
|
1817
1836
|
*/
|
|
@@ -1904,6 +1923,11 @@ export const enum FeatureVisibilityAction {
|
|
|
1904
1923
|
|
|
1905
1924
|
export function synchronizeFeatureVisibility(source: FeatureVisibility, destination: FeatureVisibility): (...params: any[]) => any;
|
|
1906
1925
|
|
|
1926
|
+
/**
|
|
1927
|
+
* FeatureVisibility handles the visibility and highlighting of features of a specific {@link FeatureLayer} or {@link DataSourceLayer}
|
|
1928
|
+
* and its {@link FeatureLayerImplementation} resp. {@link DataSourceCesiumImpl}.
|
|
1929
|
+
* The visibility is being synchronized with the {@link GlobalHider}.
|
|
1930
|
+
*/
|
|
1907
1931
|
export class FeatureVisibility {
|
|
1908
1932
|
hiddenObjects: {
|
|
1909
1933
|
[key: string]: Set<import("@vcmap/cesium").Cesium3DTileFeature | import("ol").Feature<import("ol/geom/Geometry").default> | import("@vcmap/cesium").Entity>;
|
|
@@ -2117,19 +2141,15 @@ export class GeoJSONLayer extends VectorLayer {
|
|
|
2117
2141
|
* The class names of the supported maps.
|
|
2118
2142
|
*/
|
|
2119
2143
|
protected _supportedMaps: string[];
|
|
2144
|
+
protected _url: string | any;
|
|
2120
2145
|
/**
|
|
2121
2146
|
* Called when the zIndex of this layer is changed. Is passed the new zIndex as its only argument.
|
|
2122
2147
|
*/
|
|
2123
2148
|
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
2149
|
/**
|
|
2129
2150
|
* event raised if the exclusives group of the layer changes. is passed the array of exclusive groups as its only argument
|
|
2130
2151
|
*/
|
|
2131
2152
|
exclusiveGroupsChanged: VcsEvent<(string | symbol)[]>;
|
|
2132
|
-
globalHider: GlobalHider;
|
|
2133
2153
|
copyright: CopyrightOptions | undefined;
|
|
2134
2154
|
/**
|
|
2135
2155
|
* Event raised, if the layers state changes. Is passed the LayerState as its only parameter
|
|
@@ -2150,6 +2170,8 @@ export class GeoJSONLayer extends VectorLayer {
|
|
|
2150
2170
|
* A layers url, should on be configured, else an empty string
|
|
2151
2171
|
*/
|
|
2152
2172
|
url: string;
|
|
2173
|
+
hiddenObjectIds: string[];
|
|
2174
|
+
readonly globalHider: GlobalHider | null;
|
|
2153
2175
|
/**
|
|
2154
2176
|
* Indicates, that this layer is part of an exclusiveGroup
|
|
2155
2177
|
*/
|
|
@@ -2159,6 +2181,10 @@ export class GeoJSONLayer extends VectorLayer {
|
|
|
2159
2181
|
*/
|
|
2160
2182
|
readonly exclusiveGroups: any;
|
|
2161
2183
|
zIndex: number;
|
|
2184
|
+
/**
|
|
2185
|
+
* returns the currently set locale. Can be used to provide locale specific URLs.
|
|
2186
|
+
*/
|
|
2187
|
+
locale: string;
|
|
2162
2188
|
/**
|
|
2163
2189
|
* unique Name
|
|
2164
2190
|
*/
|
|
@@ -2167,6 +2193,17 @@ export class GeoJSONLayer extends VectorLayer {
|
|
|
2167
2193
|
readonly className: string;
|
|
2168
2194
|
}
|
|
2169
2195
|
|
|
2196
|
+
export interface HiddenObject {
|
|
2197
|
+
id: string;
|
|
2198
|
+
}
|
|
2199
|
+
|
|
2200
|
+
/**
|
|
2201
|
+
* GlobalHider globally hides features existing within a layer of a {@link LayerCollection}.
|
|
2202
|
+
* Features can be defined as hidden by {@link VcsAppConfig} or {@link LayerOptions}.
|
|
2203
|
+
* Hiding will be performed, when a {@link Context} is loaded, a {@link Layer} is activated or GlobalHider API is called.
|
|
2204
|
+
* A feature can be hidden multiple times by different actors, e.g. contexts, layers, which is handled by this class.
|
|
2205
|
+
* A feature will be shown again, when a {@link Context} is removed, a {@link Layer} is deactivated or GlobalHider API is called.
|
|
2206
|
+
*/
|
|
2170
2207
|
export class GlobalHider {
|
|
2171
2208
|
hiddenObjects: {
|
|
2172
2209
|
[key: string]: number;
|
|
@@ -2189,8 +2226,6 @@ export class GlobalHider {
|
|
|
2189
2226
|
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
2227
|
}
|
|
2191
2228
|
|
|
2192
|
-
export function getGlobalHider(): GlobalHider;
|
|
2193
|
-
|
|
2194
2229
|
export interface GenericFeature {
|
|
2195
2230
|
longitude: number;
|
|
2196
2231
|
latitude: number;
|
|
@@ -2311,19 +2346,15 @@ export class Layer extends VcsObject {
|
|
|
2311
2346
|
* The class names of the supported maps.
|
|
2312
2347
|
*/
|
|
2313
2348
|
protected _supportedMaps: string[];
|
|
2349
|
+
protected _url: string | any;
|
|
2314
2350
|
/**
|
|
2315
2351
|
* Called when the zIndex of this layer is changed. Is passed the new zIndex as its only argument.
|
|
2316
2352
|
*/
|
|
2317
2353
|
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
2354
|
/**
|
|
2323
2355
|
* event raised if the exclusives group of the layer changes. is passed the array of exclusive groups as its only argument
|
|
2324
2356
|
*/
|
|
2325
2357
|
exclusiveGroupsChanged: VcsEvent<(string | symbol)[]>;
|
|
2326
|
-
globalHider: GlobalHider;
|
|
2327
2358
|
copyright: CopyrightOptions | undefined;
|
|
2328
2359
|
/**
|
|
2329
2360
|
* Event raised, if the layers state changes. Is passed the LayerState as its only parameter
|
|
@@ -2342,12 +2373,19 @@ export class Layer extends VcsObject {
|
|
|
2342
2373
|
readonly state: LayerState;
|
|
2343
2374
|
allowPicking: any;
|
|
2344
2375
|
url: any;
|
|
2376
|
+
hiddenObjectIds: any;
|
|
2377
|
+
readonly globalHider: GlobalHider | null;
|
|
2378
|
+
setGlobalHider(globalHider: GlobalHider): void;
|
|
2345
2379
|
/**
|
|
2346
2380
|
* Indicates, that this layer is part of an exclusiveGroup
|
|
2347
2381
|
*/
|
|
2348
2382
|
readonly exclusive: boolean;
|
|
2349
2383
|
exclusiveGroups: any;
|
|
2350
2384
|
zIndex: any;
|
|
2385
|
+
/**
|
|
2386
|
+
* sets the locale and reloads the layer the if the URL is a locale aware Object.
|
|
2387
|
+
*/
|
|
2388
|
+
locale: any;
|
|
2351
2389
|
/**
|
|
2352
2390
|
* creates an array of layer implementations for the given map.
|
|
2353
2391
|
* @param map - Map
|
|
@@ -2608,19 +2646,15 @@ export class OpenStreetMapLayer extends Layer implements SplitLayer {
|
|
|
2608
2646
|
* The class names of the supported maps.
|
|
2609
2647
|
*/
|
|
2610
2648
|
protected _supportedMaps: string[];
|
|
2649
|
+
protected _url: string | any;
|
|
2611
2650
|
/**
|
|
2612
2651
|
* Called when the zIndex of this layer is changed. Is passed the new zIndex as its only argument.
|
|
2613
2652
|
*/
|
|
2614
2653
|
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
2654
|
/**
|
|
2620
2655
|
* event raised if the exclusives group of the layer changes. is passed the array of exclusive groups as its only argument
|
|
2621
2656
|
*/
|
|
2622
2657
|
exclusiveGroupsChanged: VcsEvent<(string | symbol)[]>;
|
|
2623
|
-
globalHider: GlobalHider;
|
|
2624
2658
|
copyright: CopyrightOptions | undefined;
|
|
2625
2659
|
/**
|
|
2626
2660
|
* Event raised, if the layers state changes. Is passed the LayerState as its only parameter
|
|
@@ -2642,6 +2676,8 @@ export class OpenStreetMapLayer extends Layer implements SplitLayer {
|
|
|
2642
2676
|
* A layers url, should on be configured, else an empty string
|
|
2643
2677
|
*/
|
|
2644
2678
|
url: string;
|
|
2679
|
+
hiddenObjectIds: string[];
|
|
2680
|
+
readonly globalHider: GlobalHider | null;
|
|
2645
2681
|
/**
|
|
2646
2682
|
* Indicates, that this layer is part of an exclusiveGroup
|
|
2647
2683
|
*/
|
|
@@ -2651,6 +2687,10 @@ export class OpenStreetMapLayer extends Layer implements SplitLayer {
|
|
|
2651
2687
|
*/
|
|
2652
2688
|
readonly exclusiveGroups: any;
|
|
2653
2689
|
zIndex: number;
|
|
2690
|
+
/**
|
|
2691
|
+
* returns the currently set locale. Can be used to provide locale specific URLs.
|
|
2692
|
+
*/
|
|
2693
|
+
locale: string;
|
|
2654
2694
|
/**
|
|
2655
2695
|
* unique Name
|
|
2656
2696
|
*/
|
|
@@ -2753,6 +2793,7 @@ export class VectorOpenlayersImpl extends LayerOpenlayersImpl implements Feature
|
|
|
2753
2793
|
minResolution: number;
|
|
2754
2794
|
featureVisibility: FeatureVisibility;
|
|
2755
2795
|
olLayer: import("ol/layer/Vector").default<import("ol/source").Vector<import("ol/geom/Geometry").default>> | null;
|
|
2796
|
+
globalHider: GlobalHider;
|
|
2756
2797
|
updateStyle(style: StyleItem, silent?: boolean): void;
|
|
2757
2798
|
setVisibility(visibility: boolean): void;
|
|
2758
2799
|
}
|
|
@@ -2917,19 +2958,15 @@ export class PointCloudLayer extends CesiumTilesetLayer {
|
|
|
2917
2958
|
* The class names of the supported maps.
|
|
2918
2959
|
*/
|
|
2919
2960
|
protected _supportedMaps: string[];
|
|
2961
|
+
protected _url: string | any;
|
|
2920
2962
|
/**
|
|
2921
2963
|
* Called when the zIndex of this layer is changed. Is passed the new zIndex as its only argument.
|
|
2922
2964
|
*/
|
|
2923
2965
|
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
2966
|
/**
|
|
2929
2967
|
* event raised if the exclusives group of the layer changes. is passed the array of exclusive groups as its only argument
|
|
2930
2968
|
*/
|
|
2931
2969
|
exclusiveGroupsChanged: VcsEvent<(string | symbol)[]>;
|
|
2932
|
-
globalHider: GlobalHider;
|
|
2933
2970
|
copyright: CopyrightOptions | undefined;
|
|
2934
2971
|
/**
|
|
2935
2972
|
* Event raised, if the layers state changes. Is passed the LayerState as its only parameter
|
|
@@ -2951,6 +2988,8 @@ export class PointCloudLayer extends CesiumTilesetLayer {
|
|
|
2951
2988
|
* A layers url, should on be configured, else an empty string
|
|
2952
2989
|
*/
|
|
2953
2990
|
url: string;
|
|
2991
|
+
hiddenObjectIds: string[];
|
|
2992
|
+
readonly globalHider: GlobalHider | null;
|
|
2954
2993
|
/**
|
|
2955
2994
|
* Indicates, that this layer is part of an exclusiveGroup
|
|
2956
2995
|
*/
|
|
@@ -2960,6 +2999,10 @@ export class PointCloudLayer extends CesiumTilesetLayer {
|
|
|
2960
2999
|
*/
|
|
2961
3000
|
readonly exclusiveGroups: any;
|
|
2962
3001
|
zIndex: number;
|
|
3002
|
+
/**
|
|
3003
|
+
* returns the currently set locale. Can be used to provide locale specific URLs.
|
|
3004
|
+
*/
|
|
3005
|
+
locale: string;
|
|
2963
3006
|
/**
|
|
2964
3007
|
* unique Name
|
|
2965
3008
|
*/
|
|
@@ -3061,19 +3104,15 @@ export class RasterLayer extends Layer implements SplitLayer {
|
|
|
3061
3104
|
* The class names of the supported maps.
|
|
3062
3105
|
*/
|
|
3063
3106
|
protected _supportedMaps: string[];
|
|
3107
|
+
protected _url: string | any;
|
|
3064
3108
|
/**
|
|
3065
3109
|
* Called when the zIndex of this layer is changed. Is passed the new zIndex as its only argument.
|
|
3066
3110
|
*/
|
|
3067
3111
|
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
3112
|
/**
|
|
3073
3113
|
* event raised if the exclusives group of the layer changes. is passed the array of exclusive groups as its only argument
|
|
3074
3114
|
*/
|
|
3075
3115
|
exclusiveGroupsChanged: VcsEvent<(string | symbol)[]>;
|
|
3076
|
-
globalHider: GlobalHider;
|
|
3077
3116
|
copyright: CopyrightOptions | undefined;
|
|
3078
3117
|
/**
|
|
3079
3118
|
* Event raised, if the layers state changes. Is passed the LayerState as its only parameter
|
|
@@ -3095,6 +3134,8 @@ export class RasterLayer extends Layer implements SplitLayer {
|
|
|
3095
3134
|
* A layers url, should on be configured, else an empty string
|
|
3096
3135
|
*/
|
|
3097
3136
|
url: string;
|
|
3137
|
+
hiddenObjectIds: string[];
|
|
3138
|
+
readonly globalHider: GlobalHider | null;
|
|
3098
3139
|
/**
|
|
3099
3140
|
* Indicates, that this layer is part of an exclusiveGroup
|
|
3100
3141
|
*/
|
|
@@ -3104,6 +3145,10 @@ export class RasterLayer extends Layer implements SplitLayer {
|
|
|
3104
3145
|
*/
|
|
3105
3146
|
readonly exclusiveGroups: any;
|
|
3106
3147
|
zIndex: number;
|
|
3148
|
+
/**
|
|
3149
|
+
* returns the currently set locale. Can be used to provide locale specific URLs.
|
|
3150
|
+
*/
|
|
3151
|
+
locale: string;
|
|
3107
3152
|
/**
|
|
3108
3153
|
* unique Name
|
|
3109
3154
|
*/
|
|
@@ -3172,19 +3217,15 @@ export class SingleImageLayer extends RasterLayer {
|
|
|
3172
3217
|
* The class names of the supported maps.
|
|
3173
3218
|
*/
|
|
3174
3219
|
protected _supportedMaps: string[];
|
|
3220
|
+
protected _url: string | any;
|
|
3175
3221
|
/**
|
|
3176
3222
|
* Called when the zIndex of this layer is changed. Is passed the new zIndex as its only argument.
|
|
3177
3223
|
*/
|
|
3178
3224
|
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
3225
|
/**
|
|
3184
3226
|
* event raised if the exclusives group of the layer changes. is passed the array of exclusive groups as its only argument
|
|
3185
3227
|
*/
|
|
3186
3228
|
exclusiveGroupsChanged: VcsEvent<(string | symbol)[]>;
|
|
3187
|
-
globalHider: GlobalHider;
|
|
3188
3229
|
copyright: CopyrightOptions | undefined;
|
|
3189
3230
|
/**
|
|
3190
3231
|
* Event raised, if the layers state changes. Is passed the LayerState as its only parameter
|
|
@@ -3206,6 +3247,8 @@ export class SingleImageLayer extends RasterLayer {
|
|
|
3206
3247
|
* A layers url, should on be configured, else an empty string
|
|
3207
3248
|
*/
|
|
3208
3249
|
url: string;
|
|
3250
|
+
hiddenObjectIds: string[];
|
|
3251
|
+
readonly globalHider: GlobalHider | null;
|
|
3209
3252
|
/**
|
|
3210
3253
|
* Indicates, that this layer is part of an exclusiveGroup
|
|
3211
3254
|
*/
|
|
@@ -3215,6 +3258,10 @@ export class SingleImageLayer extends RasterLayer {
|
|
|
3215
3258
|
*/
|
|
3216
3259
|
readonly exclusiveGroups: any;
|
|
3217
3260
|
zIndex: number;
|
|
3261
|
+
/**
|
|
3262
|
+
* returns the currently set locale. Can be used to provide locale specific URLs.
|
|
3263
|
+
*/
|
|
3264
|
+
locale: string;
|
|
3218
3265
|
/**
|
|
3219
3266
|
* unique Name
|
|
3220
3267
|
*/
|
|
@@ -3290,19 +3337,15 @@ export class TerrainLayer extends Layer {
|
|
|
3290
3337
|
* The class names of the supported maps.
|
|
3291
3338
|
*/
|
|
3292
3339
|
protected _supportedMaps: string[];
|
|
3340
|
+
protected _url: string | any;
|
|
3293
3341
|
/**
|
|
3294
3342
|
* Called when the zIndex of this layer is changed. Is passed the new zIndex as its only argument.
|
|
3295
3343
|
*/
|
|
3296
3344
|
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
3345
|
/**
|
|
3302
3346
|
* event raised if the exclusives group of the layer changes. is passed the array of exclusive groups as its only argument
|
|
3303
3347
|
*/
|
|
3304
3348
|
exclusiveGroupsChanged: VcsEvent<(string | symbol)[]>;
|
|
3305
|
-
globalHider: GlobalHider;
|
|
3306
3349
|
copyright: CopyrightOptions | undefined;
|
|
3307
3350
|
/**
|
|
3308
3351
|
* Event raised, if the layers state changes. Is passed the LayerState as its only parameter
|
|
@@ -3324,6 +3367,8 @@ export class TerrainLayer extends Layer {
|
|
|
3324
3367
|
* A layers url, should on be configured, else an empty string
|
|
3325
3368
|
*/
|
|
3326
3369
|
url: string;
|
|
3370
|
+
hiddenObjectIds: string[];
|
|
3371
|
+
readonly globalHider: GlobalHider | null;
|
|
3327
3372
|
/**
|
|
3328
3373
|
* Indicates, that this layer is part of an exclusiveGroup
|
|
3329
3374
|
*/
|
|
@@ -3333,6 +3378,10 @@ export class TerrainLayer extends Layer {
|
|
|
3333
3378
|
*/
|
|
3334
3379
|
readonly exclusiveGroups: any;
|
|
3335
3380
|
zIndex: number;
|
|
3381
|
+
/**
|
|
3382
|
+
* returns the currently set locale. Can be used to provide locale specific URLs.
|
|
3383
|
+
*/
|
|
3384
|
+
locale: string;
|
|
3336
3385
|
/**
|
|
3337
3386
|
* unique Name
|
|
3338
3387
|
*/
|
|
@@ -3367,6 +3416,10 @@ export class MVTTileProvider extends TileProvider {
|
|
|
3367
3416
|
static getDefaultOptions(): MVTTileProviderOptions;
|
|
3368
3417
|
url: string;
|
|
3369
3418
|
idProperty: string | undefined;
|
|
3419
|
+
/**
|
|
3420
|
+
* sets the locale and clears the Cache if the URL is a locale aware Object.
|
|
3421
|
+
*/
|
|
3422
|
+
locale: any;
|
|
3370
3423
|
/**
|
|
3371
3424
|
* Cesium Webmercator TilingScheme
|
|
3372
3425
|
*/
|
|
@@ -3452,6 +3505,7 @@ export class StaticGeoJSONTileProvider extends TileProvider {
|
|
|
3452
3505
|
* use setTileCacheSize to change
|
|
3453
3506
|
*/
|
|
3454
3507
|
readonly tileCacheSize: number;
|
|
3508
|
+
locale: string;
|
|
3455
3509
|
/**
|
|
3456
3510
|
* unique Name
|
|
3457
3511
|
*/
|
|
@@ -3551,6 +3605,10 @@ export class TileProvider extends VcsObject {
|
|
|
3551
3605
|
* use setTileCacheSize to change
|
|
3552
3606
|
*/
|
|
3553
3607
|
readonly tileCacheSize: number;
|
|
3608
|
+
/**
|
|
3609
|
+
* sets the locale and reloads the layer the if the URL is a locale aware Object.
|
|
3610
|
+
*/
|
|
3611
|
+
locale: any;
|
|
3554
3612
|
setTileCacheSize(value: number): Promise<any>;
|
|
3555
3613
|
/**
|
|
3556
3614
|
* returns the closest baseLevel for the given resolution
|
|
@@ -3631,9 +3689,9 @@ export interface URLTemplateTileProviderOptions extends TileProviderOptions {
|
|
|
3631
3689
|
/**
|
|
3632
3690
|
* replaces {x}, {y}, {z} with the x, y, z tiling coordinates
|
|
3633
3691
|
* replaces {minx}, {miny}, {maxx}, {maxy} with extent of the tile if tilingExtent is provided
|
|
3634
|
-
* replaces {locale} with the
|
|
3692
|
+
* replaces {locale} with the given locale
|
|
3635
3693
|
*/
|
|
3636
|
-
export function getURL(url: string, x: number, y: number, z: number, tilingExtent?: import("@vcmap/cesium").Rectangle): string;
|
|
3694
|
+
export function getURL(url: string, x: number, y: number, z: number, tilingExtent?: import("@vcmap/cesium").Rectangle, locale?: string): string;
|
|
3637
3695
|
|
|
3638
3696
|
/**
|
|
3639
3697
|
* TileProvider loads GeojsonLayer from the provided URL. The URL has placeholders:
|
|
@@ -3646,6 +3704,10 @@ export class URLTemplateTileProvider extends TileProvider {
|
|
|
3646
3704
|
static readonly className: any;
|
|
3647
3705
|
static getDefaultOptions(): URLTemplateTileProviderOptions;
|
|
3648
3706
|
url: string;
|
|
3707
|
+
/**
|
|
3708
|
+
* sets the locale and clears the Cache if the URL is a locale aware Object.
|
|
3709
|
+
*/
|
|
3710
|
+
locale: any;
|
|
3649
3711
|
/**
|
|
3650
3712
|
* Cesium Webmercator TilingScheme
|
|
3651
3713
|
*/
|
|
@@ -3738,19 +3800,15 @@ export class TMSLayer extends RasterLayer {
|
|
|
3738
3800
|
* The class names of the supported maps.
|
|
3739
3801
|
*/
|
|
3740
3802
|
protected _supportedMaps: string[];
|
|
3803
|
+
protected _url: string | any;
|
|
3741
3804
|
/**
|
|
3742
3805
|
* Called when the zIndex of this layer is changed. Is passed the new zIndex as its only argument.
|
|
3743
3806
|
*/
|
|
3744
3807
|
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
3808
|
/**
|
|
3750
3809
|
* event raised if the exclusives group of the layer changes. is passed the array of exclusive groups as its only argument
|
|
3751
3810
|
*/
|
|
3752
3811
|
exclusiveGroupsChanged: VcsEvent<(string | symbol)[]>;
|
|
3753
|
-
globalHider: GlobalHider;
|
|
3754
3812
|
copyright: CopyrightOptions | undefined;
|
|
3755
3813
|
/**
|
|
3756
3814
|
* Event raised, if the layers state changes. Is passed the LayerState as its only parameter
|
|
@@ -3772,6 +3830,8 @@ export class TMSLayer extends RasterLayer {
|
|
|
3772
3830
|
* A layers url, should on be configured, else an empty string
|
|
3773
3831
|
*/
|
|
3774
3832
|
url: string;
|
|
3833
|
+
hiddenObjectIds: string[];
|
|
3834
|
+
readonly globalHider: GlobalHider | null;
|
|
3775
3835
|
/**
|
|
3776
3836
|
* Indicates, that this layer is part of an exclusiveGroup
|
|
3777
3837
|
*/
|
|
@@ -3781,6 +3841,10 @@ export class TMSLayer extends RasterLayer {
|
|
|
3781
3841
|
*/
|
|
3782
3842
|
readonly exclusiveGroups: any;
|
|
3783
3843
|
zIndex: number;
|
|
3844
|
+
/**
|
|
3845
|
+
* returns the currently set locale. Can be used to provide locale specific URLs.
|
|
3846
|
+
*/
|
|
3847
|
+
locale: string;
|
|
3784
3848
|
/**
|
|
3785
3849
|
* unique Name
|
|
3786
3850
|
*/
|
|
@@ -3997,19 +4061,15 @@ export class VectorLayer extends FeatureLayer {
|
|
|
3997
4061
|
* The class names of the supported maps.
|
|
3998
4062
|
*/
|
|
3999
4063
|
protected _supportedMaps: string[];
|
|
4064
|
+
protected _url: string | any;
|
|
4000
4065
|
/**
|
|
4001
4066
|
* Called when the zIndex of this layer is changed. Is passed the new zIndex as its only argument.
|
|
4002
4067
|
*/
|
|
4003
4068
|
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
4069
|
/**
|
|
4009
4070
|
* event raised if the exclusives group of the layer changes. is passed the array of exclusive groups as its only argument
|
|
4010
4071
|
*/
|
|
4011
4072
|
exclusiveGroupsChanged: VcsEvent<(string | symbol)[]>;
|
|
4012
|
-
globalHider: GlobalHider;
|
|
4013
4073
|
copyright: CopyrightOptions | undefined;
|
|
4014
4074
|
/**
|
|
4015
4075
|
* Event raised, if the layers state changes. Is passed the LayerState as its only parameter
|
|
@@ -4030,6 +4090,8 @@ export class VectorLayer extends FeatureLayer {
|
|
|
4030
4090
|
* A layers url, should on be configured, else an empty string
|
|
4031
4091
|
*/
|
|
4032
4092
|
url: string;
|
|
4093
|
+
hiddenObjectIds: string[];
|
|
4094
|
+
readonly globalHider: GlobalHider | null;
|
|
4033
4095
|
/**
|
|
4034
4096
|
* Indicates, that this layer is part of an exclusiveGroup
|
|
4035
4097
|
*/
|
|
@@ -4039,6 +4101,10 @@ export class VectorLayer extends FeatureLayer {
|
|
|
4039
4101
|
*/
|
|
4040
4102
|
readonly exclusiveGroups: any;
|
|
4041
4103
|
zIndex: number;
|
|
4104
|
+
/**
|
|
4105
|
+
* returns the currently set locale. Can be used to provide locale specific URLs.
|
|
4106
|
+
*/
|
|
4107
|
+
locale: string;
|
|
4042
4108
|
/**
|
|
4043
4109
|
* unique Name
|
|
4044
4110
|
*/
|
|
@@ -4315,6 +4381,10 @@ export class VectorTileLayer extends FeatureLayer {
|
|
|
4315
4381
|
*/
|
|
4316
4382
|
vectorProperties: VectorProperties;
|
|
4317
4383
|
tileProvider: TileProvider;
|
|
4384
|
+
/**
|
|
4385
|
+
* sets the locale and reloads the layer the if the URL is a locale aware Object.
|
|
4386
|
+
*/
|
|
4387
|
+
locale: any;
|
|
4318
4388
|
/**
|
|
4319
4389
|
* rerenders the specified tiles
|
|
4320
4390
|
* rendering happens async
|
|
@@ -4361,19 +4431,15 @@ export class VectorTileLayer extends FeatureLayer {
|
|
|
4361
4431
|
* The class names of the supported maps.
|
|
4362
4432
|
*/
|
|
4363
4433
|
protected _supportedMaps: string[];
|
|
4434
|
+
protected _url: string | any;
|
|
4364
4435
|
/**
|
|
4365
4436
|
* Called when the zIndex of this layer is changed. Is passed the new zIndex as its only argument.
|
|
4366
4437
|
*/
|
|
4367
4438
|
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
4439
|
/**
|
|
4373
4440
|
* event raised if the exclusives group of the layer changes. is passed the array of exclusive groups as its only argument
|
|
4374
4441
|
*/
|
|
4375
4442
|
exclusiveGroupsChanged: VcsEvent<(string | symbol)[]>;
|
|
4376
|
-
globalHider: GlobalHider;
|
|
4377
4443
|
copyright: CopyrightOptions | undefined;
|
|
4378
4444
|
/**
|
|
4379
4445
|
* Event raised, if the layers state changes. Is passed the LayerState as its only parameter
|
|
@@ -4395,6 +4461,8 @@ export class VectorTileLayer extends FeatureLayer {
|
|
|
4395
4461
|
* A layers url, should on be configured, else an empty string
|
|
4396
4462
|
*/
|
|
4397
4463
|
url: string;
|
|
4464
|
+
hiddenObjectIds: string[];
|
|
4465
|
+
readonly globalHider: GlobalHider | null;
|
|
4398
4466
|
/**
|
|
4399
4467
|
* Indicates, that this layer is part of an exclusiveGroup
|
|
4400
4468
|
*/
|
|
@@ -4507,19 +4575,15 @@ export class WFSLayer extends VectorLayer {
|
|
|
4507
4575
|
* The class names of the supported maps.
|
|
4508
4576
|
*/
|
|
4509
4577
|
protected _supportedMaps: string[];
|
|
4578
|
+
protected _url: string | any;
|
|
4510
4579
|
/**
|
|
4511
4580
|
* Called when the zIndex of this layer is changed. Is passed the new zIndex as its only argument.
|
|
4512
4581
|
*/
|
|
4513
4582
|
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
4583
|
/**
|
|
4519
4584
|
* event raised if the exclusives group of the layer changes. is passed the array of exclusive groups as its only argument
|
|
4520
4585
|
*/
|
|
4521
4586
|
exclusiveGroupsChanged: VcsEvent<(string | symbol)[]>;
|
|
4522
|
-
globalHider: GlobalHider;
|
|
4523
4587
|
copyright: CopyrightOptions | undefined;
|
|
4524
4588
|
/**
|
|
4525
4589
|
* Event raised, if the layers state changes. Is passed the LayerState as its only parameter
|
|
@@ -4540,6 +4604,8 @@ export class WFSLayer extends VectorLayer {
|
|
|
4540
4604
|
* A layers url, should on be configured, else an empty string
|
|
4541
4605
|
*/
|
|
4542
4606
|
url: string;
|
|
4607
|
+
hiddenObjectIds: string[];
|
|
4608
|
+
readonly globalHider: GlobalHider | null;
|
|
4543
4609
|
/**
|
|
4544
4610
|
* Indicates, that this layer is part of an exclusiveGroup
|
|
4545
4611
|
*/
|
|
@@ -4549,6 +4615,10 @@ export class WFSLayer extends VectorLayer {
|
|
|
4549
4615
|
*/
|
|
4550
4616
|
readonly exclusiveGroups: any;
|
|
4551
4617
|
zIndex: number;
|
|
4618
|
+
/**
|
|
4619
|
+
* returns the currently set locale. Can be used to provide locale specific URLs.
|
|
4620
|
+
*/
|
|
4621
|
+
locale: string;
|
|
4552
4622
|
/**
|
|
4553
4623
|
* unique Name
|
|
4554
4624
|
*/
|
|
@@ -4671,19 +4741,15 @@ export class WMSLayer extends RasterLayer {
|
|
|
4671
4741
|
* The class names of the supported maps.
|
|
4672
4742
|
*/
|
|
4673
4743
|
protected _supportedMaps: string[];
|
|
4744
|
+
protected _url: string | any;
|
|
4674
4745
|
/**
|
|
4675
4746
|
* Called when the zIndex of this layer is changed. Is passed the new zIndex as its only argument.
|
|
4676
4747
|
*/
|
|
4677
4748
|
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
4749
|
/**
|
|
4683
4750
|
* event raised if the exclusives group of the layer changes. is passed the array of exclusive groups as its only argument
|
|
4684
4751
|
*/
|
|
4685
4752
|
exclusiveGroupsChanged: VcsEvent<(string | symbol)[]>;
|
|
4686
|
-
globalHider: GlobalHider;
|
|
4687
4753
|
copyright: CopyrightOptions | undefined;
|
|
4688
4754
|
/**
|
|
4689
4755
|
* Event raised, if the layers state changes. Is passed the LayerState as its only parameter
|
|
@@ -4705,6 +4771,8 @@ export class WMSLayer extends RasterLayer {
|
|
|
4705
4771
|
* A layers url, should on be configured, else an empty string
|
|
4706
4772
|
*/
|
|
4707
4773
|
url: string;
|
|
4774
|
+
hiddenObjectIds: string[];
|
|
4775
|
+
readonly globalHider: GlobalHider | null;
|
|
4708
4776
|
/**
|
|
4709
4777
|
* Indicates, that this layer is part of an exclusiveGroup
|
|
4710
4778
|
*/
|
|
@@ -4714,6 +4782,10 @@ export class WMSLayer extends RasterLayer {
|
|
|
4714
4782
|
*/
|
|
4715
4783
|
readonly exclusiveGroups: any;
|
|
4716
4784
|
zIndex: number;
|
|
4785
|
+
/**
|
|
4786
|
+
* returns the currently set locale. Can be used to provide locale specific URLs.
|
|
4787
|
+
*/
|
|
4788
|
+
locale: string;
|
|
4717
4789
|
/**
|
|
4718
4790
|
* unique Name
|
|
4719
4791
|
*/
|
|
@@ -4799,19 +4871,15 @@ export class WMTSLayer extends RasterLayer {
|
|
|
4799
4871
|
* The class names of the supported maps.
|
|
4800
4872
|
*/
|
|
4801
4873
|
protected _supportedMaps: string[];
|
|
4874
|
+
protected _url: string | any;
|
|
4802
4875
|
/**
|
|
4803
4876
|
* Called when the zIndex of this layer is changed. Is passed the new zIndex as its only argument.
|
|
4804
4877
|
*/
|
|
4805
4878
|
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
4879
|
/**
|
|
4811
4880
|
* event raised if the exclusives group of the layer changes. is passed the array of exclusive groups as its only argument
|
|
4812
4881
|
*/
|
|
4813
4882
|
exclusiveGroupsChanged: VcsEvent<(string | symbol)[]>;
|
|
4814
|
-
globalHider: GlobalHider;
|
|
4815
4883
|
copyright: CopyrightOptions | undefined;
|
|
4816
4884
|
/**
|
|
4817
4885
|
* Event raised, if the layers state changes. Is passed the LayerState as its only parameter
|
|
@@ -4833,6 +4901,8 @@ export class WMTSLayer extends RasterLayer {
|
|
|
4833
4901
|
* A layers url, should on be configured, else an empty string
|
|
4834
4902
|
*/
|
|
4835
4903
|
url: string;
|
|
4904
|
+
hiddenObjectIds: string[];
|
|
4905
|
+
readonly globalHider: GlobalHider | null;
|
|
4836
4906
|
/**
|
|
4837
4907
|
* Indicates, that this layer is part of an exclusiveGroup
|
|
4838
4908
|
*/
|
|
@@ -4842,6 +4912,10 @@ export class WMTSLayer extends RasterLayer {
|
|
|
4842
4912
|
*/
|
|
4843
4913
|
readonly exclusiveGroups: any;
|
|
4844
4914
|
zIndex: number;
|
|
4915
|
+
/**
|
|
4916
|
+
* returns the currently set locale. Can be used to provide locale specific URLs.
|
|
4917
|
+
*/
|
|
4918
|
+
locale: string;
|
|
4845
4919
|
/**
|
|
4846
4920
|
* unique Name
|
|
4847
4921
|
*/
|
|
@@ -6781,16 +6855,6 @@ export class Collection<T extends any> {
|
|
|
6781
6855
|
destroy(): void;
|
|
6782
6856
|
}
|
|
6783
6857
|
|
|
6784
|
-
export function getShortLocaleDate(date: Date, locale?: string): string;
|
|
6785
|
-
|
|
6786
|
-
export function getShortLocaleTime(date: Date, locale?: string): string;
|
|
6787
|
-
|
|
6788
|
-
export function getISODateString(date: Date): string;
|
|
6789
|
-
|
|
6790
|
-
export function getDayOfYear(date: Date): number;
|
|
6791
|
-
|
|
6792
|
-
export function isLeapYear(date: Date): boolean;
|
|
6793
|
-
|
|
6794
6858
|
/**
|
|
6795
6859
|
* Tracks layer exclusivity, added to every {@link LayerCollection}.
|
|
6796
6860
|
*/
|
|
@@ -7034,25 +7098,26 @@ export class LayerCollection extends IndexedCollection<Layer> {
|
|
|
7034
7098
|
* ensures consistency by setting a new local z index if needed.
|
|
7035
7099
|
*/
|
|
7036
7100
|
readonly zIndexSymbol: symbol;
|
|
7101
|
+
/**
|
|
7102
|
+
* Set global hider for these maps.
|
|
7103
|
+
*/
|
|
7104
|
+
globalHider: any;
|
|
7105
|
+
locale: any;
|
|
7037
7106
|
/**
|
|
7038
7107
|
* Adds a layer to the collection. Can optionally be passed an index at which to insert the layer.
|
|
7108
|
+
* The layer locale will be set to the same locale of the layerCollection. This will trigger a forceRedraw
|
|
7109
|
+
* of the layer if the layer locale is different and the layer is locale aware.
|
|
7039
7110
|
* @returns returns the layer index or null, if the layers name is not unique
|
|
7040
7111
|
*/
|
|
7041
7112
|
add(layer: Layer, index?: number): number | null;
|
|
7042
7113
|
protected _remove(layer: Layer): number;
|
|
7043
7114
|
}
|
|
7044
7115
|
|
|
7045
|
-
export function getLocaleChangedEvent(): VcsEvent<string>;
|
|
7046
|
-
|
|
7047
7116
|
/**
|
|
7048
7117
|
* returns the default browserLocale, if not possible 'en'
|
|
7049
7118
|
*/
|
|
7050
7119
|
export function detectBrowserLocale(): string;
|
|
7051
7120
|
|
|
7052
|
-
export function getCurrentLocale(): string;
|
|
7053
|
-
|
|
7054
|
-
export function setCurrentLocale(value: string): void;
|
|
7055
|
-
|
|
7056
7121
|
export interface MapCollectionInitializationError {
|
|
7057
7122
|
error: Error;
|
|
7058
7123
|
map: VcsMap;
|
|
@@ -7426,6 +7491,12 @@ export class ViewPoint extends VcsObject {
|
|
|
7426
7491
|
|
|
7427
7492
|
export class VcsApp {
|
|
7428
7493
|
readonly id: string;
|
|
7494
|
+
/**
|
|
7495
|
+
* sets the locale of the vcsApp and the linked layerCollection.
|
|
7496
|
+
* This will trigger the localeChanged Event.
|
|
7497
|
+
*/
|
|
7498
|
+
locale: any;
|
|
7499
|
+
readonly localeChanged: VcsEvent<string>;
|
|
7429
7500
|
readonly maps: OverrideMapCollection;
|
|
7430
7501
|
readonly layers: OverrideLayerCollection;
|
|
7431
7502
|
readonly obliqueCollections: OverrideCollection<ObliqueCollection>;
|
|
@@ -7433,9 +7504,11 @@ export class VcsApp {
|
|
|
7433
7504
|
readonly styles: OverrideCollection<StyleItem>;
|
|
7434
7505
|
readonly categories: CategoryCollection;
|
|
7435
7506
|
readonly destroyed: VcsEvent<void>;
|
|
7507
|
+
readonly contexts: Context[];
|
|
7436
7508
|
readonly contextAdded: any;
|
|
7437
7509
|
readonly contextRemoved: any;
|
|
7438
7510
|
readonly dynamicContextId: string;
|
|
7511
|
+
readonly dynamicContextIdChanged: VcsEvent<string>;
|
|
7439
7512
|
readonly mapClassRegistry: OverrideClassRegistry<VcsMap>;
|
|
7440
7513
|
readonly layerClassRegistry: OverrideClassRegistry<Layer>;
|
|
7441
7514
|
readonly styleClassRegistry: OverrideClassRegistry<StyleItem>;
|
|
@@ -7447,6 +7520,14 @@ export class VcsApp {
|
|
|
7447
7520
|
protected _parseContext(context: Context): Promise<void>;
|
|
7448
7521
|
protected _setContextState(context: Context): Promise<void>;
|
|
7449
7522
|
addContext(context: Context): Promise<void>;
|
|
7523
|
+
/**
|
|
7524
|
+
* sets the given context as the dynamic
|
|
7525
|
+
*/
|
|
7526
|
+
setDynamicContext(context: Context): void;
|
|
7527
|
+
/**
|
|
7528
|
+
* resets the dynamic Context to the "defaultDynamicContext"
|
|
7529
|
+
*/
|
|
7530
|
+
resetDynamicContext(): void;
|
|
7450
7531
|
protected _removeContext(contextId: string): Promise<void>;
|
|
7451
7532
|
removeContext(contextId: string): Promise<void>;
|
|
7452
7533
|
/**
|
|
@@ -7540,8 +7621,13 @@ export class VcsObject {
|
|
|
7540
7621
|
|
|
7541
7622
|
|
|
7542
7623
|
|
|
7624
|
+
export interface ReplacedEvent<T extends any> {
|
|
7625
|
+
new: T,
|
|
7626
|
+
old: T,
|
|
7627
|
+
}
|
|
7628
|
+
|
|
7543
7629
|
export interface OverrideCollectionInterface<T extends any> {
|
|
7544
|
-
replaced: VcsEvent<T
|
|
7630
|
+
replaced: VcsEvent<ReplacedEvent<T>>;
|
|
7545
7631
|
shadowMap: Map<string, object[]>;
|
|
7546
7632
|
override: (item: T) => T;
|
|
7547
7633
|
parseItems: (items: object[], contextId: string) => Promise<void>;
|
|
@@ -7550,7 +7636,7 @@ export interface OverrideCollectionInterface<T extends any> {
|
|
|
7550
7636
|
}
|
|
7551
7637
|
|
|
7552
7638
|
export class OverrideCollection<T extends any> extends Collection<T> implements OverrideCollectionInterface<T> {
|
|
7553
|
-
replaced: VcsEvent<T
|
|
7639
|
+
replaced: VcsEvent<ReplacedEvent<T>>;
|
|
7554
7640
|
shadowMap: Map<string, object[]>;
|
|
7555
7641
|
override: (item: T) => T;
|
|
7556
7642
|
parseItems: (items: object[], contextId: string) => Promise<void>;
|
|
@@ -7559,7 +7645,7 @@ export class OverrideCollection<T extends any> extends Collection<T> implements
|
|
|
7559
7645
|
}
|
|
7560
7646
|
|
|
7561
7647
|
export class OverrideLayerCollection extends LayerCollection implements OverrideCollectionInterface<Layer> {
|
|
7562
|
-
replaced: VcsEvent<Layer
|
|
7648
|
+
replaced: VcsEvent<ReplacedEvent<Layer>>;
|
|
7563
7649
|
shadowMap: Map<string, object[]>;
|
|
7564
7650
|
override: (item: Layer) => Layer;
|
|
7565
7651
|
parseItems: (items: object[], contextId: string) => Promise<void>;
|
|
@@ -7568,7 +7654,7 @@ export class OverrideLayerCollection extends LayerCollection implements Override
|
|
|
7568
7654
|
}
|
|
7569
7655
|
|
|
7570
7656
|
export class OverrideMapCollection extends MapCollection implements OverrideCollectionInterface<VcsMap> {
|
|
7571
|
-
replaced: VcsEvent<VcsMap
|
|
7657
|
+
replaced: VcsEvent<ReplacedEvent<VcsMap>>;
|
|
7572
7658
|
shadowMap: Map<string, object[]>;
|
|
7573
7659
|
override: (item: VcsMap) => VcsMap;
|
|
7574
7660
|
parseItems: (items: object[], contextId: string) => Promise<void>;
|