@itwin/map-layers 4.0.0-dev.8 → 4.0.0
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 +746 -848
- package/README.md +32 -32
- 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 +26 -44
- package/lib/cjs/mapLayers.d.ts.map +1 -1
- package/lib/cjs/mapLayers.js +34 -63
- package/lib/cjs/mapLayers.js.map +1 -1
- package/lib/cjs/ui/FeatureInfoUiItemsProvider.d.ts +16 -11
- package/lib/cjs/ui/FeatureInfoUiItemsProvider.d.ts.map +1 -1
- package/lib/cjs/ui/FeatureInfoUiItemsProvider.js +47 -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.d.ts.map +1 -1
- package/lib/cjs/ui/MapLayersUiItemsProvider.js +35 -38
- package/lib/cjs/ui/MapLayersUiItemsProvider.js.map +1 -1
- package/lib/cjs/ui/widget/AttachLayerPopupButton.d.ts +13 -14
- package/lib/cjs/ui/widget/AttachLayerPopupButton.d.ts.map +1 -1
- 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 +7 -8
- package/lib/cjs/ui/widget/BasemapPanel.d.ts.map +1 -1
- 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 +20 -21
- package/lib/cjs/ui/widget/ConfirmMessageDialog.d.ts.map +1 -1
- 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 +35 -40
- package/lib/cjs/ui/widget/FeatureInfoDataProvider.d.ts.map +1 -1
- package/lib/cjs/ui/widget/FeatureInfoDataProvider.js +140 -139
- package/lib/cjs/ui/widget/FeatureInfoDataProvider.js.map +1 -1
- package/lib/cjs/ui/widget/FeatureInfoWidget.d.ts +6 -7
- package/lib/cjs/ui/widget/FeatureInfoWidget.d.ts.map +1 -1
- package/lib/cjs/ui/widget/FeatureInfoWidget.js +76 -71
- package/lib/cjs/ui/widget/FeatureInfoWidget.js.map +1 -1
- package/lib/cjs/ui/widget/MapLayerDroppable.d.ts +18 -19
- package/lib/cjs/ui/widget/MapLayerDroppable.d.ts.map +1 -1
- 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 +11 -12
- package/lib/cjs/ui/widget/MapLayerSettingsMenu.d.ts.map +1 -1
- 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 +6 -7
- package/lib/cjs/ui/widget/MapLayerSettingsPopupButton.d.ts.map +1 -1
- 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 +10 -11
- package/lib/cjs/ui/widget/MapLayersWidget.d.ts.map +1 -1
- 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 +2 -3
- package/lib/cjs/ui/widget/MapManagerSettings.d.ts.map +1 -1
- 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 +22 -23
- package/lib/cjs/ui/widget/MapUrlDialog.d.ts.map +1 -1
- package/lib/cjs/ui/widget/MapUrlDialog.js +533 -527
- package/lib/cjs/ui/widget/MapUrlDialog.js.map +1 -1
- package/lib/cjs/ui/widget/MapUrlDialog.scss +99 -100
- package/lib/cjs/ui/widget/SelectMapFormat.d.ts +17 -18
- package/lib/cjs/ui/widget/SelectMapFormat.d.ts.map +1 -1
- 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 +18 -20
- package/lib/cjs/ui/widget/SubLayersDataProvider.d.ts.map +1 -1
- 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 +9 -10
- package/lib/cjs/ui/widget/SubLayersPopupButton.d.ts.map +1 -1
- 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 +14 -15
- package/lib/cjs/ui/widget/SubLayersTree.d.ts.map +1 -1
- 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 +70 -69
- package/lib/cjs/ui/widget/TransparencyPopupButton.d.ts +13 -14
- package/lib/cjs/ui/widget/TransparencyPopupButton.d.ts.map +1 -1
- 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 +35 -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 +26 -44
- package/lib/esm/mapLayers.d.ts.map +1 -1
- package/lib/esm/mapLayers.js +30 -59
- package/lib/esm/mapLayers.js.map +1 -1
- package/lib/esm/ui/FeatureInfoUiItemsProvider.d.ts +16 -11
- package/lib/esm/ui/FeatureInfoUiItemsProvider.d.ts.map +1 -1
- package/lib/esm/ui/FeatureInfoUiItemsProvider.js +43 -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.d.ts.map +1 -1
- package/lib/esm/ui/MapLayersUiItemsProvider.js +31 -34
- package/lib/esm/ui/MapLayersUiItemsProvider.js.map +1 -1
- package/lib/esm/ui/widget/AttachLayerPopupButton.d.ts +13 -14
- package/lib/esm/ui/widget/AttachLayerPopupButton.d.ts.map +1 -1
- 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 +7 -8
- package/lib/esm/ui/widget/BasemapPanel.d.ts.map +1 -1
- 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 +20 -21
- package/lib/esm/ui/widget/ConfirmMessageDialog.d.ts.map +1 -1
- 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 +35 -40
- package/lib/esm/ui/widget/FeatureInfoDataProvider.d.ts.map +1 -1
- package/lib/esm/ui/widget/FeatureInfoDataProvider.js +136 -135
- package/lib/esm/ui/widget/FeatureInfoDataProvider.js.map +1 -1
- package/lib/esm/ui/widget/FeatureInfoWidget.d.ts +6 -7
- package/lib/esm/ui/widget/FeatureInfoWidget.d.ts.map +1 -1
- package/lib/esm/ui/widget/FeatureInfoWidget.js +72 -67
- package/lib/esm/ui/widget/FeatureInfoWidget.js.map +1 -1
- package/lib/esm/ui/widget/MapLayerDroppable.d.ts +18 -19
- package/lib/esm/ui/widget/MapLayerDroppable.d.ts.map +1 -1
- 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 +11 -12
- package/lib/esm/ui/widget/MapLayerSettingsMenu.d.ts.map +1 -1
- 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 +6 -7
- package/lib/esm/ui/widget/MapLayerSettingsPopupButton.d.ts.map +1 -1
- 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 +10 -11
- package/lib/esm/ui/widget/MapLayersWidget.d.ts.map +1 -1
- 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 +2 -3
- package/lib/esm/ui/widget/MapManagerSettings.d.ts.map +1 -1
- 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 +22 -23
- package/lib/esm/ui/widget/MapUrlDialog.d.ts.map +1 -1
- package/lib/esm/ui/widget/MapUrlDialog.js +529 -523
- package/lib/esm/ui/widget/MapUrlDialog.js.map +1 -1
- package/lib/esm/ui/widget/MapUrlDialog.scss +99 -100
- package/lib/esm/ui/widget/SelectMapFormat.d.ts +17 -18
- package/lib/esm/ui/widget/SelectMapFormat.d.ts.map +1 -1
- 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 +18 -20
- package/lib/esm/ui/widget/SubLayersDataProvider.d.ts.map +1 -1
- 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 +9 -10
- package/lib/esm/ui/widget/SubLayersPopupButton.d.ts.map +1 -1
- 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 +14 -15
- package/lib/esm/ui/widget/SubLayersTree.d.ts.map +1 -1
- 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 +70 -69
- package/lib/esm/ui/widget/TransparencyPopupButton.d.ts +13 -14
- package/lib/esm/ui/widget/TransparencyPopupButton.d.ts.map +1 -1
- 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 +35 -36
- package/package.json +39 -38
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
import { BeEvent } from "@itwin/core-bentley";
|
|
2
|
-
import { MapSubLayerProps } from "@itwin/core-common";
|
|
3
|
-
import { HitDetail, MapLayerImageryProvider, MapTileTreeScaleRangeVisibility } from "@itwin/core-frontend";
|
|
4
|
-
export interface StyleMapLayerSettings {
|
|
5
|
-
/** Name */
|
|
6
|
-
name: string;
|
|
7
|
-
/** source (i.URL for ImageMapLayerSettings or modelId for ModelMapLayerSettings) */
|
|
8
|
-
source: string;
|
|
9
|
-
/** Controls visibility of layer */
|
|
10
|
-
visible: boolean;
|
|
11
|
-
treeVisibility: MapTileTreeScaleRangeVisibility;
|
|
12
|
-
/** A transparency value from 0.0 (fully opaque) to 1.0 (fully transparent) to apply to map graphics when drawing, or false to indicate the transparency should not be overridden. Default value: false. */
|
|
13
|
-
transparency: number;
|
|
14
|
-
/** Transparent background */
|
|
15
|
-
transparentBackground: boolean;
|
|
16
|
-
/** set map as underlay or overlay */
|
|
17
|
-
isOverlay: boolean;
|
|
18
|
-
/** layer index in the viewport */
|
|
19
|
-
layerIndex: number;
|
|
20
|
-
/** Available map sub-layer */
|
|
21
|
-
subLayers?: MapSubLayerProps[];
|
|
22
|
-
/** sub-layer panel displayed. */
|
|
23
|
-
showSubLayers: boolean;
|
|
24
|
-
/** Some format can publish only a single layer at a time (i.e WMTS) */
|
|
25
|
-
provider?: MapLayerImageryProvider;
|
|
26
|
-
}
|
|
27
|
-
export interface MapTypesOptions {
|
|
28
|
-
readonly supportTileUrl: boolean;
|
|
29
|
-
readonly supportWmsAuthentication: boolean;
|
|
30
|
-
}
|
|
31
|
-
export interface MapLayerOptions {
|
|
32
|
-
hideExternalMapLayers?: boolean;
|
|
33
|
-
fetchPublicMapLayerSources?: boolean;
|
|
34
|
-
mapTypeOptions?: MapTypesOptions;
|
|
35
|
-
}
|
|
36
|
-
export interface MapFeatureInfoPropertyGridOptions {
|
|
37
|
-
isPropertySelectionEnabled?: boolean;
|
|
38
|
-
}
|
|
39
|
-
export declare type MapHitEvent = BeEvent<(hit: HitDetail) => void>;
|
|
40
|
-
export interface MapFeatureInfoOptions {
|
|
41
|
-
/**
|
|
42
|
-
* HitDetail Event whenever the map is clicked.
|
|
43
|
-
* Typically the HitDetail object is provided by ElementLocateManager.doLocate.
|
|
44
|
-
* Every time this event is raised, FeatureInfoWidget will attempt to retrieve data from MapLayerImageryProviders.
|
|
45
|
-
*/
|
|
46
|
-
onMapHit: MapHitEvent;
|
|
47
|
-
disableDefaultFeatureInfoTool?: boolean;
|
|
48
|
-
showLoadProgressAnimation?: boolean;
|
|
49
|
-
propertyGridOptions?: MapFeatureInfoPropertyGridOptions;
|
|
50
|
-
}
|
|
1
|
+
import { BeEvent } from "@itwin/core-bentley";
|
|
2
|
+
import { MapSubLayerProps } from "@itwin/core-common";
|
|
3
|
+
import { HitDetail, MapLayerImageryProvider, MapTileTreeScaleRangeVisibility } from "@itwin/core-frontend";
|
|
4
|
+
export interface StyleMapLayerSettings {
|
|
5
|
+
/** Name */
|
|
6
|
+
name: string;
|
|
7
|
+
/** source (i.URL for ImageMapLayerSettings or modelId for ModelMapLayerSettings) */
|
|
8
|
+
source: string;
|
|
9
|
+
/** Controls visibility of layer */
|
|
10
|
+
visible: boolean;
|
|
11
|
+
treeVisibility: MapTileTreeScaleRangeVisibility;
|
|
12
|
+
/** A transparency value from 0.0 (fully opaque) to 1.0 (fully transparent) to apply to map graphics when drawing, or false to indicate the transparency should not be overridden. Default value: false. */
|
|
13
|
+
transparency: number;
|
|
14
|
+
/** Transparent background */
|
|
15
|
+
transparentBackground: boolean;
|
|
16
|
+
/** set map as underlay or overlay */
|
|
17
|
+
isOverlay: boolean;
|
|
18
|
+
/** layer index in the viewport */
|
|
19
|
+
layerIndex: number;
|
|
20
|
+
/** Available map sub-layer */
|
|
21
|
+
subLayers?: MapSubLayerProps[];
|
|
22
|
+
/** sub-layer panel displayed. */
|
|
23
|
+
showSubLayers: boolean;
|
|
24
|
+
/** Some format can publish only a single layer at a time (i.e WMTS) */
|
|
25
|
+
provider?: MapLayerImageryProvider;
|
|
26
|
+
}
|
|
27
|
+
export interface MapTypesOptions {
|
|
28
|
+
readonly supportTileUrl: boolean;
|
|
29
|
+
readonly supportWmsAuthentication: boolean;
|
|
30
|
+
}
|
|
31
|
+
export interface MapLayerOptions {
|
|
32
|
+
hideExternalMapLayers?: boolean;
|
|
33
|
+
fetchPublicMapLayerSources?: boolean;
|
|
34
|
+
mapTypeOptions?: MapTypesOptions;
|
|
35
|
+
}
|
|
36
|
+
export interface MapFeatureInfoPropertyGridOptions {
|
|
37
|
+
isPropertySelectionEnabled?: boolean;
|
|
38
|
+
}
|
|
39
|
+
export declare type MapHitEvent = BeEvent<(hit: HitDetail) => void>;
|
|
40
|
+
export interface MapFeatureInfoOptions {
|
|
41
|
+
/**
|
|
42
|
+
* HitDetail Event whenever the map is clicked.
|
|
43
|
+
* Typically the HitDetail object is provided by ElementLocateManager.doLocate.
|
|
44
|
+
* Every time this event is raised, FeatureInfoWidget will attempt to retrieve data from MapLayerImageryProviders.
|
|
45
|
+
*/
|
|
46
|
+
onMapHit: MapHitEvent;
|
|
47
|
+
disableDefaultFeatureInfoTool?: boolean;
|
|
48
|
+
showLoadProgressAnimation?: boolean;
|
|
49
|
+
propertyGridOptions?: MapFeatureInfoPropertyGridOptions;
|
|
50
|
+
}
|
|
51
51
|
//# sourceMappingURL=Interfaces.d.ts.map
|
package/lib/cjs/ui/Interfaces.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=Interfaces.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Interfaces.js","sourceRoot":"","sources":["../../../src/ui/Interfaces.ts"],"names":[],"mappings":"","sourcesContent":["/*---------------------------------------------------------------------------------------------\
|
|
1
|
+
{"version":3,"file":"Interfaces.js","sourceRoot":"","sources":["../../../src/ui/Interfaces.ts"],"names":[],"mappings":"","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\nimport { BeEvent } from \"@itwin/core-bentley\";\nimport { MapSubLayerProps } from \"@itwin/core-common\";\nimport { HitDetail, MapLayerImageryProvider, MapTileTreeScaleRangeVisibility } from \"@itwin/core-frontend\";\n\nexport interface StyleMapLayerSettings {\n /** Name */\n name: string;\n /** source (i.URL for ImageMapLayerSettings or modelId for ModelMapLayerSettings) */\n source: string;\n /** Controls visibility of layer */\n visible: boolean;\n treeVisibility: MapTileTreeScaleRangeVisibility;\n /** A transparency value from 0.0 (fully opaque) to 1.0 (fully transparent) to apply to map graphics when drawing, or false to indicate the transparency should not be overridden. Default value: false. */\n transparency: number;\n /** Transparent background */\n transparentBackground: boolean;\n /** set map as underlay or overlay */\n isOverlay: boolean;\n /** layer index in the viewport */\n layerIndex: number;\n /** Available map sub-layer */\n subLayers?: MapSubLayerProps[];\n /** sub-layer panel displayed. */\n showSubLayers: boolean;\n /** Some format can publish only a single layer at a time (i.e WMTS) */\n provider?: MapLayerImageryProvider;\n}\n\nexport interface MapTypesOptions {\n readonly supportTileUrl: boolean;\n readonly supportWmsAuthentication: boolean;\n}\n\nexport interface MapLayerOptions {\n hideExternalMapLayers?: boolean;\n fetchPublicMapLayerSources?: boolean;\n mapTypeOptions?: MapTypesOptions;\n}\n\nexport interface MapFeatureInfoPropertyGridOptions {\n isPropertySelectionEnabled?: boolean;\n}\n\nexport type MapHitEvent = BeEvent<(hit: HitDetail) => void>;\n\nexport interface MapFeatureInfoOptions {\n /**\n * HitDetail Event whenever the map is clicked.\n * Typically the HitDetail object is provided by ElementLocateManager.doLocate.\n * Every time this event is raised, FeatureInfoWidget will attempt to retrieve data from MapLayerImageryProviders.\n */\n onMapHit: MapHitEvent;\n disableDefaultFeatureInfoTool?: boolean;\n showLoadProgressAnimation?: boolean;\n propertyGridOptions?: MapFeatureInfoPropertyGridOptions;\n}\n"]}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { BeButtonEvent, EventHandled, HitDetail, PrimitiveTool } from "@itwin/core-frontend";
|
|
2
|
-
import { ToolItemDef } from "@itwin/appui-react";
|
|
3
|
-
import { BeEvent } from "@itwin/core-bentley";
|
|
4
|
-
export declare const getDefaultMapFeatureInfoToolItemDef: () => ToolItemDef;
|
|
5
|
-
export declare class DefaultMapFeatureInfoTool extends PrimitiveTool {
|
|
6
|
-
static readonly onMapHit: BeEvent<(hit: HitDetail) => void>;
|
|
7
|
-
static toolId: string;
|
|
8
|
-
static iconSpec: string;
|
|
9
|
-
requireWriteableTarget(): boolean;
|
|
10
|
-
onDataButtonDown(ev: BeButtonEvent): Promise<EventHandled>;
|
|
11
|
-
onResetButtonUp(_ev: BeButtonEvent): Promise<EventHandled>;
|
|
12
|
-
onRestartTool(): Promise<void>;
|
|
13
|
-
}
|
|
1
|
+
import { BeButtonEvent, EventHandled, HitDetail, PrimitiveTool } from "@itwin/core-frontend";
|
|
2
|
+
import { ToolItemDef } from "@itwin/appui-react";
|
|
3
|
+
import { BeEvent } from "@itwin/core-bentley";
|
|
4
|
+
export declare const getDefaultMapFeatureInfoToolItemDef: () => ToolItemDef;
|
|
5
|
+
export declare class DefaultMapFeatureInfoTool extends PrimitiveTool {
|
|
6
|
+
static readonly onMapHit: BeEvent<(hit: HitDetail) => void>;
|
|
7
|
+
static toolId: string;
|
|
8
|
+
static iconSpec: string;
|
|
9
|
+
requireWriteableTarget(): boolean;
|
|
10
|
+
onDataButtonDown(ev: BeButtonEvent): Promise<EventHandled>;
|
|
11
|
+
onResetButtonUp(_ev: BeButtonEvent): Promise<EventHandled>;
|
|
12
|
+
onRestartTool(): Promise<void>;
|
|
13
|
+
}
|
|
14
14
|
//# sourceMappingURL=MapFeatureInfoTool.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MapFeatureInfoTool.d.ts","sourceRoot":"","sources":["../../../src/ui/MapFeatureInfoTool.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,aAAa,EACb,YAAY,EACZ,SAAS,EAGT,aAAa,EACd,MAAM,sBAAsB,CAAC;AAE9B,OAAO,
|
|
1
|
+
{"version":3,"file":"MapFeatureInfoTool.d.ts","sourceRoot":"","sources":["../../../src/ui/MapFeatureInfoTool.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,aAAa,EACb,YAAY,EACZ,SAAS,EAGT,aAAa,EACd,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,WAAW,EAAe,MAAM,oBAAoB,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAG9C,eAAO,MAAM,mCAAmC,QAAO,WAOnD,CAAC;AAEL,qBAAa,yBAA0B,SAAQ,aAAa;IAC1D,gBAAuB,QAAQ,gBAAqB,SAAS,KAAK,IAAI,EAAI;IAC1E,OAAuB,MAAM,SAAwB;IACrD,OAAuB,QAAQ,SAAc;IAE7B,sBAAsB,IAAI,OAAO;IAI3B,gBAAgB,CACpC,EAAE,EAAE,aAAa,GAChB,OAAO,CAAC,YAAY,CAAC;IAsBF,eAAe,CACnC,GAAG,EAAE,aAAa,GACjB,OAAO,CAAC,YAAY,CAAC;IAMX,aAAa;CAK3B"}
|
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*---------------------------------------------------------------------------------------------
|
|
3
|
-
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
4
|
-
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
5
|
-
*--------------------------------------------------------------------------------------------*/
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.DefaultMapFeatureInfoTool = exports.getDefaultMapFeatureInfoToolItemDef = void 0;
|
|
8
|
-
const core_frontend_1 = require("@itwin/core-frontend");
|
|
9
|
-
const appui_abstract_1 = require("@itwin/appui-abstract");
|
|
10
|
-
const appui_react_1 = require("@itwin/appui-react");
|
|
11
|
-
const core_bentley_1 = require("@itwin/core-bentley");
|
|
12
|
-
const FeatureInfoUiItemsProvider_1 = require("./FeatureInfoUiItemsProvider");
|
|
13
|
-
const getDefaultMapFeatureInfoToolItemDef = () => new appui_react_1.ToolItemDef({
|
|
14
|
-
toolId: DefaultMapFeatureInfoTool.toolId,
|
|
15
|
-
iconSpec: DefaultMapFeatureInfoTool.iconSpec,
|
|
16
|
-
label: () => DefaultMapFeatureInfoTool.flyover,
|
|
17
|
-
description: () => DefaultMapFeatureInfoTool.description,
|
|
18
|
-
execute: async () => { await core_frontend_1.IModelApp.tools.run(DefaultMapFeatureInfoTool.toolId); },
|
|
19
|
-
});
|
|
20
|
-
exports.getDefaultMapFeatureInfoToolItemDef = getDefaultMapFeatureInfoToolItemDef;
|
|
21
|
-
class DefaultMapFeatureInfoTool extends core_frontend_1.PrimitiveTool {
|
|
22
|
-
requireWriteableTarget() {
|
|
23
|
-
return false;
|
|
24
|
-
}
|
|
25
|
-
async onDataButtonDown(ev) {
|
|
26
|
-
const hit = await core_frontend_1.IModelApp.locateManager.doLocate(new core_frontend_1.LocateResponse(), true, ev.point, ev.viewport, ev.inputSource);
|
|
27
|
-
if (hit !== undefined) {
|
|
28
|
-
const widgetDef = appui_react_1.
|
|
29
|
-
if (widgetDef && widgetDef.state !== appui_abstract_1.WidgetState.Open) // eslint-disable-line deprecation/deprecation
|
|
30
|
-
widgetDef.setWidgetState(appui_abstract_1.WidgetState.Open); // eslint-disable-line deprecation/deprecation
|
|
31
|
-
DefaultMapFeatureInfoTool.onMapHit.raiseEvent(hit);
|
|
32
|
-
return core_frontend_1.EventHandled.Yes;
|
|
33
|
-
}
|
|
34
|
-
return core_frontend_1.EventHandled.No;
|
|
35
|
-
}
|
|
36
|
-
async onResetButtonUp(_ev) {
|
|
37
|
-
/* Common reset behavior for primitive tools is calling onReinitialize to restart or exitTool to terminate. */
|
|
38
|
-
await this.onReinitialize();
|
|
39
|
-
return core_frontend_1.EventHandled.No;
|
|
40
|
-
}
|
|
41
|
-
async onRestartTool() {
|
|
42
|
-
const tool = new DefaultMapFeatureInfoTool();
|
|
43
|
-
if (!(await tool.run()))
|
|
44
|
-
return this.exitTool();
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
exports.DefaultMapFeatureInfoTool = DefaultMapFeatureInfoTool;
|
|
48
|
-
DefaultMapFeatureInfoTool.onMapHit = new core_bentley_1.BeEvent();
|
|
49
|
-
DefaultMapFeatureInfoTool.toolId = "MapFeatureInfoTool";
|
|
50
|
-
DefaultMapFeatureInfoTool.iconSpec = "icon-map";
|
|
1
|
+
"use strict";
|
|
2
|
+
/*---------------------------------------------------------------------------------------------
|
|
3
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
4
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
5
|
+
*--------------------------------------------------------------------------------------------*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.DefaultMapFeatureInfoTool = exports.getDefaultMapFeatureInfoToolItemDef = void 0;
|
|
8
|
+
const core_frontend_1 = require("@itwin/core-frontend");
|
|
9
|
+
const appui_abstract_1 = require("@itwin/appui-abstract");
|
|
10
|
+
const appui_react_1 = require("@itwin/appui-react");
|
|
11
|
+
const core_bentley_1 = require("@itwin/core-bentley");
|
|
12
|
+
const FeatureInfoUiItemsProvider_1 = require("./FeatureInfoUiItemsProvider");
|
|
13
|
+
const getDefaultMapFeatureInfoToolItemDef = () => new appui_react_1.ToolItemDef({
|
|
14
|
+
toolId: DefaultMapFeatureInfoTool.toolId,
|
|
15
|
+
iconSpec: DefaultMapFeatureInfoTool.iconSpec,
|
|
16
|
+
label: () => DefaultMapFeatureInfoTool.flyover,
|
|
17
|
+
description: () => DefaultMapFeatureInfoTool.description,
|
|
18
|
+
execute: async () => { await core_frontend_1.IModelApp.tools.run(DefaultMapFeatureInfoTool.toolId); },
|
|
19
|
+
});
|
|
20
|
+
exports.getDefaultMapFeatureInfoToolItemDef = getDefaultMapFeatureInfoToolItemDef;
|
|
21
|
+
class DefaultMapFeatureInfoTool extends core_frontend_1.PrimitiveTool {
|
|
22
|
+
requireWriteableTarget() {
|
|
23
|
+
return false;
|
|
24
|
+
}
|
|
25
|
+
async onDataButtonDown(ev) {
|
|
26
|
+
const hit = await core_frontend_1.IModelApp.locateManager.doLocate(new core_frontend_1.LocateResponse(), true, ev.point, ev.viewport, ev.inputSource);
|
|
27
|
+
if (hit !== undefined) {
|
|
28
|
+
const widgetDef = appui_react_1.UiFramework.frontstages.findWidget(FeatureInfoUiItemsProvider_1.FeatureInfoUiItemsProvider.widgetId);
|
|
29
|
+
if (widgetDef && widgetDef.state !== appui_abstract_1.WidgetState.Open) // eslint-disable-line deprecation/deprecation
|
|
30
|
+
widgetDef.setWidgetState(appui_abstract_1.WidgetState.Open); // eslint-disable-line deprecation/deprecation
|
|
31
|
+
DefaultMapFeatureInfoTool.onMapHit.raiseEvent(hit);
|
|
32
|
+
return core_frontend_1.EventHandled.Yes;
|
|
33
|
+
}
|
|
34
|
+
return core_frontend_1.EventHandled.No;
|
|
35
|
+
}
|
|
36
|
+
async onResetButtonUp(_ev) {
|
|
37
|
+
/* Common reset behavior for primitive tools is calling onReinitialize to restart or exitTool to terminate. */
|
|
38
|
+
await this.onReinitialize();
|
|
39
|
+
return core_frontend_1.EventHandled.No;
|
|
40
|
+
}
|
|
41
|
+
async onRestartTool() {
|
|
42
|
+
const tool = new DefaultMapFeatureInfoTool();
|
|
43
|
+
if (!(await tool.run()))
|
|
44
|
+
return this.exitTool();
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.DefaultMapFeatureInfoTool = DefaultMapFeatureInfoTool;
|
|
48
|
+
DefaultMapFeatureInfoTool.onMapHit = new core_bentley_1.BeEvent();
|
|
49
|
+
DefaultMapFeatureInfoTool.toolId = "MapFeatureInfoTool";
|
|
50
|
+
DefaultMapFeatureInfoTool.iconSpec = "icon-map";
|
|
51
51
|
//# sourceMappingURL=MapFeatureInfoTool.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MapFeatureInfoTool.js","sourceRoot":"","sources":["../../../src/ui/MapFeatureInfoTool.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;AAE/F,wDAO8B;AAC9B,0DAAoD;AACpD,
|
|
1
|
+
{"version":3,"file":"MapFeatureInfoTool.js","sourceRoot":"","sources":["../../../src/ui/MapFeatureInfoTool.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;AAE/F,wDAO8B;AAC9B,0DAAoD;AACpD,oDAA8D;AAC9D,sDAA8C;AAC9C,6EAA0E;AAEnE,MAAM,mCAAmC,GAAG,GAAgB,EAAE,CACnE,IAAI,yBAAW,CAAC;IACd,MAAM,EAAE,yBAAyB,CAAC,MAAM;IACxC,QAAQ,EAAE,yBAAyB,CAAC,QAAQ;IAC5C,KAAK,EAAE,GAAG,EAAE,CAAC,yBAAyB,CAAC,OAAO;IAC9C,WAAW,EAAE,GAAG,EAAE,CAAC,yBAAyB,CAAC,WAAW;IACxD,OAAO,EAAE,KAAK,IAAI,EAAE,GAAG,MAAM,yBAAS,CAAC,KAAK,CAAC,GAAG,CAAC,yBAAyB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;CACtF,CAAC,CAAC;AAPQ,QAAA,mCAAmC,uCAO3C;AAEL,MAAa,yBAA0B,SAAQ,6BAAa;IAK1C,sBAAsB;QACpC,OAAO,KAAK,CAAC;IACf,CAAC;IAEe,KAAK,CAAC,gBAAgB,CACpC,EAAiB;QAEjB,MAAM,GAAG,GAAG,MAAM,yBAAS,CAAC,aAAa,CAAC,QAAQ,CAChD,IAAI,8BAAc,EAAE,EACpB,IAAI,EACJ,EAAE,CAAC,KAAK,EACR,EAAE,CAAC,QAAQ,EACX,EAAE,CAAC,WAAW,CACf,CAAC;QACF,IAAI,GAAG,KAAK,SAAS,EAAE;YACrB,MAAM,SAAS,GAAG,yBAAW,CAAC,WAAW,CAAC,UAAU,CAClD,uDAA0B,CAAC,QAAQ,CACpC,CAAC;YACF,IAAI,SAAS,IAAI,SAAS,CAAC,KAAK,KAAK,4BAAW,CAAC,IAAI,EAAE,8CAA8C;gBACnG,SAAS,CAAC,cAAc,CAAC,4BAAW,CAAC,IAAI,CAAC,CAAC,CAAC,8CAA8C;YAE5F,yBAAyB,CAAC,QAAQ,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;YACnD,OAAO,4BAAY,CAAC,GAAG,CAAC;SACzB;QAED,OAAO,4BAAY,CAAC,EAAE,CAAC;IACzB,CAAC;IAEe,KAAK,CAAC,eAAe,CACnC,GAAkB;QAElB,8GAA8G;QAC9G,MAAM,IAAI,CAAC,cAAc,EAAE,CAAC;QAC5B,OAAO,4BAAY,CAAC,EAAE,CAAC;IACzB,CAAC;IAEM,KAAK,CAAC,aAAa;QACxB,MAAM,IAAI,GAAG,IAAI,yBAAyB,EAAE,CAAC;QAC7C,IAAI,CAAC,CAAC,MAAM,IAAI,CAAC,GAAG,EAAE,CAAC;YACrB,OAAO,IAAI,CAAC,QAAQ,EAAE,CAAC;IAC3B,CAAC;;AA7CH,8DA8CC;AA7CwB,kCAAQ,GAAG,IAAI,sBAAO,EAA4B,CAAC;AACnD,gCAAM,GAAG,oBAAoB,CAAC;AAC9B,kCAAQ,GAAG,UAAU,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n\nimport {\n BeButtonEvent,\n EventHandled,\n HitDetail,\n IModelApp,\n LocateResponse,\n PrimitiveTool,\n} from \"@itwin/core-frontend\";\nimport { WidgetState } from \"@itwin/appui-abstract\";\nimport { ToolItemDef, UiFramework } from \"@itwin/appui-react\";\nimport { BeEvent } from \"@itwin/core-bentley\";\nimport { FeatureInfoUiItemsProvider } from \"./FeatureInfoUiItemsProvider\";\n\nexport const getDefaultMapFeatureInfoToolItemDef = (): ToolItemDef =>\n new ToolItemDef({\n toolId: DefaultMapFeatureInfoTool.toolId,\n iconSpec: DefaultMapFeatureInfoTool.iconSpec,\n label: () => DefaultMapFeatureInfoTool.flyover,\n description: () => DefaultMapFeatureInfoTool.description,\n execute: async () => { await IModelApp.tools.run(DefaultMapFeatureInfoTool.toolId); },\n });\n\nexport class DefaultMapFeatureInfoTool extends PrimitiveTool {\n public static readonly onMapHit = new BeEvent<(hit: HitDetail) => void>();\n public static override toolId = \"MapFeatureInfoTool\";\n public static override iconSpec = \"icon-map\";\n\n public override requireWriteableTarget(): boolean {\n return false;\n }\n\n public override async onDataButtonDown(\n ev: BeButtonEvent\n ): Promise<EventHandled> {\n const hit = await IModelApp.locateManager.doLocate(\n new LocateResponse(),\n true,\n ev.point,\n ev.viewport,\n ev.inputSource\n );\n if (hit !== undefined) {\n const widgetDef = UiFramework.frontstages.findWidget(\n FeatureInfoUiItemsProvider.widgetId\n );\n if (widgetDef && widgetDef.state !== WidgetState.Open) // eslint-disable-line deprecation/deprecation\n widgetDef.setWidgetState(WidgetState.Open); // eslint-disable-line deprecation/deprecation\n\n DefaultMapFeatureInfoTool.onMapHit.raiseEvent(hit);\n return EventHandled.Yes;\n }\n\n return EventHandled.No;\n }\n\n public override async onResetButtonUp(\n _ev: BeButtonEvent\n ): Promise<EventHandled> {\n /* Common reset behavior for primitive tools is calling onReinitialize to restart or exitTool to terminate. */\n await this.onReinitialize();\n return EventHandled.No;\n }\n\n public async onRestartTool() {\n const tool = new DefaultMapFeatureInfoTool();\n if (!(await tool.run()))\n return this.exitTool();\n }\n}\n"]}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { MapLayerOptions } from "./Interfaces";
|
|
3
|
-
export declare class MapLayersUiItemsProvider implements UiItemsProvider {
|
|
4
|
-
readonly id = "MapLayersUiItemsProvider";
|
|
5
|
-
private _mapLayerOptions?;
|
|
6
|
-
constructor(mapLayerOptions?: MapLayerOptions);
|
|
7
|
-
provideWidgets(_stageId: string, stageUsage: string, location: StagePanelLocation, section
|
|
8
|
-
}
|
|
1
|
+
import { StagePanelLocation, StagePanelSection, UiItemsProvider, Widget } from "@itwin/appui-react";
|
|
2
|
+
import { MapLayerOptions } from "./Interfaces";
|
|
3
|
+
export declare class MapLayersUiItemsProvider implements UiItemsProvider {
|
|
4
|
+
readonly id = "MapLayersUiItemsProvider";
|
|
5
|
+
private _mapLayerOptions?;
|
|
6
|
+
constructor(mapLayerOptions?: MapLayerOptions);
|
|
7
|
+
provideWidgets(_stageId: string, stageUsage: string, location: StagePanelLocation, section?: StagePanelSection): Widget[];
|
|
8
|
+
}
|
|
9
9
|
//# sourceMappingURL=MapLayersUiItemsProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MapLayersUiItemsProvider.d.ts","sourceRoot":"","sources":["../../../src/ui/MapLayersUiItemsProvider.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"MapLayersUiItemsProvider.d.ts","sourceRoot":"","sources":["../../../src/ui/MapLayersUiItemsProvider.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAc,eAAe,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAEhH,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAG/C,qBAAa,wBAAyB,YAAW,eAAe;IAC9D,SAAgB,EAAE,8BAA8B;IAChD,OAAO,CAAC,gBAAgB,CAAC,CAAkB;gBAExB,eAAe,CAAC,EAAE,eAAe;IAQ7C,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,iBAAiB;CAatH"}
|
|
@@ -1,39 +1,36 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*---------------------------------------------------------------------------------------------
|
|
3
|
-
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
4
|
-
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
5
|
-
*--------------------------------------------------------------------------------------------*/
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.MapLayersUiItemsProvider = void 0;
|
|
8
|
-
const React = require("react");
|
|
9
|
-
const
|
|
10
|
-
const MapLayersWidget_1 = require("./widget/MapLayersWidget");
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
this.
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
exports.MapLayersUiItemsProvider = MapLayersUiItemsProvider;
|
|
1
|
+
"use strict";
|
|
2
|
+
/*---------------------------------------------------------------------------------------------
|
|
3
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
4
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
5
|
+
*--------------------------------------------------------------------------------------------*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.MapLayersUiItemsProvider = void 0;
|
|
8
|
+
const React = require("react");
|
|
9
|
+
const appui_react_1 = require("@itwin/appui-react");
|
|
10
|
+
const MapLayersWidget_1 = require("./widget/MapLayersWidget");
|
|
11
|
+
const mapLayers_1 = require("../mapLayers");
|
|
12
|
+
class MapLayersUiItemsProvider {
|
|
13
|
+
constructor(mapLayerOptions) {
|
|
14
|
+
this.id = "MapLayersUiItemsProvider";
|
|
15
|
+
this._mapLayerOptions = mapLayerOptions !== null && mapLayerOptions !== void 0 ? mapLayerOptions : {
|
|
16
|
+
hideExternalMapLayers: false,
|
|
17
|
+
mapTypeOptions: { supportTileUrl: false, supportWmsAuthentication: true },
|
|
18
|
+
fetchPublicMapLayerSources: false,
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
provideWidgets(_stageId, stageUsage, location, section) {
|
|
22
|
+
const widgets = [];
|
|
23
|
+
const tmpSection = section !== null && section !== void 0 ? section : appui_react_1.StagePanelSection.Start;
|
|
24
|
+
if (stageUsage === appui_react_1.StageUsage.General && location === appui_react_1.StagePanelLocation.Right && tmpSection === appui_react_1.StagePanelSection.Start) {
|
|
25
|
+
widgets.push({
|
|
26
|
+
id: "map-layers:mapLayersWidget",
|
|
27
|
+
label: mapLayers_1.MapLayersUI.localization.getLocalizedString("mapLayers:Widget.Label"),
|
|
28
|
+
icon: "icon-map",
|
|
29
|
+
content: React.createElement(MapLayersWidget_1.MapLayersWidget, { mapLayerOptions: this._mapLayerOptions }),
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
return widgets;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
exports.MapLayersUiItemsProvider = MapLayersUiItemsProvider;
|
|
39
36
|
//# sourceMappingURL=MapLayersUiItemsProvider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MapLayersUiItemsProvider.js","sourceRoot":"","sources":["../../../src/ui/MapLayersUiItemsProvider.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;;;AAE/F,+BAA+B;AAC/B,
|
|
1
|
+
{"version":3,"file":"MapLayersUiItemsProvider.js","sourceRoot":"","sources":["../../../src/ui/MapLayersUiItemsProvider.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;;;AAE/F,+BAA+B;AAC/B,oDAAgH;AAChH,8DAA2D;AAE3D,4CAA2C;AAE3C,MAAa,wBAAwB;IAInC,YAAmB,eAAiC;QAHpC,OAAE,GAAG,0BAA0B,CAAC;QAI9C,IAAI,CAAC,gBAAgB,GAAG,eAAe,aAAf,eAAe,cAAf,eAAe,GAAI;YACzC,qBAAqB,EAAE,KAAK;YAC5B,cAAc,EAAE,EAAE,cAAc,EAAE,KAAK,EAAE,wBAAwB,EAAE,IAAI,EAAE;YACzE,0BAA0B,EAAE,KAAK;SAClC,CAAC;IACJ,CAAC;IAEM,cAAc,CAAC,QAAgB,EAAE,UAAkB,EAAE,QAA4B,EAAE,OAA2B;QACnH,MAAM,OAAO,GAAa,EAAE,CAAC;QAC7B,MAAM,UAAU,GAAG,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,+BAAiB,CAAC,KAAK,CAAC;QACtD,IAAI,UAAU,KAAK,wBAAU,CAAC,OAAO,IAAI,QAAQ,KAAK,gCAAkB,CAAC,KAAK,IAAI,UAAU,KAAK,+BAAiB,CAAC,KAAK,EAAE;YACxH,OAAO,CAAC,IAAI,CAAC;gBACX,EAAE,EAAE,4BAA4B;gBAChC,KAAK,EAAE,uBAAW,CAAC,YAAY,CAAC,kBAAkB,CAAC,wBAAwB,CAAC;gBAC5E,IAAI,EAAE,UAAU;gBAChB,OAAO,EAAE,oBAAC,iCAAe,IAAC,eAAe,EAAE,IAAI,CAAC,gBAAgB,GAAI;aACrE,CAAC,CAAC;SACJ;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;CACF;AAzBD,4DAyBC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n\nimport * as React from \"react\";\nimport { StagePanelLocation, StagePanelSection, StageUsage, UiItemsProvider, Widget } from \"@itwin/appui-react\";\nimport { MapLayersWidget } from \"./widget/MapLayersWidget\";\nimport { MapLayerOptions } from \"./Interfaces\";\nimport { MapLayersUI } from \"../mapLayers\";\n\nexport class MapLayersUiItemsProvider implements UiItemsProvider {\n public readonly id = \"MapLayersUiItemsProvider\";\n private _mapLayerOptions?: MapLayerOptions;\n\n public constructor(mapLayerOptions?: MapLayerOptions) {\n this._mapLayerOptions = mapLayerOptions ?? {\n hideExternalMapLayers: false,\n mapTypeOptions: { supportTileUrl: false, supportWmsAuthentication: true },\n fetchPublicMapLayerSources: false,\n };\n }\n\n public provideWidgets(_stageId: string, stageUsage: string, location: StagePanelLocation, section?: StagePanelSection) {\n const widgets: Widget[] = [];\n const tmpSection = section ?? StagePanelSection.Start;\n if (stageUsage === StageUsage.General && location === StagePanelLocation.Right && tmpSection === StagePanelSection.Start) {\n widgets.push({\n id: \"map-layers:mapLayersWidget\",\n label: MapLayersUI.localization.getLocalizedString(\"mapLayers:Widget.Label\"),\n icon: \"icon-map\",\n content: <MapLayersWidget mapLayerOptions={this._mapLayerOptions} />,\n });\n }\n return widgets;\n }\n}\n"]}
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
export declare function AttachLayerPopupButton(props: AttachLayerPopupButtonProps): JSX.Element;
|
|
1
|
+
/** @internal */
|
|
2
|
+
export declare enum AttachLayerButtonType {
|
|
3
|
+
Primary = 0,
|
|
4
|
+
Blue = 1,
|
|
5
|
+
Icon = 2
|
|
6
|
+
}
|
|
7
|
+
export interface AttachLayerPopupButtonProps {
|
|
8
|
+
isOverlay: boolean;
|
|
9
|
+
buttonType?: AttachLayerButtonType;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
}
|
|
12
|
+
/** @internal */
|
|
13
|
+
export declare function AttachLayerPopupButton(props: AttachLayerPopupButtonProps): JSX.Element;
|
|
15
14
|
//# sourceMappingURL=AttachLayerPopupButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttachLayerPopupButton.d.ts","sourceRoot":"","sources":["../../../../src/ui/widget/AttachLayerPopupButton.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AttachLayerPopupButton.d.ts","sourceRoot":"","sources":["../../../../src/ui/widget/AttachLayerPopupButton.tsx"],"names":[],"mappings":"AA2WA,gBAAgB;AAChB,oBAAY,qBAAqB;IAC/B,OAAO,IAAA;IACP,IAAI,IAAA;IACJ,IAAI,IAAA;CACL;AACD,MAAM,WAAW,2BAA2B;IAC1C,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,qBAAqB,CAAC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,gBAAgB;AAEhB,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,2BAA2B,eAiHxE"}
|