@map-colonies/react-components 3.11.0 → 3.12.3

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 (40) hide show
  1. package/CHANGELOG.md +290 -234
  2. package/dist/cesium-map/index.d.ts +1 -0
  3. package/dist/cesium-map/index.js +1 -0
  4. package/dist/cesium-map/layers/imagery.layer.js +9 -5
  5. package/dist/cesium-map/layers-manager.d.ts +10 -2
  6. package/dist/cesium-map/layers-manager.js +19 -1
  7. package/dist/cesium-map/map-legend/MapLegend.css +135 -0
  8. package/dist/cesium-map/map-legend/MapLegend.d.ts +15 -0
  9. package/dist/cesium-map/map-legend/MapLegend.js +57 -0
  10. package/dist/cesium-map/map-legend/MapLegendList.d.ts +13 -0
  11. package/dist/cesium-map/map-legend/MapLegendList.js +43 -0
  12. package/dist/cesium-map/map-legend/MapLegendSidebar.d.ts +16 -0
  13. package/dist/cesium-map/map-legend/MapLegendSidebar.js +20 -0
  14. package/dist/cesium-map/map-legend/MapLegendToggle.d.ts +7 -0
  15. package/dist/cesium-map/map-legend/MapLegendToggle.js +20 -0
  16. package/dist/cesium-map/map-legend/index.d.ts +3 -0
  17. package/dist/cesium-map/map-legend/index.js +14 -0
  18. package/dist/cesium-map/map.css +6 -1
  19. package/dist/cesium-map/map.d.ts +14 -1
  20. package/dist/cesium-map/map.js +53 -21
  21. package/dist/cesium-map/proxied.types.d.ts +9 -1
  22. package/dist/cesium-map/proxied.types.js +33 -1
  23. package/dist/cesium-map/settings/settings.css +5 -2
  24. package/package.json +3 -3
  25. package/src/lib/cesium-map/data-sources/drawings.data-source.tsx +0 -1
  26. package/src/lib/cesium-map/index.ts +1 -0
  27. package/src/lib/cesium-map/layers/imagery.layer.tsx +12 -7
  28. package/src/lib/cesium-map/layers-manager.ts +30 -1
  29. package/src/lib/cesium-map/map-legend/MapLegend.css +135 -0
  30. package/src/lib/cesium-map/map-legend/MapLegend.tsx +92 -0
  31. package/src/lib/cesium-map/map-legend/MapLegendList.tsx +47 -0
  32. package/src/lib/cesium-map/map-legend/MapLegendSidebar.tsx +55 -0
  33. package/src/lib/cesium-map/map-legend/MapLegendToggle.tsx +31 -0
  34. package/src/lib/cesium-map/map-legend/index.tsx +3 -0
  35. package/src/lib/cesium-map/map-legend/legends-sidebar.stories.tsx +201 -0
  36. package/src/lib/cesium-map/map.css +6 -1
  37. package/src/lib/cesium-map/map.tsx +85 -20
  38. package/src/lib/cesium-map/proxied.types.ts +19 -7
  39. package/src/lib/cesium-map/settings/settings.css +5 -2
  40. package/src/lib/cesium-map/terrain-providers/terrain-provider-heights-tool.stories.tsx +2 -2
