@itwin/map-layers 4.0.0-dev.24 → 4.0.0-dev.28
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/CHANGELOG.md +9 -4
- package/lib/cjs/MapLayerPreferences.d.ts +88 -88
- package/lib/cjs/MapLayerPreferences.js +311 -312
- package/lib/cjs/MapLayerPreferences.js.map +1 -1
- package/lib/cjs/map-layers.d.ts +6 -6
- package/lib/cjs/map-layers.js +22 -22
- package/lib/cjs/mapLayers.d.ts +44 -44
- package/lib/cjs/mapLayers.js +61 -63
- package/lib/cjs/mapLayers.js.map +1 -1
- package/lib/cjs/ui/FeatureInfoUiItemsProvider.d.ts +11 -11
- package/lib/cjs/ui/FeatureInfoUiItemsProvider.js +51 -52
- package/lib/cjs/ui/FeatureInfoUiItemsProvider.js.map +1 -1
- package/lib/cjs/ui/Interfaces.d.ts +50 -50
- package/lib/cjs/ui/Interfaces.js +2 -2
- package/lib/cjs/ui/Interfaces.js.map +1 -1
- package/lib/cjs/ui/MapFeatureInfoTool.d.ts +13 -13
- package/lib/cjs/ui/MapFeatureInfoTool.js +50 -50
- package/lib/cjs/ui/MapFeatureInfoTool.js.map +1 -1
- package/lib/cjs/ui/MapLayersUiItemsProvider.d.ts +8 -8
- package/lib/cjs/ui/MapLayersUiItemsProvider.js +38 -38
- package/lib/cjs/ui/MapLayersUiItemsProvider.js.map +1 -1
- package/lib/cjs/ui/widget/AttachLayerPopupButton.d.ts +14 -14
- package/lib/cjs/ui/widget/AttachLayerPopupButton.js +335 -338
- package/lib/cjs/ui/widget/AttachLayerPopupButton.js.map +1 -1
- package/lib/cjs/ui/widget/BasemapPanel.d.ts +8 -8
- package/lib/cjs/ui/widget/BasemapPanel.js +156 -156
- package/lib/cjs/ui/widget/BasemapPanel.js.map +1 -1
- package/lib/cjs/ui/widget/BasemapPanel.scss +87 -87
- package/lib/cjs/ui/widget/ConfirmMessageDialog.d.ts +21 -21
- package/lib/cjs/ui/widget/ConfirmMessageDialog.js +22 -25
- package/lib/cjs/ui/widget/ConfirmMessageDialog.js.map +1 -1
- package/lib/cjs/ui/widget/FeatureInfoDataProvider.d.ts +40 -40
- package/lib/cjs/ui/widget/FeatureInfoDataProvider.js +138 -139
- package/lib/cjs/ui/widget/FeatureInfoDataProvider.js.map +1 -1
- package/lib/cjs/ui/widget/FeatureInfoWidget.d.ts +7 -7
- package/lib/cjs/ui/widget/FeatureInfoWidget.js +65 -71
- package/lib/cjs/ui/widget/FeatureInfoWidget.js.map +1 -1
- package/lib/cjs/ui/widget/MapLayerDroppable.d.ts +19 -19
- package/lib/cjs/ui/widget/MapLayerDroppable.js +85 -88
- package/lib/cjs/ui/widget/MapLayerDroppable.js.map +1 -1
- package/lib/cjs/ui/widget/MapLayerManager.d.ts +26 -26
- package/lib/cjs/ui/widget/MapLayerManager.js +401 -403
- package/lib/cjs/ui/widget/MapLayerManager.js.map +1 -1
- package/lib/cjs/ui/widget/MapLayerManager.scss +409 -409
- package/lib/cjs/ui/widget/MapLayerSettingsMenu.d.ts +12 -12
- package/lib/cjs/ui/widget/MapLayerSettingsMenu.js +82 -83
- package/lib/cjs/ui/widget/MapLayerSettingsMenu.js.map +1 -1
- package/lib/cjs/ui/widget/MapLayerSettingsPopupButton.d.ts +7 -7
- package/lib/cjs/ui/widget/MapLayerSettingsPopupButton.js +65 -65
- package/lib/cjs/ui/widget/MapLayerSettingsPopupButton.js.map +1 -1
- package/lib/cjs/ui/widget/MapLayerSettingsPopupButton.scss +20 -20
- package/lib/cjs/ui/widget/MapLayersWidget.d.ts +11 -11
- package/lib/cjs/ui/widget/MapLayersWidget.js +31 -31
- package/lib/cjs/ui/widget/MapLayersWidget.js.map +1 -1
- package/lib/cjs/ui/widget/MapManagerSettings.d.ts +3 -3
- package/lib/cjs/ui/widget/MapManagerSettings.js +200 -200
- package/lib/cjs/ui/widget/MapManagerSettings.js.map +1 -1
- package/lib/cjs/ui/widget/MapManagerSettings.scss +29 -29
- package/lib/cjs/ui/widget/MapUrlDialog.d.ts +23 -23
- package/lib/cjs/ui/widget/MapUrlDialog.js +524 -527
- package/lib/cjs/ui/widget/MapUrlDialog.js.map +1 -1
- package/lib/cjs/ui/widget/MapUrlDialog.scss +100 -100
- package/lib/cjs/ui/widget/SelectMapFormat.d.ts +18 -18
- package/lib/cjs/ui/widget/SelectMapFormat.js +54 -59
- package/lib/cjs/ui/widget/SelectMapFormat.js.map +1 -1
- package/lib/cjs/ui/widget/SubLayersDataProvider.d.ts +20 -20
- package/lib/cjs/ui/widget/SubLayersDataProvider.js +75 -76
- package/lib/cjs/ui/widget/SubLayersDataProvider.js.map +1 -1
- package/lib/cjs/ui/widget/SubLayersPopupButton.d.ts +10 -10
- package/lib/cjs/ui/widget/SubLayersPopupButton.js +40 -40
- package/lib/cjs/ui/widget/SubLayersPopupButton.js.map +1 -1
- package/lib/cjs/ui/widget/SubLayersTree.d.ts +15 -15
- package/lib/cjs/ui/widget/SubLayersTree.js +413 -419
- package/lib/cjs/ui/widget/SubLayersTree.js.map +1 -1
- package/lib/cjs/ui/widget/SubLayersTree.scss +69 -69
- package/lib/cjs/ui/widget/TransparencyPopupButton.d.ts +14 -14
- package/lib/cjs/ui/widget/TransparencyPopupButton.js +47 -47
- package/lib/cjs/ui/widget/TransparencyPopupButton.js.map +1 -1
- package/lib/cjs/ui/widget/TransparencyPopupButton.scss +36 -36
- package/lib/esm/MapLayerPreferences.d.ts +88 -88
- package/lib/esm/MapLayerPreferences.js +307 -308
- package/lib/esm/MapLayerPreferences.js.map +1 -1
- package/lib/esm/map-layers.d.ts +6 -6
- package/lib/esm/map-layers.js +10 -10
- package/lib/esm/mapLayers.d.ts +44 -44
- package/lib/esm/mapLayers.js +57 -59
- package/lib/esm/mapLayers.js.map +1 -1
- package/lib/esm/ui/FeatureInfoUiItemsProvider.d.ts +11 -11
- package/lib/esm/ui/FeatureInfoUiItemsProvider.js +47 -48
- package/lib/esm/ui/FeatureInfoUiItemsProvider.js.map +1 -1
- package/lib/esm/ui/Interfaces.d.ts +50 -50
- package/lib/esm/ui/Interfaces.js +1 -1
- package/lib/esm/ui/Interfaces.js.map +1 -1
- package/lib/esm/ui/MapFeatureInfoTool.d.ts +13 -13
- package/lib/esm/ui/MapFeatureInfoTool.js +45 -45
- package/lib/esm/ui/MapFeatureInfoTool.js.map +1 -1
- package/lib/esm/ui/MapLayersUiItemsProvider.d.ts +8 -8
- package/lib/esm/ui/MapLayersUiItemsProvider.js +34 -34
- package/lib/esm/ui/MapLayersUiItemsProvider.js.map +1 -1
- package/lib/esm/ui/widget/AttachLayerPopupButton.d.ts +14 -14
- package/lib/esm/ui/widget/AttachLayerPopupButton.js +331 -334
- package/lib/esm/ui/widget/AttachLayerPopupButton.js.map +1 -1
- package/lib/esm/ui/widget/BasemapPanel.d.ts +8 -8
- package/lib/esm/ui/widget/BasemapPanel.js +152 -152
- package/lib/esm/ui/widget/BasemapPanel.js.map +1 -1
- package/lib/esm/ui/widget/BasemapPanel.scss +87 -87
- package/lib/esm/ui/widget/ConfirmMessageDialog.d.ts +21 -21
- package/lib/esm/ui/widget/ConfirmMessageDialog.js +18 -21
- package/lib/esm/ui/widget/ConfirmMessageDialog.js.map +1 -1
- package/lib/esm/ui/widget/FeatureInfoDataProvider.d.ts +40 -40
- package/lib/esm/ui/widget/FeatureInfoDataProvider.js +134 -135
- package/lib/esm/ui/widget/FeatureInfoDataProvider.js.map +1 -1
- package/lib/esm/ui/widget/FeatureInfoWidget.d.ts +7 -7
- package/lib/esm/ui/widget/FeatureInfoWidget.js +61 -67
- package/lib/esm/ui/widget/FeatureInfoWidget.js.map +1 -1
- package/lib/esm/ui/widget/MapLayerDroppable.d.ts +19 -19
- package/lib/esm/ui/widget/MapLayerDroppable.js +81 -84
- package/lib/esm/ui/widget/MapLayerDroppable.js.map +1 -1
- package/lib/esm/ui/widget/MapLayerManager.d.ts +26 -26
- package/lib/esm/ui/widget/MapLayerManager.js +396 -398
- package/lib/esm/ui/widget/MapLayerManager.js.map +1 -1
- package/lib/esm/ui/widget/MapLayerManager.scss +409 -409
- package/lib/esm/ui/widget/MapLayerSettingsMenu.d.ts +12 -12
- package/lib/esm/ui/widget/MapLayerSettingsMenu.js +78 -79
- package/lib/esm/ui/widget/MapLayerSettingsMenu.js.map +1 -1
- package/lib/esm/ui/widget/MapLayerSettingsPopupButton.d.ts +7 -7
- package/lib/esm/ui/widget/MapLayerSettingsPopupButton.js +61 -61
- package/lib/esm/ui/widget/MapLayerSettingsPopupButton.js.map +1 -1
- package/lib/esm/ui/widget/MapLayerSettingsPopupButton.scss +20 -20
- package/lib/esm/ui/widget/MapLayersWidget.d.ts +11 -11
- package/lib/esm/ui/widget/MapLayersWidget.js +27 -27
- package/lib/esm/ui/widget/MapLayersWidget.js.map +1 -1
- package/lib/esm/ui/widget/MapManagerSettings.d.ts +3 -3
- package/lib/esm/ui/widget/MapManagerSettings.js +196 -196
- package/lib/esm/ui/widget/MapManagerSettings.js.map +1 -1
- package/lib/esm/ui/widget/MapManagerSettings.scss +29 -29
- package/lib/esm/ui/widget/MapUrlDialog.d.ts +23 -23
- package/lib/esm/ui/widget/MapUrlDialog.js +520 -523
- package/lib/esm/ui/widget/MapUrlDialog.js.map +1 -1
- package/lib/esm/ui/widget/MapUrlDialog.scss +100 -100
- package/lib/esm/ui/widget/SelectMapFormat.d.ts +18 -18
- package/lib/esm/ui/widget/SelectMapFormat.js +50 -55
- package/lib/esm/ui/widget/SelectMapFormat.js.map +1 -1
- package/lib/esm/ui/widget/SubLayersDataProvider.d.ts +20 -20
- package/lib/esm/ui/widget/SubLayersDataProvider.js +71 -72
- package/lib/esm/ui/widget/SubLayersDataProvider.js.map +1 -1
- package/lib/esm/ui/widget/SubLayersPopupButton.d.ts +10 -10
- package/lib/esm/ui/widget/SubLayersPopupButton.js +36 -36
- package/lib/esm/ui/widget/SubLayersPopupButton.js.map +1 -1
- package/lib/esm/ui/widget/SubLayersTree.d.ts +15 -15
- package/lib/esm/ui/widget/SubLayersTree.js +408 -414
- package/lib/esm/ui/widget/SubLayersTree.js.map +1 -1
- package/lib/esm/ui/widget/SubLayersTree.scss +69 -69
- package/lib/esm/ui/widget/TransparencyPopupButton.d.ts +14 -14
- package/lib/esm/ui/widget/TransparencyPopupButton.js +43 -43
- package/lib/esm/ui/widget/TransparencyPopupButton.js.map +1 -1
- package/lib/esm/ui/widget/TransparencyPopupButton.scss +36 -36
- package/package.json +14 -14
package/CHANGELOG.md
CHANGED
|
@@ -13,6 +13,11 @@ Wed, 08 Feb 2023 14:58:40 GMT
|
|
|
13
13
|
- Fix Map Layers widget not updating after an iModel gets geolocated.
|
|
14
14
|
- Use EmptyLocalization for localization in tests to increase test performance
|
|
15
15
|
|
|
16
|
+
## 3.5.6
|
|
17
|
+
Fri, 24 Feb 2023 16:02:47 GMT
|
|
18
|
+
|
|
19
|
+
_Version update only_
|
|
20
|
+
|
|
16
21
|
## 3.5.5
|
|
17
22
|
Thu, 26 Jan 2023 22:53:28 GMT
|
|
18
23
|
|
|
@@ -43,7 +48,7 @@ Wed, 07 Dec 2022 19:12:37 GMT
|
|
|
43
48
|
|
|
44
49
|
### Updates
|
|
45
50
|
|
|
46
|
-
- MapLayers widget's preferences UI now support edit,delete buttons without having an iModel ID. Also fix an issue with edit.
|
|
51
|
+
- MapLayers widget's preferences UI now support edit,delete buttons without having an iModel ID. Also fix an issue with edit.
|
|
47
52
|
- Unpin classnames package
|
|
48
53
|
|
|
49
54
|
## 3.4.7
|
|
@@ -521,7 +526,7 @@ Mon, 24 May 2021 15:58:39 GMT
|
|
|
521
526
|
|
|
522
527
|
### Updates
|
|
523
528
|
|
|
524
|
-
- Fix 'npm run cover' that would never complete.
|
|
529
|
+
- Fix 'npm run cover' that would never complete.
|
|
525
530
|
- Exposed the map masking option in the map layers settings UI.
|
|
526
531
|
- Move map tile trees to Viewport to handle synching correctly
|
|
527
532
|
- Update to latest classnames package
|
|
@@ -596,7 +601,7 @@ Tue, 09 Mar 2021 20:28:13 GMT
|
|
|
596
601
|
|
|
597
602
|
### Updates
|
|
598
603
|
|
|
599
|
-
- Restored base layer visibility button in map manager.
|
|
604
|
+
- Restored base layer visibility button in map manager.
|
|
600
605
|
- Updated to use TypeScript 4.1
|
|
601
606
|
- begin rename project from iModel.js to iTwin.js
|
|
602
607
|
|
|
@@ -621,7 +626,7 @@ Thu, 18 Feb 2021 22:10:13 GMT
|
|
|
621
626
|
### Updates
|
|
622
627
|
|
|
623
628
|
- Provide default props to map-layers widget when used as an extension.
|
|
624
|
-
- ArcGIS token-based authentification support: MapLayerManager now monitor provider status and display a warning icon when there is a authentifiation error while loading tiles. User is allowed to provide credentials without the need to fully re-attach the layer. Invalid credentials feedback is now provided. It is now possible to save an ArcGIS layer requiring authentification in the settings service, althoug redentials wont be persisted.
|
|
629
|
+
- ArcGIS token-based authentification support: MapLayerManager now monitor provider status and display a warning icon when there is a authentifiation error while loading tiles. User is allowed to provide credentials without the need to fully re-attach the layer. Invalid credentials feedback is now provided. It is now possible to save an ArcGIS layer requiring authentification in the settings service, althoug redentials wont be persisted.
|
|
625
630
|
|
|
626
631
|
## 2.11.2
|
|
627
632
|
Thu, 18 Feb 2021 02:50:59 GMT
|
|
@@ -1,89 +1,89 @@
|
|
|
1
|
-
import { MapLayerSource } from "@itwin/core-frontend";
|
|
2
|
-
import { BeEvent, GuidString } from "@itwin/core-bentley";
|
|
3
|
-
/** @internal */
|
|
4
|
-
export interface MapLayerPreferencesContent {
|
|
5
|
-
url: string;
|
|
6
|
-
name: string;
|
|
7
|
-
formatId: string;
|
|
8
|
-
transparentBackground: boolean | undefined;
|
|
9
|
-
}
|
|
10
|
-
/** @internal */
|
|
11
|
-
export declare enum MapLayerSourceChangeType {
|
|
12
|
-
Added = 0,
|
|
13
|
-
Removed = 1,
|
|
14
|
-
Replaced = 2
|
|
15
|
-
}
|
|
16
|
-
/** @internal */
|
|
17
|
-
export interface MapLayerSourceArg {
|
|
18
|
-
readonly source: MapLayerSource;
|
|
19
|
-
readonly iTwinId: GuidString;
|
|
20
|
-
readonly iModelId: GuidString;
|
|
21
|
-
}
|
|
22
|
-
/** A wrapper around user preferences to provide a way to store [[MapLayerSettings]].
|
|
23
|
-
*
|
|
24
|
-
* Note: This is currently internal only and used directly by the MapLayersExtension. It makes use of the IModelApp.authorizationClient if it exists.
|
|
25
|
-
*
|
|
26
|
-
* @internal
|
|
27
|
-
*/
|
|
28
|
-
export declare class MapLayerPreferences {
|
|
29
|
-
/** Event raised whenever a source is added, replaced or removed:
|
|
30
|
-
* changeType : Type of changed occurred.
|
|
31
|
-
* oldSource : Source that was removed or replaced.
|
|
32
|
-
* newSource : Source that was added or replacement of oldSource.
|
|
33
|
-
*
|
|
34
|
-
* @see [[MapLayerSourceChangeType]]
|
|
35
|
-
*/
|
|
36
|
-
static readonly onLayerSourceChanged: BeEvent<(changeType: MapLayerSourceChangeType, oldSource?: MapLayerSource | undefined, newSource?: MapLayerSource | undefined) => void>;
|
|
37
|
-
/** Store the Map Layer source preference. If the same setting exists at a higher level, an error will be thrown and the setting will not be updated.
|
|
38
|
-
*
|
|
39
|
-
* Returns false if the settings object would override some other settings object in a larger scope i.e. storing settings on model when
|
|
40
|
-
* a project setting exists with same name or map layer url.
|
|
41
|
-
* @param source source to be stored on the setting service
|
|
42
|
-
* @param storeOnIModel if true store the settings object on the model, if false store it on the project
|
|
43
|
-
*/
|
|
44
|
-
static storeSource(source: MapLayerSource, iTwinId: GuidString, iModelId?: GuidString, storeOnIModel?: boolean): Promise<boolean>;
|
|
45
|
-
/** Replace the old map layer source with a new map layer source.
|
|
46
|
-
*
|
|
47
|
-
* The source is replaced at the same level that the original source is defined. (i.e. if the old source is defined at a project level, the new source will also be defined there.)
|
|
48
|
-
*
|
|
49
|
-
* @param oldSource
|
|
50
|
-
* @param newSource
|
|
51
|
-
* @param iTwinId
|
|
52
|
-
* @param iModelId
|
|
53
|
-
*/
|
|
54
|
-
static replaceSource(oldSource: MapLayerSource, newSource: MapLayerSource, iTwinId: GuidString, iModelId?: GuidString): Promise<void>;
|
|
55
|
-
/** Deletes the provided MapLayerSource by name from both the iTwin or iModel level.
|
|
56
|
-
*
|
|
57
|
-
* @param source The source to delete. The name is used to identify the source.
|
|
58
|
-
* @param iTwinId
|
|
59
|
-
* @param iModelId
|
|
60
|
-
*/
|
|
61
|
-
static deleteByName(source: MapLayerSource, iTwinId: GuidString, iModelId?: GuidString): Promise<void>;
|
|
62
|
-
/** Deletes the current setting with the provided key if it is defined at the same preference level.
|
|
63
|
-
*
|
|
64
|
-
* If the preference is defined within a different level, false will be returned indicating the setting should not be overriden.
|
|
65
|
-
*
|
|
66
|
-
* The two potential preference levels are iTwin and iModel.
|
|
67
|
-
*
|
|
68
|
-
* @param url
|
|
69
|
-
* @param name
|
|
70
|
-
* @param iTwinId
|
|
71
|
-
* @param iModelId
|
|
72
|
-
* @param storeOnIModel
|
|
73
|
-
*/
|
|
74
|
-
private static delete;
|
|
75
|
-
/** Attempts to get a map layer based off a specific url.
|
|
76
|
-
* @param url
|
|
77
|
-
* @param iTwinId
|
|
78
|
-
* @param iModelId
|
|
79
|
-
*/
|
|
80
|
-
static getByUrl(url: string, iTwinId: string, iModelId?: string): Promise<MapLayerPreferencesContent | undefined>;
|
|
81
|
-
/** Get all MapLayerSources from the user's preferences, iTwin setting and iModel settings.
|
|
82
|
-
* @param iTwinId id of the iTwin
|
|
83
|
-
* @param iModelId id of the iModel
|
|
84
|
-
* @throws if any of the calls to grab settings fail.
|
|
85
|
-
*/
|
|
86
|
-
static getSources(iTwinId: GuidString, iModelId?: GuidString): Promise<MapLayerSource[]>;
|
|
87
|
-
private static get _preferenceNamespace();
|
|
88
|
-
}
|
|
1
|
+
import { MapLayerSource } from "@itwin/core-frontend";
|
|
2
|
+
import { BeEvent, GuidString } from "@itwin/core-bentley";
|
|
3
|
+
/** @internal */
|
|
4
|
+
export interface MapLayerPreferencesContent {
|
|
5
|
+
url: string;
|
|
6
|
+
name: string;
|
|
7
|
+
formatId: string;
|
|
8
|
+
transparentBackground: boolean | undefined;
|
|
9
|
+
}
|
|
10
|
+
/** @internal */
|
|
11
|
+
export declare enum MapLayerSourceChangeType {
|
|
12
|
+
Added = 0,
|
|
13
|
+
Removed = 1,
|
|
14
|
+
Replaced = 2
|
|
15
|
+
}
|
|
16
|
+
/** @internal */
|
|
17
|
+
export interface MapLayerSourceArg {
|
|
18
|
+
readonly source: MapLayerSource;
|
|
19
|
+
readonly iTwinId: GuidString;
|
|
20
|
+
readonly iModelId: GuidString;
|
|
21
|
+
}
|
|
22
|
+
/** A wrapper around user preferences to provide a way to store [[MapLayerSettings]].
|
|
23
|
+
*
|
|
24
|
+
* Note: This is currently internal only and used directly by the MapLayersExtension. It makes use of the IModelApp.authorizationClient if it exists.
|
|
25
|
+
*
|
|
26
|
+
* @internal
|
|
27
|
+
*/
|
|
28
|
+
export declare class MapLayerPreferences {
|
|
29
|
+
/** Event raised whenever a source is added, replaced or removed:
|
|
30
|
+
* changeType : Type of changed occurred.
|
|
31
|
+
* oldSource : Source that was removed or replaced.
|
|
32
|
+
* newSource : Source that was added or replacement of oldSource.
|
|
33
|
+
*
|
|
34
|
+
* @see [[MapLayerSourceChangeType]]
|
|
35
|
+
*/
|
|
36
|
+
static readonly onLayerSourceChanged: BeEvent<(changeType: MapLayerSourceChangeType, oldSource?: MapLayerSource | undefined, newSource?: MapLayerSource | undefined) => void>;
|
|
37
|
+
/** Store the Map Layer source preference. If the same setting exists at a higher level, an error will be thrown and the setting will not be updated.
|
|
38
|
+
*
|
|
39
|
+
* Returns false if the settings object would override some other settings object in a larger scope i.e. storing settings on model when
|
|
40
|
+
* a project setting exists with same name or map layer url.
|
|
41
|
+
* @param source source to be stored on the setting service
|
|
42
|
+
* @param storeOnIModel if true store the settings object on the model, if false store it on the project
|
|
43
|
+
*/
|
|
44
|
+
static storeSource(source: MapLayerSource, iTwinId: GuidString, iModelId?: GuidString, storeOnIModel?: boolean): Promise<boolean>;
|
|
45
|
+
/** Replace the old map layer source with a new map layer source.
|
|
46
|
+
*
|
|
47
|
+
* The source is replaced at the same level that the original source is defined. (i.e. if the old source is defined at a project level, the new source will also be defined there.)
|
|
48
|
+
*
|
|
49
|
+
* @param oldSource
|
|
50
|
+
* @param newSource
|
|
51
|
+
* @param iTwinId
|
|
52
|
+
* @param iModelId
|
|
53
|
+
*/
|
|
54
|
+
static replaceSource(oldSource: MapLayerSource, newSource: MapLayerSource, iTwinId: GuidString, iModelId?: GuidString): Promise<void>;
|
|
55
|
+
/** Deletes the provided MapLayerSource by name from both the iTwin or iModel level.
|
|
56
|
+
*
|
|
57
|
+
* @param source The source to delete. The name is used to identify the source.
|
|
58
|
+
* @param iTwinId
|
|
59
|
+
* @param iModelId
|
|
60
|
+
*/
|
|
61
|
+
static deleteByName(source: MapLayerSource, iTwinId: GuidString, iModelId?: GuidString): Promise<void>;
|
|
62
|
+
/** Deletes the current setting with the provided key if it is defined at the same preference level.
|
|
63
|
+
*
|
|
64
|
+
* If the preference is defined within a different level, false will be returned indicating the setting should not be overriden.
|
|
65
|
+
*
|
|
66
|
+
* The two potential preference levels are iTwin and iModel.
|
|
67
|
+
*
|
|
68
|
+
* @param url
|
|
69
|
+
* @param name
|
|
70
|
+
* @param iTwinId
|
|
71
|
+
* @param iModelId
|
|
72
|
+
* @param storeOnIModel
|
|
73
|
+
*/
|
|
74
|
+
private static delete;
|
|
75
|
+
/** Attempts to get a map layer based off a specific url.
|
|
76
|
+
* @param url
|
|
77
|
+
* @param iTwinId
|
|
78
|
+
* @param iModelId
|
|
79
|
+
*/
|
|
80
|
+
static getByUrl(url: string, iTwinId: string, iModelId?: string): Promise<MapLayerPreferencesContent | undefined>;
|
|
81
|
+
/** Get all MapLayerSources from the user's preferences, iTwin setting and iModel settings.
|
|
82
|
+
* @param iTwinId id of the iTwin
|
|
83
|
+
* @param iModelId id of the iModel
|
|
84
|
+
* @throws if any of the calls to grab settings fail.
|
|
85
|
+
*/
|
|
86
|
+
static getSources(iTwinId: GuidString, iModelId?: GuidString): Promise<MapLayerSource[]>;
|
|
87
|
+
private static get _preferenceNamespace();
|
|
88
|
+
}
|
|
89
89
|
//# sourceMappingURL=MapLayerPreferences.d.ts.map
|