@itwin/map-layers 3.6.1 → 3.7.0-dev.2
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 +5 -10
- package/lib/cjs/MapLayerPreferences.d.ts +88 -88
- package/lib/cjs/MapLayerPreferences.js +312 -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 +63 -63
- package/lib/cjs/mapLayers.js.map +1 -1
- package/lib/cjs/ui/FeatureInfoUiItemsProvider.d.ts +11 -11
- package/lib/cjs/ui/FeatureInfoUiItemsProvider.js +52 -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.d.ts.map +1 -1
- 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 +338 -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 +25 -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 +139 -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 +71 -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 +88 -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 +403 -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 +83 -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 +527 -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 +59 -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 +76 -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 +419 -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 +308 -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 +59 -59
- package/lib/esm/mapLayers.js.map +1 -1
- package/lib/esm/ui/FeatureInfoUiItemsProvider.d.ts +11 -11
- package/lib/esm/ui/FeatureInfoUiItemsProvider.js +48 -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.d.ts.map +1 -1
- 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 +334 -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 +21 -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 +135 -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 +67 -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 +84 -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 +398 -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 +79 -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 +523 -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 +55 -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 +72 -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 +414 -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 +26 -26
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
# Change Log - @itwin/map-layers
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
4
|
-
|
|
5
|
-
## 3.6.1
|
|
6
|
-
Fri, 24 Feb 2023 22:00:48 GMT
|
|
7
|
-
|
|
8
|
-
_Version update only_
|
|
3
|
+
This log was last generated on Wed, 08 Feb 2023 14:58:40 GMT and should not be manually modified.
|
|
9
4
|
|
|
10
5
|
## 3.6.0
|
|
11
6
|
Wed, 08 Feb 2023 14:58:40 GMT
|
|
@@ -53,7 +48,7 @@ Wed, 07 Dec 2022 19:12:37 GMT
|
|
|
53
48
|
|
|
54
49
|
### Updates
|
|
55
50
|
|
|
56
|
-
- 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.
|
|
57
52
|
- Unpin classnames package
|
|
58
53
|
|
|
59
54
|
## 3.4.7
|
|
@@ -531,7 +526,7 @@ Mon, 24 May 2021 15:58:39 GMT
|
|
|
531
526
|
|
|
532
527
|
### Updates
|
|
533
528
|
|
|
534
|
-
- Fix 'npm run cover' that would never complete.
|
|
529
|
+
- Fix 'npm run cover' that would never complete.
|
|
535
530
|
- Exposed the map masking option in the map layers settings UI.
|
|
536
531
|
- Move map tile trees to Viewport to handle synching correctly
|
|
537
532
|
- Update to latest classnames package
|
|
@@ -606,7 +601,7 @@ Tue, 09 Mar 2021 20:28:13 GMT
|
|
|
606
601
|
|
|
607
602
|
### Updates
|
|
608
603
|
|
|
609
|
-
- Restored base layer visibility button in map manager.
|
|
604
|
+
- Restored base layer visibility button in map manager.
|
|
610
605
|
- Updated to use TypeScript 4.1
|
|
611
606
|
- begin rename project from iModel.js to iTwin.js
|
|
612
607
|
|
|
@@ -631,7 +626,7 @@ Thu, 18 Feb 2021 22:10:13 GMT
|
|
|
631
626
|
### Updates
|
|
632
627
|
|
|
633
628
|
- Provide default props to map-layers widget when used as an extension.
|
|
634
|
-
- 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.
|
|
635
630
|
|
|
636
631
|
## 2.11.2
|
|
637
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
|