package/CHANGELOG.md CHANGED
@@ -3,140 +3,7 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- # [3.11.0](https://github.com/MapColonies/shared-components/compare/@map-colonies/react-components@3.10.5...@map-colonies/react-components@3.11.0) (2022-05-02)
7
-
8
-
9
- ### Bug Fixes
10
-
11
- * 3d story ([ee59db0](https://github.com/MapColonies/shared-components/commit/ee59db00f627b709368f830a3c7cf30dc2cf0525))
12
- * 3d with update ([86fd98b](https://github.com/MapColonies/shared-components/commit/86fd98b59d137f3bfddc351a98cefcef7b6fc19a))
13
- * 3d with update ([c554c57](https://github.com/MapColonies/shared-components/commit/c554c57ba85c68e3a5e53c128714d86733db10d0))
14
- * bounding volume minimum height ([87e0e81](https://github.com/MapColonies/shared-components/commit/87e0e8114f088a4997723f91760f80250e67f629))
15
- * build errors ([57bc0fa](https://github.com/MapColonies/shared-components/commit/57bc0fac22aebf865112d3c26d1bf46ee57d4dad))
16
- * fix ([6999626](https://github.com/MapColonies/shared-components/commit/69996260b96379813b051104204568b190d46eaa))
17
- * fix ([d958564](https://github.com/MapColonies/shared-components/commit/d958564cf178e7258fcdf2c21a1915b0e442c52c))
18
- * fix ([db76412](https://github.com/MapColonies/shared-components/commit/db7641201cde062e360131a73081867b4db854ba))
19
- * fix ([16c4499](https://github.com/MapColonies/shared-components/commit/16c4499a33c1c5d0bd34cd33958d5381e05ac3b6))
20
- * linting ([ca5f578](https://github.com/MapColonies/shared-components/commit/ca5f578f0e2f3422213e4f7e4cfa1abdd05576b8))
21
- * prettier ([f516da2](https://github.com/MapColonies/shared-components/commit/f516da2ce8f1b59d18ace5cafe6e12642046e19a))
22
- * prettier ([226ca71](https://github.com/MapColonies/shared-components/commit/226ca71c110abf50c89a36125c33f3e66cf195dc))
23
- * prettier ([6b1c751](https://github.com/MapColonies/shared-components/commit/6b1c7511355e35b199a5b127668df93e9c393c3b))
24
- * prettier ([c4e6c13](https://github.com/MapColonies/shared-components/commit/c4e6c13ebc77774b8764f582f710777e316b586b))
25
- * prettier ([a6613d7](https://github.com/MapColonies/shared-components/commit/a6613d7292aa8eb0b00f83d0885e61dfa4860ca0))
26
- * revert ([44c6a9b](https://github.com/MapColonies/shared-components/commit/44c6a9b6a34f2f8a6281f26c90ddfe3583832100))
27
- * story ([c348df4](https://github.com/MapColonies/shared-components/commit/c348df4cdf771483e5e5ade78bac3e734dd4965d))
28
- * unused ([bf696fe](https://github.com/MapColonies/shared-components/commit/bf696fe20b7e20223ef9f05962d9eecbb2760d06))
29
- * zoom to ([e78def4](https://github.com/MapColonies/shared-components/commit/e78def47940ab569691677ee71f6ac41a4c3f1bd))
30
-
31
-
32
- ### Features
33
-
34
- * update tileset ([17ed73c](https://github.com/MapColonies/shared-components/commit/17ed73c43ba41ad54e70e6c17d152eeb38887009))
35
-
36
-
37
-
38
-
39
-
40
- ## [3.10.5](https://github.com/MapColonies/shared-components/compare/@map-colonies/react-components@3.10.4...@map-colonies/react-components@3.10.5) (2022-03-29)
41
-
42
-
43
- ### Bug Fixes
44
-
45
- * folderchain alignment ([#125](https://github.com/MapColonies/shared-components/issues/125)) ([01c3670](https://github.com/MapColonies/shared-components/commit/01c3670567b67b81ad98a10705eb1a8a0bc74206))
46
-
47
-
48
-
49
-
50
-
51
- ## [3.10.4](https://github.com/MapColonies/shared-components/compare/@map-colonies/react-components@3.10.3...@map-colonies/react-components@3.10.4) (2022-03-02)
52
-
53
-
54
- ### Bug Fixes
55
-
56
- * for poi ([#122](https://github.com/MapColonies/shared-components/issues/122)) ([ef849eb](https://github.com/MapColonies/shared-components/commit/ef849eb488a19a072e32de7af9d3038bc7e22656))
57
-
58
-
59
-
60
-
61
-
62
- ## [3.10.3](https://github.com/MapColonies/shared-components/compare/@map-colonies/react-components@3.10.2...@map-colonies/react-components@3.10.3) (2022-02-22)
63
-
64
-
65
- ### Bug Fixes
66
-
67
- * auto complete input bug ([cdb9220](https://github.com/MapColonies/shared-components/commit/cdb9220177e81087b90eacdf05a5f80b04e2ed67))
68
- * autocomplete prettier ([eff39e8](https://github.com/MapColonies/shared-components/commit/eff39e8e469d6d9ca831be3718204ad58e77d850))
69
-
70
-
71
-
72
-
73
-
74
- ## [3.10.2](https://github.com/MapColonies/shared-components/compare/@map-colonies/react-components@3.10.1...@map-colonies/react-components@3.10.2) (2022-02-20)
75
-
76
-
77
- ### Bug Fixes
78
-
79
- * action data and rtl ([1903ebf](https://github.com/MapColonies/shared-components/commit/1903ebfa600fc5d024bb2df107f5891d5c2160f3))
80
- * default formatters ([ae7913b](https://github.com/MapColonies/shared-components/commit/ae7913b73af0a5357aa2ef6194724dc93f2b238f))
81
- * fix ([c1379ad](https://github.com/MapColonies/shared-components/commit/c1379ad0513bb64f67745087719c38ccc8e9bd7a))
82
- * intl shape ([55b2624](https://github.com/MapColonies/shared-components/commit/55b2624393b28f1b74c24fc2064a0fb14e2b447d))
83
- * prettier ([2ca12de](https://github.com/MapColonies/shared-components/commit/2ca12deece268225c1cf851a791dc3e7ec7411ef))
84
- * prettier ([0a22d00](https://github.com/MapColonies/shared-components/commit/0a22d00df8da286792cc86a24519bce59388dfdd))
85
- * stories hot reload and circular deps ([#117](https://github.com/MapColonies/shared-components/issues/117)) ([284abff](https://github.com/MapColonies/shared-components/commit/284abff1ed4a192e5a7f66d7a0f6e9dd5e2e028b))
86
- * use native formatters ([ad577cf](https://github.com/MapColonies/shared-components/commit/ad577cf8f890b965ebac3785281f285e99e1c2df))
87
-
88
-
89
-
90
-
91
-
92
- ## [3.10.1](https://github.com/MapColonies/shared-components/compare/@map-colonies/react-components@3.10.0...@map-colonies/react-components@3.10.1) (2022-02-10)
93
-
94
-
95
- ### Bug Fixes
96
-
97
- * file picker ref formatters ([#116](https://github.com/MapColonies/shared-components/issues/116)) ([1432b6a](https://github.com/MapColonies/shared-components/commit/1432b6a65290d0e170d9e956eddabbe1d909e744))
98
-
99
-
100
-
101
-
102
-
103
- # [3.10.0](https://github.com/MapColonies/shared-components/compare/@map-colonies/react-components@3.8.0...@map-colonies/react-components@3.10.0) (2022-02-09)
104
-
105
-
106
- ### Bug Fixes
107
-
108
- * height tool_ pin points from csv ([#114](https://github.com/MapColonies/shared-components/issues/114)) ([3af82b8](https://github.com/MapColonies/shared-components/commit/3af82b88226ea3bd19646e87b9d1add0b13e81e6))
109
-
110
-
111
- ### Features
112
-
113
- * file picker ([#113](https://github.com/MapColonies/shared-components/issues/113)) ([829d275](https://github.com/MapColonies/shared-components/commit/829d275e01a3417912fe82036cabae3a5247cc24))
114
-
115
-
116
-
117
- ## 3.8.1 (2022-01-13)
118
-
119
-
120
- ### Features
121
-
122
- * dem quantized mesh ([#112](https://github.com/MapColonies/shared-components/issues/112)) ([3cd2010](https://github.com/MapColonies/shared-components/commit/3cd20105a63f2335a5dd3b178eb9d38f9690022c))
123
-
124
-
125
-
126
-
127
-
128
- # [3.8.0](https://github.com/MapColonies/shared-components/compare/@map-colonies/react-components@3.7.4...@map-colonies/react-components@3.8.0) (2021-11-01)
129
-
130
-
131
- ### Features
132
-
133
- * date time picker component ([#109](https://github.com/MapColonies/shared-components/issues/109)) ([d2d6312](https://github.com/MapColonies/shared-components/commit/d2d631288324c6212301fbecff1088c179614664))
134
-
135
-
136
-
137
-
138
-
139
- ## [3.7.4](https://github.com/MapColonies/shared-components/compare/@map-colonies/react-components@3.7.3...@map-colonies/react-components@3.7.4) (2021-10-25)
6
+ ## [3.12.3](https://github.com/MapColonies/shared-components/compare/@map-colonies/react-components@3.12.2...@map-colonies/react-components@3.12.3) (2022-08-25)
140
7
 
141
8
  **Note:** Version bump only for package @map-colonies/react-components
142
9
 
@@ -144,106 +11,295 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
144
11
 
145
12
 
146
13
 
147
- ## [3.7.3](https://github.com/MapColonies/shared-components/compare/@map-colonies/react-components@3.7.2...@map-colonies/react-components@3.7.3) (2021-10-07)
148
-
149
-
150
- ### Bug Fixes
151
-
152
- * imagery context menu right click ([#107](https://github.com/MapColonies/shared-components/issues/107)) ([9103ce6](https://github.com/MapColonies/shared-components/commit/9103ce6ea6cd3681680d2899b7d4bc9ed00e2b82))
153
-
154
-
155
-
156
-
157
-
158
- ## [3.7.2](https://github.com/MapColonies/shared-components/compare/@map-colonies/react-components@3.7.0...@map-colonies/react-components@3.7.2) (2021-10-06)
159
-
160
-
161
- ### Bug Fixes
162
-
163
- * handle right click only if context menu exist ([#106](https://github.com/MapColonies/shared-components/issues/106)) ([2618e51](https://github.com/MapColonies/shared-components/commit/2618e51b0304dc55d28e99791ef07c2e555f6a24))
164
-
165
-
166
-
167
-
168
-
169
- ## [3.7.1](https://github.com/MapColonies/shared-components/compare/@map-colonies/react-components@3.7.0...@map-colonies/react-components@3.7.1) (2021-10-06)
170
-
171
-
172
- ### Bug Fixes
173
-
174
- * handle right click only if context menu exist ([#106](https://github.com/MapColonies/shared-components/issues/106)) ([2618e51](https://github.com/MapColonies/shared-components/commit/2618e51b0304dc55d28e99791ef07c2e555f6a24))
175
-
176
-
177
-
178
-
179
-
180
- # [3.7.0](https://github.com/MapColonies/shared-components/compare/@map-colonies/react-components@3.6.5...@map-colonies/react-components@3.7.0) (2021-10-04)
181
-
182
-
183
- ### Features
184
-
185
- * imagery context menu ([#105](https://github.com/MapColonies/shared-components/issues/105)) ([79be4fe](https://github.com/MapColonies/shared-components/commit/79be4fe1aae2f961e98493dd8544c350369efb72))
186
-
187
-
188
-
189
-
190
-
191
- ## [3.6.5](https://github.com/MapColonies/shared-components/compare/@map-colonies/react-components@3.6.1...@map-colonies/react-components@3.6.5) (2021-08-09)
192
-
193
-
194
- ### Bug Fixes
195
-
196
- * remove not based method added ([#103](https://github.com/MapColonies/shared-components/issues/103)) ([a84c3bf](https://github.com/MapColonies/shared-components/commit/a84c3bfbad42aedc2fe5831fe1f94dbb057d9282))
197
-
198
-
199
-
200
-
201
-
202
- ## [3.6.1](https://github.com/MapColonies/shared-components/compare/@map-colonies/react-components@3.6.0...@map-colonies/react-components@3.6.1) (2021-08-03)
203
-
204
-
205
- ### Bug Fixes
206
-
207
- * layaers manager functionality added and story ([#102](https://github.com/MapColonies/shared-components/issues/102)) ([012d9b0](https://github.com/MapColonies/shared-components/commit/012d9b02dd594f4d02baf6a9728767dbdb87bec8))
208
-
209
-
210
-
211
-
212
-
213
- # [3.6.0](https://github.com/MapColonies/shared-components/compare/@map-colonies/react-components@3.3.6...@map-colonies/react-components@3.6.0) (2021-08-02)
214
-
215
-
216
- ### Bug Fixes
217
-
218
- * layers manager raise and lower ([#101](https://github.com/MapColonies/shared-components/issues/101)) ([b7dbef4](https://github.com/MapColonies/shared-components/commit/b7dbef48846a7ee6a7e338dfaf85bd017af209d1))
219
- * **themeing:** theming for dialog and map tools ([#99](https://github.com/MapColonies/shared-components/issues/99)) ([041ea76](https://github.com/MapColonies/shared-components/commit/041ea769815cee5cf8b0c18ac55ea107e665d99c))
220
-
221
-
222
- ### Features
223
-
224
- * **cesium-map:** polylined drawing rpimitive ([#100](https://github.com/MapColonies/shared-components/issues/100)) ([5ac163b](https://github.com/MapColonies/shared-components/commit/5ac163b84c6cffa5b731f0d47c5fd98f7b8bd2b7))
225
- * **map-settings:** custom map settings dialog (basemaps, scenemodes) ([#98](https://github.com/MapColonies/shared-components/issues/98)) ([c0d5931](https://github.com/MapColonies/shared-components/commit/c0d5931979c94ccca66ec01fbed990472d965652))
226
-
227
-
228
-
229
-
230
-
231
- # [3.4.0](https://github.com/MapColonies/shared-components/compare/@map-colonies/react-components@3.3.6...@map-colonies/react-components@3.4.0) (2021-05-03)
232
-
233
-
234
- ### Bug Fixes
235
-
236
- * **themeing:** theming for dialog and map tools ([#99](https://github.com/MapColonies/shared-components/issues/99)) ([041ea76](https://github.com/MapColonies/shared-components/commit/041ea769815cee5cf8b0c18ac55ea107e665d99c))
237
-
238
-
239
- ### Features
240
-
241
- * **map-settings:** custom map settings dialog (basemaps, scenemodes) ([#98](https://github.com/MapColonies/shared-components/issues/98)) ([c0d5931](https://github.com/MapColonies/shared-components/commit/c0d5931979c94ccca66ec01fbed990472d965652))
242
-
243
-
244
-
245
-
246
-
14
+
15
+ ## [3.12.2](https://github.com/MapColonies/shared-components/compare/@map-colonies/react-components@3.12.1...@map-colonies/react-components@3.12.2) (2022-08-14)
16
+
17
+ **Note:** Version bump only for package @map-colonies/react-components
18
+
19
+
20
+
21
+
22
+
23
+ ## [3.12.1](https://github.com/MapColonies/shared-components/compare/@map-colonies/react-components@3.12.0...@map-colonies/react-components@3.12.1) (2022-08-14)
24
+
25
+
26
+ ### Bug Fixes
27
+
28
+ * cesium abstraction ([0c24ed0](https://github.com/MapColonies/shared-components/commit/0c24ed044ce21a323789d90124efc59112d2e3a2))
29
+ * fix ([27b85b2](https://github.com/MapColonies/shared-components/commit/27b85b249e50d443f4808c8c21f1805f18d48518))
30
+ * prettier ([5c0ceb7](https://github.com/MapColonies/shared-components/commit/5c0ceb71a096bd78d7cd99a8efb8e3efa1da745c))
31
+
32
+
33
+
34
+
35
+
36
+ # [3.12.0](https://github.com/MapColonies/shared-components/compare/@map-colonies/react-components@3.11.0...@map-colonies/react-components@3.12.0) (2022-08-04)
37
+
38
+
39
+ ### Bug Fixes
40
+
41
+ * legend sidebar ([cdca0cc](https://github.com/MapColonies/shared-components/commit/cdca0ccd1f8ee21a575557cc6c13903beaed8ca2))
42
+ * legends style tweaks ([eec1f08](https://github.com/MapColonies/shared-components/commit/eec1f083fa22c818cb55ab3e4d947b61e428f215))
43
+ * lint and prettier ([68bf8f6](https://github.com/MapColonies/shared-components/commit/68bf8f64321043ee1d00d46c08f834698bf18276))
44
+ * map legends final tweaks ([9b00733](https://github.com/MapColonies/shared-components/commit/9b00733594716a0d19eff17249cd2280ca8704a3))
45
+ * map legends fine tuning ([de59b02](https://github.com/MapColonies/shared-components/commit/de59b02a657000e24f962dfc0c405a73f8d4ba11))
46
+ * map legends props to single prop ([5fafca0](https://github.com/MapColonies/shared-components/commit/5fafca0705d1bbee29e80121c09c19fd9c2a959f))
47
+ * map legends styles ([1355962](https://github.com/MapColonies/shared-components/commit/135596209224f52c11d28a2b85f2b470c1980936))
48
+ * pr rejects and prettier ([2fbeb20](https://github.com/MapColonies/shared-components/commit/2fbeb206e2f86589128d21e2ac14e5a57090d7f2))
49
+ * prettier ([f12096a](https://github.com/MapColonies/shared-components/commit/f12096a9839beddad1553ade17c338a07414d882))
50
+ * X btn wrong place ([9ff0ca0](https://github.com/MapColonies/shared-components/commit/9ff0ca0ef928db12d47b1bd428967feadb411d10))
51
+
52
+
53
+ ### Features
54
+
55
+ * add sidebar for the cesium viewer ([81dfe0b](https://github.com/MapColonies/shared-components/commit/81dfe0bdd38d7dcaa131e7b5e24000767b794d81))
56
+ * implement legends sidebar and create story ([60e9b58](https://github.com/MapColonies/shared-components/commit/60e9b587aadb866a9ce14d6508c39239fdfd03fb))
57
+
58
+
59
+
60
+
61
+
62
+ # [3.11.0](https://github.com/MapColonies/shared-components/compare/@map-colonies/react-components@3.10.5...@map-colonies/react-components@3.11.0) (2022-05-02)
63
+
64
+
65
+ ### Bug Fixes
66
+
67
+ * 3d story ([ee59db0](https://github.com/MapColonies/shared-components/commit/ee59db00f627b709368f830a3c7cf30dc2cf0525))
68
+ * 3d with update ([86fd98b](https://github.com/MapColonies/shared-components/commit/86fd98b59d137f3bfddc351a98cefcef7b6fc19a))
69
+ * 3d with update ([c554c57](https://github.com/MapColonies/shared-components/commit/c554c57ba85c68e3a5e53c128714d86733db10d0))
70
+ * bounding volume minimum height ([87e0e81](https://github.com/MapColonies/shared-components/commit/87e0e8114f088a4997723f91760f80250e67f629))
71
+ * build errors ([57bc0fa](https://github.com/MapColonies/shared-components/commit/57bc0fac22aebf865112d3c26d1bf46ee57d4dad))
72
+ * fix ([6999626](https://github.com/MapColonies/shared-components/commit/69996260b96379813b051104204568b190d46eaa))
73
+ * fix ([d958564](https://github.com/MapColonies/shared-components/commit/d958564cf178e7258fcdf2c21a1915b0e442c52c))
74
+ * fix ([db76412](https://github.com/MapColonies/shared-components/commit/db7641201cde062e360131a73081867b4db854ba))
75
+ * fix ([16c4499](https://github.com/MapColonies/shared-components/commit/16c4499a33c1c5d0bd34cd33958d5381e05ac3b6))
76
+ * linting ([ca5f578](https://github.com/MapColonies/shared-components/commit/ca5f578f0e2f3422213e4f7e4cfa1abdd05576b8))
77
+ * prettier ([f516da2](https://github.com/MapColonies/shared-components/commit/f516da2ce8f1b59d18ace5cafe6e12642046e19a))
78
+ * prettier ([226ca71](https://github.com/MapColonies/shared-components/commit/226ca71c110abf50c89a36125c33f3e66cf195dc))
79
+ * prettier ([6b1c751](https://github.com/MapColonies/shared-components/commit/6b1c7511355e35b199a5b127668df93e9c393c3b))
80
+ * prettier ([c4e6c13](https://github.com/MapColonies/shared-components/commit/c4e6c13ebc77774b8764f582f710777e316b586b))
81
+ * prettier ([a6613d7](https://github.com/MapColonies/shared-components/commit/a6613d7292aa8eb0b00f83d0885e61dfa4860ca0))
82
+ * revert ([44c6a9b](https://github.com/MapColonies/shared-components/commit/44c6a9b6a34f2f8a6281f26c90ddfe3583832100))
83
+ * story ([c348df4](https://github.com/MapColonies/shared-components/commit/c348df4cdf771483e5e5ade78bac3e734dd4965d))
84
+ * unused ([bf696fe](https://github.com/MapColonies/shared-components/commit/bf696fe20b7e20223ef9f05962d9eecbb2760d06))
85
+ * zoom to ([e78def4](https://github.com/MapColonies/shared-components/commit/e78def47940ab569691677ee71f6ac41a4c3f1bd))
86
+
87
+
88
+ ### Features
89
+
90
+ * update tileset ([17ed73c](https://github.com/MapColonies/shared-components/commit/17ed73c43ba41ad54e70e6c17d152eeb38887009))
91
+
92
+
93
+
94
+
95
+
96
+ ## [3.10.5](https://github.com/MapColonies/shared-components/compare/@map-colonies/react-components@3.10.4...@map-colonies/react-components@3.10.5) (2022-03-29)
97
+
98
+
99
+ ### Bug Fixes
100
+
101
+ * folderchain alignment ([#125](https://github.com/MapColonies/shared-components/issues/125)) ([01c3670](https://github.com/MapColonies/shared-components/commit/01c3670567b67b81ad98a10705eb1a8a0bc74206))
102
+
103
+
104
+
105
+
106
+
107
+ ## [3.10.4](https://github.com/MapColonies/shared-components/compare/@map-colonies/react-components@3.10.3...@map-colonies/react-components@3.10.4) (2022-03-02)
108
+
109
+
110
+ ### Bug Fixes
111
+
112
+ * for poi ([#122](https://github.com/MapColonies/shared-components/issues/122)) ([ef849eb](https://github.com/MapColonies/shared-components/commit/ef849eb488a19a072e32de7af9d3038bc7e22656))
113
+
114
+
115
+
116
+
117
+
118
+ ## [3.10.3](https://github.com/MapColonies/shared-components/compare/@map-colonies/react-components@3.10.2...@map-colonies/react-components@3.10.3) (2022-02-22)
119
+
120
+
121
+ ### Bug Fixes
122
+
123
+ * auto complete input bug ([cdb9220](https://github.com/MapColonies/shared-components/commit/cdb9220177e81087b90eacdf05a5f80b04e2ed67))
124
+ * autocomplete prettier ([eff39e8](https://github.com/MapColonies/shared-components/commit/eff39e8e469d6d9ca831be3718204ad58e77d850))
125
+
126
+
127
+
128
+
129
+
130
+ ## [3.10.2](https://github.com/MapColonies/shared-components/compare/@map-colonies/react-components@3.10.1...@map-colonies/react-components@3.10.2) (2022-02-20)
131
+
132
+
133
+ ### Bug Fixes
134
+
135
+ * action data and rtl ([1903ebf](https://github.com/MapColonies/shared-components/commit/1903ebfa600fc5d024bb2df107f5891d5c2160f3))
136
+ * default formatters ([ae7913b](https://github.com/MapColonies/shared-components/commit/ae7913b73af0a5357aa2ef6194724dc93f2b238f))
137
+ * fix ([c1379ad](https://github.com/MapColonies/shared-components/commit/c1379ad0513bb64f67745087719c38ccc8e9bd7a))
138
+ * intl shape ([55b2624](https://github.com/MapColonies/shared-components/commit/55b2624393b28f1b74c24fc2064a0fb14e2b447d))
139
+ * prettier ([2ca12de](https://github.com/MapColonies/shared-components/commit/2ca12deece268225c1cf851a791dc3e7ec7411ef))
140
+ * prettier ([0a22d00](https://github.com/MapColonies/shared-components/commit/0a22d00df8da286792cc86a24519bce59388dfdd))
141
+ * stories hot reload and circular deps ([#117](https://github.com/MapColonies/shared-components/issues/117)) ([284abff](https://github.com/MapColonies/shared-components/commit/284abff1ed4a192e5a7f66d7a0f6e9dd5e2e028b))
142
+ * use native formatters ([ad577cf](https://github.com/MapColonies/shared-components/commit/ad577cf8f890b965ebac3785281f285e99e1c2df))
143
+
144
+
145
+
146
+
147
+
148
+ ## [3.10.1](https://github.com/MapColonies/shared-components/compare/@map-colonies/react-components@3.10.0...@map-colonies/react-components@3.10.1) (2022-02-10)
149
+
150
+
151
+ ### Bug Fixes
152
+
153
+ * file picker ref formatters ([#116](https://github.com/MapColonies/shared-components/issues/116)) ([1432b6a](https://github.com/MapColonies/shared-components/commit/1432b6a65290d0e170d9e956eddabbe1d909e744))
154
+
155
+
156
+
157
+
158
+
159
+ # [3.10.0](https://github.com/MapColonies/shared-components/compare/@map-colonies/react-components@3.8.0...@map-colonies/react-components@3.10.0) (2022-02-09)
160
+
161
+
162
+ ### Bug Fixes
163
+
164
+ * height tool_ pin points from csv ([#114](https://github.com/MapColonies/shared-components/issues/114)) ([3af82b8](https://github.com/MapColonies/shared-components/commit/3af82b88226ea3bd19646e87b9d1add0b13e81e6))
165
+
166
+
167
+ ### Features
168
+
169
+ * file picker ([#113](https://github.com/MapColonies/shared-components/issues/113)) ([829d275](https://github.com/MapColonies/shared-components/commit/829d275e01a3417912fe82036cabae3a5247cc24))
170
+
171
+
172
+
173
+ ## 3.8.1 (2022-01-13)
174
+
175
+
176
+ ### Features
177
+
178
+ * dem quantized mesh ([#112](https://github.com/MapColonies/shared-components/issues/112)) ([3cd2010](https://github.com/MapColonies/shared-components/commit/3cd20105a63f2335a5dd3b178eb9d38f9690022c))
179
+
180
+
181
+
182
+
183
+
184
+ # [3.8.0](https://github.com/MapColonies/shared-components/compare/@map-colonies/react-components@3.7.4...@map-colonies/react-components@3.8.0) (2021-11-01)
185
+
186
+
187
+ ### Features
188
+
189
+ * date time picker component ([#109](https://github.com/MapColonies/shared-components/issues/109)) ([d2d6312](https://github.com/MapColonies/shared-components/commit/d2d631288324c6212301fbecff1088c179614664))
190
+
191
+
192
+
193
+
194
+
195
+ ## [3.7.4](https://github.com/MapColonies/shared-components/compare/@map-colonies/react-components@3.7.3...@map-colonies/react-components@3.7.4) (2021-10-25)
196
+
197
+ **Note:** Version bump only for package @map-colonies/react-components
198
+
199
+
200
+
201
+
202
+
203
+ ## [3.7.3](https://github.com/MapColonies/shared-components/compare/@map-colonies/react-components@3.7.2...@map-colonies/react-components@3.7.3) (2021-10-07)
204
+
205
+
206
+ ### Bug Fixes
207
+
208
+ * imagery context menu right click ([#107](https://github.com/MapColonies/shared-components/issues/107)) ([9103ce6](https://github.com/MapColonies/shared-components/commit/9103ce6ea6cd3681680d2899b7d4bc9ed00e2b82))
209
+
210
+
211
+
212
+
213
+
214
+ ## [3.7.2](https://github.com/MapColonies/shared-components/compare/@map-colonies/react-components@3.7.0...@map-colonies/react-components@3.7.2) (2021-10-06)
215
+
216
+
217
+ ### Bug Fixes
218
+
219
+ * handle right click only if context menu exist ([#106](https://github.com/MapColonies/shared-components/issues/106)) ([2618e51](https://github.com/MapColonies/shared-components/commit/2618e51b0304dc55d28e99791ef07c2e555f6a24))
220
+
221
+
222
+
223
+
224
+
225
+ ## [3.7.1](https://github.com/MapColonies/shared-components/compare/@map-colonies/react-components@3.7.0...@map-colonies/react-components@3.7.1) (2021-10-06)
226
+
227
+
228
+ ### Bug Fixes
229
+
230
+ * handle right click only if context menu exist ([#106](https://github.com/MapColonies/shared-components/issues/106)) ([2618e51](https://github.com/MapColonies/shared-components/commit/2618e51b0304dc55d28e99791ef07c2e555f6a24))
231
+
232
+
233
+
234
+
235
+
236
+ # [3.7.0](https://github.com/MapColonies/shared-components/compare/@map-colonies/react-components@3.6.5...@map-colonies/react-components@3.7.0) (2021-10-04)
237
+
238
+
239
+ ### Features
240
+
241
+ * imagery context menu ([#105](https://github.com/MapColonies/shared-components/issues/105)) ([79be4fe](https://github.com/MapColonies/shared-components/commit/79be4fe1aae2f961e98493dd8544c350369efb72))
242
+
243
+
244
+
245
+
246
+
247
+ ## [3.6.5](https://github.com/MapColonies/shared-components/compare/@map-colonies/react-components@3.6.1...@map-colonies/react-components@3.6.5) (2021-08-09)
248
+
249
+
250
+ ### Bug Fixes
251
+
252
+ * remove not based method added ([#103](https://github.com/MapColonies/shared-components/issues/103)) ([a84c3bf](https://github.com/MapColonies/shared-components/commit/a84c3bfbad42aedc2fe5831fe1f94dbb057d9282))
253
+
254
+
255
+
256
+
257
+
258
+ ## [3.6.1](https://github.com/MapColonies/shared-components/compare/@map-colonies/react-components@3.6.0...@map-colonies/react-components@3.6.1) (2021-08-03)
259
+
260
+
261
+ ### Bug Fixes
262
+
263
+ * layaers manager functionality added and story ([#102](https://github.com/MapColonies/shared-components/issues/102)) ([012d9b0](https://github.com/MapColonies/shared-components/commit/012d9b02dd594f4d02baf6a9728767dbdb87bec8))
264
+
265
+
266
+
267
+
268
+
269
+ # [3.6.0](https://github.com/MapColonies/shared-components/compare/@map-colonies/react-components@3.3.6...@map-colonies/react-components@3.6.0) (2021-08-02)
270
+
271
+
272
+ ### Bug Fixes
273
+
274
+ * layers manager raise and lower ([#101](https://github.com/MapColonies/shared-components/issues/101)) ([b7dbef4](https://github.com/MapColonies/shared-components/commit/b7dbef48846a7ee6a7e338dfaf85bd017af209d1))
275
+ * **themeing:** theming for dialog and map tools ([#99](https://github.com/MapColonies/shared-components/issues/99)) ([041ea76](https://github.com/MapColonies/shared-components/commit/041ea769815cee5cf8b0c18ac55ea107e665d99c))
276
+
277
+
278
+ ### Features
279
+
280
+ * **cesium-map:** polylined drawing rpimitive ([#100](https://github.com/MapColonies/shared-components/issues/100)) ([5ac163b](https://github.com/MapColonies/shared-components/commit/5ac163b84c6cffa5b731f0d47c5fd98f7b8bd2b7))
281
+ * **map-settings:** custom map settings dialog (basemaps, scenemodes) ([#98](https://github.com/MapColonies/shared-components/issues/98)) ([c0d5931](https://github.com/MapColonies/shared-components/commit/c0d5931979c94ccca66ec01fbed990472d965652))
282
+
283
+
284
+
285
+
286
+
287
+ # [3.4.0](https://github.com/MapColonies/shared-components/compare/@map-colonies/react-components@3.3.6...@map-colonies/react-components@3.4.0) (2021-05-03)
288
+
289
+
290
+ ### Bug Fixes
291
+
292
+ * **themeing:** theming for dialog and map tools ([#99](https://github.com/MapColonies/shared-components/issues/99)) ([041ea76](https://github.com/MapColonies/shared-components/commit/041ea769815cee5cf8b0c18ac55ea107e665d99c))
293
+
294
+
295
+ ### Features
296
+
297
+ * **map-settings:** custom map settings dialog (basemaps, scenemodes) ([#98](https://github.com/MapColonies/shared-components/issues/98)) ([c0d5931](https://github.com/MapColonies/shared-components/commit/c0d5931979c94ccca66ec01fbed990472d965652))
298
+
299
+
300
+
301
+
302
+
247
303
 
248
304
  ## [3.3.6](https://github.com/MapColonies/shared-components/compare/@map-colonies/react-components@3.3.5...@map-colonies/react-components@3.3.6) (2021-01-11)
249
305
 
@@ -5,3 +5,4 @@ export * from '../utils/projections';
5
5
  export * from './entities';
6
6
  export * from './data-sources';
7
7
  export * from './proxied.types';
8
+ export * from './layers-manager';
@@ -17,3 +17,4 @@ __exportStar(require("../utils/projections"), exports);
17
17
  __exportStar(require("./entities"), exports);
18
18
  __exportStar(require("./data-sources"), exports);
19
19
  __exportStar(require("./proxied.types"), exports);
20
+ __exportStar(require("./layers-manager"), exports);
@@ -50,14 +50,18 @@ var CesiumImageryLayer = function (props) {
50
50
  var meta = props.meta, restProps = __rest(props, ["meta"]);
51
51
  var mapViewer = map_1.useCesiumMap();
52
52
  react_1.useLayoutEffect(function () {
53
- var _a;
54
- (_a = mapViewer.layersManager) === null || _a === void 0 ? void 0 : _a.addMetaToLayer(meta, function (layer, idx) {
53
+ var _a, _b;
54
+ (_a = mapViewer.layersManager) === null || _a === void 0 ? void 0 : _a.addMetaToLayer(meta,
55
+ /* eslint-disable */
56
+ (_b = meta.searchLayerPredicate) !== null && _b !== void 0 ? _b : (function (layer, idx) {
55
57
  if (meta !== undefined) {
56
- // eslint-disable-next-line
57
- return layer._imageryProvider._resource._url === meta.url;
58
+ return (layer._imageryProvider._resource._url ===
59
+ meta.options.url);
58
60
  }
59
61
  return false;
60
- });
62
+ })
63
+ /* eslint-enable */
64
+ );
61
65
  }, [meta, mapViewer]);
62
66
  return react_1.default.createElement(resium_1.ImageryLayer, __assign({}, restProps));
63
67
  };
@@ -1,7 +1,8 @@
1
- import { ImageryLayer } from 'cesium';
1
+ import { ImageryLayer, Event } from 'cesium';
2
2
  import { RCesiumOSMLayerOptions, RCesiumWMSLayerOptions, RCesiumWMTSLayerOptions, RCesiumXYZLayerOptions } from './layers';
3
3
  import { CesiumViewer } from './map';
4
4
  import { IBaseMap } from './settings/settings';
5
+ import { IMapLegend } from './map-legend';
5
6
  export interface ICesiumImageryLayer extends InstanceType<typeof ImageryLayer> {
6
7
  meta?: Record<string, unknown>;
7
8
  }
@@ -21,10 +22,16 @@ export interface IVectorLayer {
21
22
  zIndex: number;
22
23
  url: string;
23
24
  }
25
+ export declare type LegendExtractor = (layers: (any & {
26
+ meta: any;
27
+ })[]) => IMapLegend[];
24
28
  declare class LayerManager {
25
29
  mapViewer: CesiumViewer;
30
+ legendsList: IMapLegend[];
31
+ layerUpdated: Event;
26
32
  private readonly layers;
27
- constructor(mapViewer: CesiumViewer);
33
+ private readonly legendsExtractor?;
34
+ constructor(mapViewer: CesiumViewer, legendsExtractor?: LegendExtractor, onLayersUpdate?: () => void);
28
35
  addMetaToLayer(meta: any, layerPredicate: (layer: ImageryLayer, idx: number) => boolean): void;
29
36
  setBaseMapLayers(baseMap: IBaseMap): void;
30
37
  addRasterLayer(layer: IRasterLayer, index: number, parentId: string): void;
@@ -40,6 +47,7 @@ declare class LayerManager {
40
47
  showAllNotBase(isShow: boolean): void;
41
48
  get(layerId: string): ICesiumImageryLayer | undefined;
42
49
  findLayerByPOI(x: number, y: number): ICesiumImageryLayer[] | undefined;
50
+ private setLegends;
43
51
  private getBaseLayersCount;
44
52
  private findLayerById;
45
53
  private updateLayersOrder;