@itwin/map-layers 4.0.0-dev.21 → 4.0.0-dev.23

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.
Files changed (155) hide show
  1. package/lib/cjs/MapLayerPreferences.d.ts +88 -88
  2. package/lib/cjs/MapLayerPreferences.js +312 -312
  3. package/lib/cjs/MapLayerPreferences.js.map +1 -1
  4. package/lib/cjs/map-layers.d.ts +6 -6
  5. package/lib/cjs/map-layers.js +22 -22
  6. package/lib/cjs/mapLayers.d.ts +44 -44
  7. package/lib/cjs/mapLayers.js +63 -63
  8. package/lib/cjs/mapLayers.js.map +1 -1
  9. package/lib/cjs/ui/FeatureInfoUiItemsProvider.d.ts +11 -11
  10. package/lib/cjs/ui/FeatureInfoUiItemsProvider.js +52 -52
  11. package/lib/cjs/ui/FeatureInfoUiItemsProvider.js.map +1 -1
  12. package/lib/cjs/ui/Interfaces.d.ts +50 -50
  13. package/lib/cjs/ui/Interfaces.js +2 -2
  14. package/lib/cjs/ui/Interfaces.js.map +1 -1
  15. package/lib/cjs/ui/MapFeatureInfoTool.d.ts +13 -13
  16. package/lib/cjs/ui/MapFeatureInfoTool.js +50 -50
  17. package/lib/cjs/ui/MapFeatureInfoTool.js.map +1 -1
  18. package/lib/cjs/ui/MapLayersUiItemsProvider.d.ts +8 -8
  19. package/lib/cjs/ui/MapLayersUiItemsProvider.js +38 -38
  20. package/lib/cjs/ui/MapLayersUiItemsProvider.js.map +1 -1
  21. package/lib/cjs/ui/widget/AttachLayerPopupButton.d.ts +14 -14
  22. package/lib/cjs/ui/widget/AttachLayerPopupButton.js +338 -338
  23. package/lib/cjs/ui/widget/BasemapPanel.d.ts +8 -8
  24. package/lib/cjs/ui/widget/BasemapPanel.js +156 -156
  25. package/lib/cjs/ui/widget/BasemapPanel.js.map +1 -1
  26. package/lib/cjs/ui/widget/BasemapPanel.scss +87 -87
  27. package/lib/cjs/ui/widget/ConfirmMessageDialog.d.ts +21 -21
  28. package/lib/cjs/ui/widget/ConfirmMessageDialog.js +25 -25
  29. package/lib/cjs/ui/widget/ConfirmMessageDialog.js.map +1 -1
  30. package/lib/cjs/ui/widget/FeatureInfoDataProvider.d.ts +40 -40
  31. package/lib/cjs/ui/widget/FeatureInfoDataProvider.js +139 -139
  32. package/lib/cjs/ui/widget/FeatureInfoDataProvider.js.map +1 -1
  33. package/lib/cjs/ui/widget/FeatureInfoWidget.d.ts +7 -7
  34. package/lib/cjs/ui/widget/FeatureInfoWidget.js +71 -71
  35. package/lib/cjs/ui/widget/FeatureInfoWidget.js.map +1 -1
  36. package/lib/cjs/ui/widget/MapLayerDroppable.d.ts +19 -19
  37. package/lib/cjs/ui/widget/MapLayerDroppable.js +88 -88
  38. package/lib/cjs/ui/widget/MapLayerDroppable.js.map +1 -1
  39. package/lib/cjs/ui/widget/MapLayerManager.d.ts +26 -26
  40. package/lib/cjs/ui/widget/MapLayerManager.js +403 -403
  41. package/lib/cjs/ui/widget/MapLayerManager.js.map +1 -1
  42. package/lib/cjs/ui/widget/MapLayerManager.scss +409 -409
  43. package/lib/cjs/ui/widget/MapLayerSettingsMenu.d.ts +12 -12
  44. package/lib/cjs/ui/widget/MapLayerSettingsMenu.js +83 -83
  45. package/lib/cjs/ui/widget/MapLayerSettingsMenu.js.map +1 -1
  46. package/lib/cjs/ui/widget/MapLayerSettingsPopupButton.d.ts +7 -7
  47. package/lib/cjs/ui/widget/MapLayerSettingsPopupButton.js +65 -65
  48. package/lib/cjs/ui/widget/MapLayerSettingsPopupButton.js.map +1 -1
  49. package/lib/cjs/ui/widget/MapLayerSettingsPopupButton.scss +20 -20
  50. package/lib/cjs/ui/widget/MapLayersWidget.d.ts +11 -11
  51. package/lib/cjs/ui/widget/MapLayersWidget.js +31 -31
  52. package/lib/cjs/ui/widget/MapLayersWidget.js.map +1 -1
  53. package/lib/cjs/ui/widget/MapManagerSettings.d.ts +3 -3
  54. package/lib/cjs/ui/widget/MapManagerSettings.js +200 -200
  55. package/lib/cjs/ui/widget/MapManagerSettings.js.map +1 -1
  56. package/lib/cjs/ui/widget/MapManagerSettings.scss +29 -29
  57. package/lib/cjs/ui/widget/MapUrlDialog.d.ts +23 -23
  58. package/lib/cjs/ui/widget/MapUrlDialog.js +527 -527
  59. package/lib/cjs/ui/widget/MapUrlDialog.js.map +1 -1
  60. package/lib/cjs/ui/widget/MapUrlDialog.scss +100 -100
  61. package/lib/cjs/ui/widget/SelectMapFormat.d.ts +18 -18
  62. package/lib/cjs/ui/widget/SelectMapFormat.js +59 -59
  63. package/lib/cjs/ui/widget/SelectMapFormat.js.map +1 -1
  64. package/lib/cjs/ui/widget/SubLayersDataProvider.d.ts +20 -20
  65. package/lib/cjs/ui/widget/SubLayersDataProvider.js +76 -76
  66. package/lib/cjs/ui/widget/SubLayersDataProvider.js.map +1 -1
  67. package/lib/cjs/ui/widget/SubLayersPopupButton.d.ts +10 -10
  68. package/lib/cjs/ui/widget/SubLayersPopupButton.js +40 -40
  69. package/lib/cjs/ui/widget/SubLayersPopupButton.js.map +1 -1
  70. package/lib/cjs/ui/widget/SubLayersTree.d.ts +15 -15
  71. package/lib/cjs/ui/widget/SubLayersTree.js +419 -419
  72. package/lib/cjs/ui/widget/SubLayersTree.js.map +1 -1
  73. package/lib/cjs/ui/widget/SubLayersTree.scss +69 -69
  74. package/lib/cjs/ui/widget/TransparencyPopupButton.d.ts +14 -14
  75. package/lib/cjs/ui/widget/TransparencyPopupButton.js +47 -47
  76. package/lib/cjs/ui/widget/TransparencyPopupButton.js.map +1 -1
  77. package/lib/cjs/ui/widget/TransparencyPopupButton.scss +36 -36
  78. package/lib/esm/MapLayerPreferences.d.ts +88 -88
  79. package/lib/esm/MapLayerPreferences.js +308 -308
  80. package/lib/esm/MapLayerPreferences.js.map +1 -1
  81. package/lib/esm/map-layers.d.ts +6 -6
  82. package/lib/esm/map-layers.js +10 -10
  83. package/lib/esm/mapLayers.d.ts +44 -44
  84. package/lib/esm/mapLayers.js +59 -59
  85. package/lib/esm/mapLayers.js.map +1 -1
  86. package/lib/esm/ui/FeatureInfoUiItemsProvider.d.ts +11 -11
  87. package/lib/esm/ui/FeatureInfoUiItemsProvider.js +48 -48
  88. package/lib/esm/ui/FeatureInfoUiItemsProvider.js.map +1 -1
  89. package/lib/esm/ui/Interfaces.d.ts +50 -50
  90. package/lib/esm/ui/Interfaces.js +1 -1
  91. package/lib/esm/ui/Interfaces.js.map +1 -1
  92. package/lib/esm/ui/MapFeatureInfoTool.d.ts +13 -13
  93. package/lib/esm/ui/MapFeatureInfoTool.js +45 -45
  94. package/lib/esm/ui/MapFeatureInfoTool.js.map +1 -1
  95. package/lib/esm/ui/MapLayersUiItemsProvider.d.ts +8 -8
  96. package/lib/esm/ui/MapLayersUiItemsProvider.js +34 -34
  97. package/lib/esm/ui/MapLayersUiItemsProvider.js.map +1 -1
  98. package/lib/esm/ui/widget/AttachLayerPopupButton.d.ts +14 -14
  99. package/lib/esm/ui/widget/AttachLayerPopupButton.js +334 -334
  100. package/lib/esm/ui/widget/BasemapPanel.d.ts +8 -8
  101. package/lib/esm/ui/widget/BasemapPanel.js +152 -152
  102. package/lib/esm/ui/widget/BasemapPanel.js.map +1 -1
  103. package/lib/esm/ui/widget/BasemapPanel.scss +87 -87
  104. package/lib/esm/ui/widget/ConfirmMessageDialog.d.ts +21 -21
  105. package/lib/esm/ui/widget/ConfirmMessageDialog.js +21 -21
  106. package/lib/esm/ui/widget/ConfirmMessageDialog.js.map +1 -1
  107. package/lib/esm/ui/widget/FeatureInfoDataProvider.d.ts +40 -40
  108. package/lib/esm/ui/widget/FeatureInfoDataProvider.js +135 -135
  109. package/lib/esm/ui/widget/FeatureInfoDataProvider.js.map +1 -1
  110. package/lib/esm/ui/widget/FeatureInfoWidget.d.ts +7 -7
  111. package/lib/esm/ui/widget/FeatureInfoWidget.js +67 -67
  112. package/lib/esm/ui/widget/FeatureInfoWidget.js.map +1 -1
  113. package/lib/esm/ui/widget/MapLayerDroppable.d.ts +19 -19
  114. package/lib/esm/ui/widget/MapLayerDroppable.js +84 -84
  115. package/lib/esm/ui/widget/MapLayerDroppable.js.map +1 -1
  116. package/lib/esm/ui/widget/MapLayerManager.d.ts +26 -26
  117. package/lib/esm/ui/widget/MapLayerManager.js +398 -398
  118. package/lib/esm/ui/widget/MapLayerManager.js.map +1 -1
  119. package/lib/esm/ui/widget/MapLayerManager.scss +409 -409
  120. package/lib/esm/ui/widget/MapLayerSettingsMenu.d.ts +12 -12
  121. package/lib/esm/ui/widget/MapLayerSettingsMenu.js +79 -79
  122. package/lib/esm/ui/widget/MapLayerSettingsMenu.js.map +1 -1
  123. package/lib/esm/ui/widget/MapLayerSettingsPopupButton.d.ts +7 -7
  124. package/lib/esm/ui/widget/MapLayerSettingsPopupButton.js +61 -61
  125. package/lib/esm/ui/widget/MapLayerSettingsPopupButton.js.map +1 -1
  126. package/lib/esm/ui/widget/MapLayerSettingsPopupButton.scss +20 -20
  127. package/lib/esm/ui/widget/MapLayersWidget.d.ts +11 -11
  128. package/lib/esm/ui/widget/MapLayersWidget.js +27 -27
  129. package/lib/esm/ui/widget/MapLayersWidget.js.map +1 -1
  130. package/lib/esm/ui/widget/MapManagerSettings.d.ts +3 -3
  131. package/lib/esm/ui/widget/MapManagerSettings.js +196 -196
  132. package/lib/esm/ui/widget/MapManagerSettings.js.map +1 -1
  133. package/lib/esm/ui/widget/MapManagerSettings.scss +29 -29
  134. package/lib/esm/ui/widget/MapUrlDialog.d.ts +23 -23
  135. package/lib/esm/ui/widget/MapUrlDialog.js +523 -523
  136. package/lib/esm/ui/widget/MapUrlDialog.js.map +1 -1
  137. package/lib/esm/ui/widget/MapUrlDialog.scss +100 -100
  138. package/lib/esm/ui/widget/SelectMapFormat.d.ts +18 -18
  139. package/lib/esm/ui/widget/SelectMapFormat.js +55 -55
  140. package/lib/esm/ui/widget/SelectMapFormat.js.map +1 -1
  141. package/lib/esm/ui/widget/SubLayersDataProvider.d.ts +20 -20
  142. package/lib/esm/ui/widget/SubLayersDataProvider.js +72 -72
  143. package/lib/esm/ui/widget/SubLayersDataProvider.js.map +1 -1
  144. package/lib/esm/ui/widget/SubLayersPopupButton.d.ts +10 -10
  145. package/lib/esm/ui/widget/SubLayersPopupButton.js +36 -36
  146. package/lib/esm/ui/widget/SubLayersPopupButton.js.map +1 -1
  147. package/lib/esm/ui/widget/SubLayersTree.d.ts +15 -15
  148. package/lib/esm/ui/widget/SubLayersTree.js +414 -414
  149. package/lib/esm/ui/widget/SubLayersTree.js.map +1 -1
  150. package/lib/esm/ui/widget/SubLayersTree.scss +69 -69
  151. package/lib/esm/ui/widget/TransparencyPopupButton.d.ts +14 -14
  152. package/lib/esm/ui/widget/TransparencyPopupButton.js +43 -43
  153. package/lib/esm/ui/widget/TransparencyPopupButton.js.map +1 -1
  154. package/lib/esm/ui/widget/TransparencyPopupButton.scss +36 -36
  155. package/package.json +14 -14
@@ -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