@itwin/map-layers 5.2.0 → 5.2.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.
Files changed (59) hide show
  1. package/CHANGELOG.md +15 -1
  2. package/lib/cjs/mapLayers.d.ts +2 -1
  3. package/lib/cjs/mapLayers.d.ts.map +1 -1
  4. package/lib/cjs/mapLayers.js +3 -0
  5. package/lib/cjs/mapLayers.js.map +1 -1
  6. package/lib/cjs/public/locales/en/mapLayers.json +14 -3
  7. package/lib/cjs/ui/widget/MapLayerDroppable.d.ts.map +1 -1
  8. package/lib/cjs/ui/widget/MapLayerDroppable.js +7 -4
  9. package/lib/cjs/ui/widget/MapLayerDroppable.js.map +1 -1
  10. package/lib/cjs/ui/widget/MapLayerManager.d.ts.map +1 -1
  11. package/lib/cjs/ui/widget/MapLayerManager.js +3 -1
  12. package/lib/cjs/ui/widget/MapLayerManager.js.map +1 -1
  13. package/lib/cjs/ui/widget/MapLayerSettingsPopupButton.d.ts.map +1 -1
  14. package/lib/cjs/ui/widget/MapLayerSettingsPopupButton.js +3 -2
  15. package/lib/cjs/ui/widget/MapLayerSettingsPopupButton.js.map +1 -1
  16. package/lib/cjs/ui/widget/MapSelectFeaturesDialog.d.ts.map +1 -1
  17. package/lib/cjs/ui/widget/MapSelectFeaturesDialog.js +17 -18
  18. package/lib/cjs/ui/widget/MapSelectFeaturesDialog.js.map +1 -1
  19. package/lib/cjs/ui/widget/MapUrlDialog.d.ts.map +1 -1
  20. package/lib/cjs/ui/widget/MapUrlDialog.js +15 -6
  21. package/lib/cjs/ui/widget/MapUrlDialog.js.map +1 -1
  22. package/lib/cjs/ui/widget/MapUrlDialog.scss +39 -10
  23. package/lib/cjs/ui/widget/SelectMapFormat.d.ts.map +1 -1
  24. package/lib/cjs/ui/widget/SelectMapFormat.js +2 -2
  25. package/lib/cjs/ui/widget/SelectMapFormat.js.map +1 -1
  26. package/lib/cjs/ui/widget/SubLayersTree.d.ts.map +1 -1
  27. package/lib/cjs/ui/widget/SubLayersTree.js +8 -7
  28. package/lib/cjs/ui/widget/SubLayersTree.js.map +1 -1
  29. package/lib/cjs/ui/widget/SubLayersTree.scss +27 -31
  30. package/lib/esm/mapLayers.d.ts +2 -1
  31. package/lib/esm/mapLayers.d.ts.map +1 -1
  32. package/lib/esm/mapLayers.js +3 -0
  33. package/lib/esm/mapLayers.js.map +1 -1
  34. package/lib/esm/public/locales/en/mapLayers.json +14 -3
  35. package/lib/esm/ui/widget/MapLayerDroppable.d.ts.map +1 -1
  36. package/lib/esm/ui/widget/MapLayerDroppable.js +7 -4
  37. package/lib/esm/ui/widget/MapLayerDroppable.js.map +1 -1
  38. package/lib/esm/ui/widget/MapLayerManager.d.ts.map +1 -1
  39. package/lib/esm/ui/widget/MapLayerManager.js +3 -1
  40. package/lib/esm/ui/widget/MapLayerManager.js.map +1 -1
  41. package/lib/esm/ui/widget/MapLayerSettingsPopupButton.d.ts.map +1 -1
  42. package/lib/esm/ui/widget/MapLayerSettingsPopupButton.js +5 -4
  43. package/lib/esm/ui/widget/MapLayerSettingsPopupButton.js.map +1 -1
  44. package/lib/esm/ui/widget/MapSelectFeaturesDialog.d.ts.map +1 -1
  45. package/lib/esm/ui/widget/MapSelectFeaturesDialog.js +18 -19
  46. package/lib/esm/ui/widget/MapSelectFeaturesDialog.js.map +1 -1
  47. package/lib/esm/ui/widget/MapUrlDialog.d.ts.map +1 -1
  48. package/lib/esm/ui/widget/MapUrlDialog.js +18 -9
  49. package/lib/esm/ui/widget/MapUrlDialog.js.map +1 -1
  50. package/lib/esm/ui/widget/MapUrlDialog.scss +39 -10
  51. package/lib/esm/ui/widget/SelectMapFormat.d.ts.map +1 -1
  52. package/lib/esm/ui/widget/SelectMapFormat.js +3 -3
  53. package/lib/esm/ui/widget/SelectMapFormat.js.map +1 -1
  54. package/lib/esm/ui/widget/SubLayersTree.d.ts.map +1 -1
  55. package/lib/esm/ui/widget/SubLayersTree.js +10 -9
  56. package/lib/esm/ui/widget/SubLayersTree.js.map +1 -1
  57. package/lib/esm/ui/widget/SubLayersTree.scss +27 -31
  58. package/lib/public/locales/en/mapLayers.json +14 -3
  59. package/package.json +1 -1
@@ -4,27 +4,39 @@
4
4
  *--------------------------------------------------------------------------------------------*/
5
5
  @import "~@itwin/core-react/lib/cjs/core-react/index";
6
6
 
7
- .map-manager-sublayer-tree {
8
- height: 100%;
9
- width: 100%;
10
- display: flex;
11
- flex-direction: column;
7
+ .map-manager-sublayer-panel {
8
+ .map-manager-sublayer-tree {
9
+ height: 100%;
10
+ width: 100%;
11
+ display: flex;
12
+ flex-direction: column;
12
13
 
13
- .core-tree-node {
14
- >.contents {
15
- padding-left: 31px;
14
+ .core-tree-node {
15
+ >.contents {
16
+ padding-left: 31px;
16
17
 
17
- >.core-image-checkbox {
18
- top: 5px;
18
+ >.core-image-checkbox {
19
+ top: 5px;
20
+ }
19
21
  }
20
22
  }
23
+
24
+ .core-image-checkbox {
25
+ position: absolute;
26
+ left: 5px;
27
+ padding: 0;
28
+ margin: -2px 0px 0px 5px;
29
+ }
21
30
  }
31
+ }
32
+
33
+ .map-layer-select-features-dialog {
34
+ .map-manager-sublayer-tree-content {
35
+ .core-tree-node {
36
+ // Revert margin added by ControlledTree on each node (there is no options to disable it)
37
+ margin-left: -28px;
38
+ }
22
39
 
23
- .core-image-checkbox {
24
- position: absolute;
25
- left: 5px;
26
- padding: 0;
27
- margin: -2px 0px 0px 5px;
28
40
  }
29
41
  }
30
42
 
@@ -38,22 +50,6 @@
38
50
  flex-direction: row;
39
51
  flex-wrap: nowrap;
40
52
 
41
- button {
42
- height: 32px;
43
- width: 32px;
44
- background-color: transparent;
45
- color: var(--buic-foreground-body);
46
- border: 1px solid var(--buic-background-toolbutton-stroke);
47
-
48
- &:hover {
49
- color: var(--buic-accessory-primary-tint);
50
- }
51
-
52
- &:focus {
53
- box-shadow: rgba(var(--iui-color-border-accent), var(--iui-opacity-4)) 0px 0px 0px 2px;
54
- outline: none;
55
- }
56
- }
57
53
  }
58
54
 
59
55
  .tree-toolbar-searchbox {
@@ -12,6 +12,17 @@
12
12
  "ColorDialog": {
13
13
  "Title": "Specify Base Color"
14
14
  },
15
+ "Dialog":
16
+ {
17
+ "Add" : "Add",
18
+ "Cancel" : "Cancel",
19
+ "Edit" : "Edit"
20
+ },
21
+ "SelectFeaturesDialog":
22
+ {
23
+ "AllOn": "Select All",
24
+ "AllOff": "Select None"
25
+ },
15
26
  "MapLayerActionButtons": {
16
27
  "ShowAllLabel": "Show all",
17
28
  "HideAllLabel": "Hide all",
@@ -24,7 +35,7 @@
24
35
  "LayerExistsOverwriting": "Map layer {{layer}} already exists, overwriting info for that layer.",
25
36
  "LayerExistsAsITwinSetting": "Map layer {{layer}} already exists as a iTwin setting. Cannot overwrite with a model setting!",
26
37
  "AddCustomLayerButtonLabel": "Add Layer",
27
- "AttachCustomLayer": "Attach New Layer",
38
+ "AttachCustomLayer": "Add New Layer",
28
39
  "AttacheInfo": "Map layer attached from URL:",
29
40
  "Custom": "New",
30
41
  "LoadingMapSources": "Loading Map Sources",
@@ -52,11 +63,11 @@
52
63
  "RemoveLayerDefError": "Could not delete map layer definition: {{layerName}}",
53
64
  "RemoveLayerDefSuccess": "Successfully deleted map layer definition: {{layerName}}",
54
65
  "SearchPlaceholder": "Search...",
55
- "SelectLayersToCreate": "Select layers to be created",
66
+ "SelectLayersToCreate": "Select Layers To Add",
56
67
  "StoreOnModelSettings": "Store on Model Settings",
57
68
  "StoreOnITwinSettings": "Store on iTwin Settings",
58
69
  "TechPreviewBadgeTooltip": "Technology preview",
59
- "TooManyLayersSelected": "There are currently {{layerCount}} layers selected; Adding too many layers may impact performance.",
70
+ "TooManyLayersSelected": "{{layerCount}} layers selected; performance may be affected.",
60
71
  "Type": "Type",
61
72
  "URL": "URL",
62
73
  "UrlInputPlaceHolder": "Enter Map Source URL",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itwin/map-layers",
3
- "version": "5.2.0",
3
+ "version": "5.2.2",
4
4
  "description": "Extension that adds a Map Layers Widget",
5
5
  "main": "lib/cjs/map-layers.js",
6
6
  "module": "lib/esm/map-layers.js",