@mapcomponents/react-maplibre 1.3.2 → 1.5.0-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 (171) hide show
  1. package/CHANGELOG.md +169 -38
  2. package/CODE_OF_CONDUCT.md +70 -70
  3. package/CONTRIBUTING.md +157 -149
  4. package/README.md +1 -1
  5. package/docs_md/anatomy_of_a_mapcomponent.md +34 -37
  6. package/eslint.config.cjs +3 -0
  7. package/package.json +193 -231
  8. package/project.json +21 -0
  9. package/tsconfig.lib.json +29 -0
  10. package/vite.config.ts +61 -0
  11. package/.eslintrc.cjs +0 -33
  12. package/dist/assets/index.cjs-Iqz0mZaU.css +0 -98
  13. package/dist/assets/index.esm-Iqz0mZaU.css +0 -98
  14. package/dist/index.cjs.js +0 -22057
  15. package/dist/index.cjs.js.map +0 -1
  16. package/dist/index.esm.js +0 -21937
  17. package/dist/index.esm.js.map +0 -1
  18. package/dist/src/components/MapLibreMap/MapLibreMap.d.ts +0 -34
  19. package/dist/src/components/MapLibreMap/lib/MapLibreGlWrapper.d.ts +0 -120
  20. package/dist/src/components/MlCenterPosition/MlCenterPosition.d.ts +0 -36
  21. package/dist/src/components/MlClientSearch/MlClientSearch.d.ts +0 -30
  22. package/dist/src/components/MlClientSearch/lib/SearchContext.d.ts +0 -13
  23. package/dist/src/components/MlClientSearch/lib/SearchForm.d.ts +0 -2
  24. package/dist/src/components/MlClientSearch/lib/createGeojsonFeature.d.ts +0 -4
  25. package/dist/src/components/MlComponentTemplate/MlComponentTemplate.d.ts +0 -18
  26. package/dist/src/components/MlComponentTemplate/MlComponentTemplate.stories_.d.ts +0 -14
  27. package/dist/src/components/MlCreatePdfButton/MlCreatePdfButton.d.ts +0 -22
  28. package/dist/src/components/MlCreatePdfForm/MlCreatePdfForm.d.ts +0 -13
  29. package/dist/src/components/MlCreatePdfForm/lib/PdfContext.d.ts +0 -8
  30. package/dist/src/components/MlCreatePdfForm/lib/PdfForm.d.ts +0 -25
  31. package/dist/src/components/MlCreatePdfForm/lib/PdfPreview.d.ts +0 -26
  32. package/dist/src/components/MlCreatePdfForm/lib/pdf.templates.d.ts +0 -11
  33. package/dist/src/components/MlCreatePngButton/MlCreatePngButton.d.ts +0 -22
  34. package/dist/src/components/MlFeatureEditor/MlFeatureEditor.d.ts +0 -5
  35. package/dist/src/components/MlFillExtrusionLayer/MlFillExtrusionLayer.d.ts +0 -62
  36. package/dist/src/components/MlFollowGps/MlFollowGps.d.ts +0 -81
  37. package/dist/src/components/MlGeoJsonLayer/MlGeoJsonLayer.d.ts +0 -98
  38. package/dist/src/components/MlGeoJsonLayer/story_utils/MlGeoJsonLayer.lineStyler.d.ts +0 -9
  39. package/dist/src/components/MlGeoJsonLayer/story_utils/MlGeoJsonLayer.polygonStyler.d.ts +0 -9
  40. package/dist/src/components/MlGeoJsonLayer/util/getDefaultLayerTypeByGeometry.d.ts +0 -4
  41. package/dist/src/components/MlGeoJsonLayer/util/getDefaultPaintPropsByType.d.ts +0 -5
  42. package/dist/src/components/MlGeojsonLayerWithSource/MlGeojsonLayerWithSource.d.ts +0 -23
  43. package/dist/src/components/MlGpxViewer/MlGpxViewer.d.ts +0 -31
  44. package/dist/src/components/MlGpxViewer/util/GeoJsonContext.d.ts +0 -10
  45. package/dist/src/components/MlGpxViewer/util/GeoJsonProvider.d.ts +0 -5
  46. package/dist/src/components/MlGpxViewer/util/Metadata.d.ts +0 -7
  47. package/dist/src/components/MlGpxViewer/util/MlGpxDemoLoader.d.ts +0 -11
  48. package/dist/src/components/MlGpxViewer/util/MlGpxViewerInstructions.d.ts +0 -4
  49. package/dist/src/components/MlImageMarkerLayer/MlImageMarkerLayer.d.ts +0 -39
  50. package/dist/src/components/MlLayer/MlLayer.d.ts +0 -33
  51. package/dist/src/components/MlLayerMagnify/MlLayerMagnify.d.ts +0 -33
  52. package/dist/src/components/MlLayerSwipe/MlLayerSwipe.d.ts +0 -26
  53. package/dist/src/components/MlLayerSwipe/assets/SwipeIcon.d.ts +0 -10
  54. package/dist/src/components/MlLayerSwitcher/MlLayerSwitcher.d.ts +0 -29
  55. package/dist/src/components/MlLayerSwitcher/components/LayerBox.d.ts +0 -10
  56. package/dist/src/components/MlMarker/MlMarker.d.ts +0 -29
  57. package/dist/src/components/MlMeasureTool/MlMeasureTool.d.ts +0 -37
  58. package/dist/src/components/MlMultiMeasureTool/MlMultiMeasureTool.d.ts +0 -55
  59. package/dist/src/components/MlNavigationCompass/MlNavigationCompass.d.ts +0 -33
  60. package/dist/src/components/MlNavigationCompass/assets/CompassBackground.d.ts +0 -9
  61. package/dist/src/components/MlNavigationCompass/assets/CompassNeedle.d.ts +0 -9
  62. package/dist/src/components/MlNavigationTools/MlNavigationTools.d.ts +0 -55
  63. package/dist/src/components/MlOgcApiFeatures/MlOgcApiFeatures.d.ts +0 -45
  64. package/dist/src/components/MlOrderLayers/MlOrderLayers.d.ts +0 -21
  65. package/dist/src/components/MlScaleReference/MlScaleReference.d.ts +0 -9
  66. package/dist/src/components/MlShareMapState/MlShareMapState.d.ts +0 -35
  67. package/dist/src/components/MlSketchTool/MlSketchTool.d.ts +0 -50
  68. package/dist/src/components/MlSpatialElevationProfile/MlSpatialElevationProfile.d.ts +0 -40
  69. package/dist/src/components/MlSpatialElevationProfile/util/getElevationData.d.ts +0 -13
  70. package/dist/src/components/MlTemporalController/MlTemporalController.d.ts +0 -181
  71. package/dist/src/components/MlTemporalController/utils/MlTemporalControllerLabels.d.ts +0 -20
  72. package/dist/src/components/MlTemporalController/utils/TemporalControllerPlayer.d.ts +0 -22
  73. package/dist/src/components/MlTemporalController/utils/paintPicker.d.ts +0 -59
  74. package/dist/src/components/MlTemporalController/utils/useFilterData.d.ts +0 -14
  75. package/dist/src/components/MlTerrainLayer/MlTerrainLayer.d.ts +0 -28
  76. package/dist/src/components/MlThreeJsLayer/MlThreeJsLayer.d.ts +0 -13
  77. package/dist/src/components/MlTransitionGeoJsonLayer/MlTransitionGeoJsonLayer.d.ts +0 -12
  78. package/dist/src/components/MlUseMapDebugger/MlUseMapDebugger.d.ts +0 -21
  79. package/dist/src/components/MlVectorTileLayer/MlVectorTileLayer.d.ts +0 -22
  80. package/dist/src/components/MlWmsFeatureInfoPopup/MlWmsFeatureInfoPopup.d.ts +0 -22
  81. package/dist/src/components/MlWmsLayer/MlWmsLayer.d.ts +0 -58
  82. package/dist/src/components/MlWmsLoader/MlWmsLoader.d.ts +0 -125
  83. package/dist/src/components/MlWmsLoader/utils/MlWmsLoaderInstructions.d.ts +0 -4
  84. package/dist/src/components/MlWmsLoader/utils/WMSLinks.d.ts +0 -8
  85. package/dist/src/contexts/LayerContext.d.ts +0 -59
  86. package/dist/src/contexts/MapContext.d.ts +0 -26
  87. package/dist/src/contexts/SimpleDataContext.d.ts +0 -4
  88. package/dist/src/contexts/SimpleDataProvider.d.ts +0 -12
  89. package/dist/src/decorators/EmptyMapDecorator.d.ts +0 -4
  90. package/dist/src/decorators/GeoJsonMapDecorator.d.ts +0 -4
  91. package/dist/src/decorators/LowZoomDecorator.d.ts +0 -4
  92. package/dist/src/decorators/MapContextDecorator.d.ts +0 -7
  93. package/dist/src/decorators/MapContextDecoratorHooks.d.ts +0 -4
  94. package/dist/src/decorators/MapContextReduxStoreDecorator.d.ts +0 -7
  95. package/dist/src/decorators/MultiMapContextDecorator.d.ts +0 -4
  96. package/dist/src/decorators/NoNavToolsDecorator.d.ts +0 -4
  97. package/dist/src/decorators/ThemeDecorator.d.ts +0 -5
  98. package/dist/src/hooks/useAddImage/useAddImage.d.ts +0 -20
  99. package/dist/src/hooks/useAddProtocol/useAddProtocol.d.ts +0 -23
  100. package/dist/src/hooks/useCameraFollowPath/useCameraFollowPath.d.ts +0 -35
  101. package/dist/src/hooks/useExportMap/index.d.ts +0 -11
  102. package/dist/src/hooks/useExportMap/lib.d.ts +0 -52
  103. package/dist/src/hooks/useFeatureEditor/useFeatureEditor.d.ts +0 -46
  104. package/dist/src/hooks/useFeatureEditor/utils/FeatureEditorStyle.d.ts +0 -116
  105. package/dist/src/hooks/useFitLayerBounds.d.ts +0 -8
  106. package/dist/src/hooks/useGpx/useGpx.d.ts +0 -26
  107. package/dist/src/hooks/useLayer.d.ts +0 -36
  108. package/dist/src/hooks/useLayerContext.d.ts +0 -2
  109. package/dist/src/hooks/useLayerFilter/useLayerFilter.d.ts +0 -8
  110. package/dist/src/hooks/useLayerHoverPopup/LayerHoverPopup.d.ts +0 -24
  111. package/dist/src/hooks/useMap.d.ts +0 -14
  112. package/dist/src/hooks/useMapState.d.ts +0 -37
  113. package/dist/src/hooks/useSource.d.ts +0 -17
  114. package/dist/src/hooks/useWms.d.ts +0 -26
  115. package/dist/src/index.d.ts +0 -126
  116. package/dist/src/omt_styles/bright.d.ts +0 -2495
  117. package/dist/src/omt_styles/config.d.ts +0 -7
  118. package/dist/src/omt_styles/gruvbox.d.ts +0 -2420
  119. package/dist/src/omt_styles/medieval_kingdom.d.ts +0 -2420
  120. package/dist/src/omt_styles/monokai.d.ts +0 -2420
  121. package/dist/src/omt_styles/oceanic_next.d.ts +0 -2420
  122. package/dist/src/omt_styles/solarized.d.ts +0 -2420
  123. package/dist/src/protocol_handlers/csv.d.ts +0 -8
  124. package/dist/src/protocol_handlers/mbtiles.d.ts +0 -74
  125. package/dist/src/protocol_handlers/osm.d.ts +0 -10
  126. package/dist/src/protocol_handlers/topojson.d.ts +0 -9
  127. package/dist/src/protocol_handlers/utils/getProtocolData.d.ts +0 -1
  128. package/dist/src/protocol_handlers/utils/protocolPathParser.d.ts +0 -7
  129. package/dist/src/protocol_handlers/xml.d.ts +0 -10
  130. package/dist/src/stores/map.store.d.ts +0 -105
  131. package/dist/src/ui_components/AddLayerButton/AddLayerButton.d.ts +0 -17
  132. package/dist/src/ui_components/AddLayerButton/AddLayerPopup.d.ts +0 -15
  133. package/dist/src/ui_components/AddLayerButton/LayerConfigForms/GeoJsonLayerForm.d.ts +0 -8
  134. package/dist/src/ui_components/AddLayerButton/LayerConfigForms/LayerTypeForm.d.ts +0 -10
  135. package/dist/src/ui_components/AddLayerButton/LayerConfigForms/MbtilesLayerForm.d.ts +0 -13
  136. package/dist/src/ui_components/AddLayerButton/LayerConfigForms/ProtocolHandlerLayerForm.d.ts +0 -10
  137. package/dist/src/ui_components/AddLayerButton/LayerConfigForms/WmsLayerForm.d.ts +0 -10
  138. package/dist/src/ui_components/AddLayerButton/LayerConfigForms/utils/CSVOptionsFomular.d.ts +0 -6
  139. package/dist/src/ui_components/AddLayerButton/LayerConfigForms/utils/MbtilesLayerPropFormular.d.ts +0 -7
  140. package/dist/src/ui_components/AddLayerButton/LayerConfigForms/utils/OsmOptionsFomular.d.ts +0 -6
  141. package/dist/src/ui_components/ColorPicker/ColorPicker.d.ts +0 -15
  142. package/dist/src/ui_components/ColorPicker/transformers.d.ts +0 -10
  143. package/dist/src/ui_components/ConfirmDialog.d.ts +0 -16
  144. package/dist/src/ui_components/DemoDescriptions.d.ts +0 -12
  145. package/dist/src/ui_components/Dropzone.d.ts +0 -6
  146. package/dist/src/ui_components/ImageLoader.d.ts +0 -10
  147. package/dist/src/ui_components/LayerList/LayerList.d.ts +0 -7
  148. package/dist/src/ui_components/LayerList/LayerListFolder.d.ts +0 -9
  149. package/dist/src/ui_components/LayerList/LayerListItem.d.ts +0 -26
  150. package/dist/src/ui_components/LayerList/LayerListItemFactory.d.ts +0 -18
  151. package/dist/src/ui_components/LayerList/util/LayerListItemVectorLayer.d.ts +0 -19
  152. package/dist/src/ui_components/LayerList/util/LayerPropertyForm.d.ts +0 -10
  153. package/dist/src/ui_components/LayerList/util/SortableContainer.d.ts +0 -7
  154. package/dist/src/ui_components/LayerList/util/input/ColorPicker.d.ts +0 -10
  155. package/dist/src/ui_components/LayerTree/LayerOnMap.d.ts +0 -7
  156. package/dist/src/ui_components/LayerTree/LayerTree.d.ts +0 -6
  157. package/dist/src/ui_components/LayerTree/LayerTreeListItem.d.ts +0 -18
  158. package/dist/src/ui_components/LayerTree/util/LayerPropertyForm.d.ts +0 -9
  159. package/dist/src/ui_components/LayerTree/util/input/ColorPicker.d.ts +0 -7
  160. package/dist/src/ui_components/LoadingOverlayContext.d.ts +0 -4
  161. package/dist/src/ui_components/MapcomponentsTheme.d.ts +0 -35
  162. package/dist/src/ui_components/SelectStyleButton/SelectStyleButton.d.ts +0 -20
  163. package/dist/src/ui_components/SelectStyleButton/SelectStylePopup.d.ts +0 -18
  164. package/dist/src/ui_components/Sidebar.d.ts +0 -13
  165. package/dist/src/ui_components/SpeedDial/SpeedDial.d.ts +0 -14
  166. package/dist/src/ui_components/TopToolbar.d.ts +0 -9
  167. package/dist/src/ui_components/UploadButton.d.ts +0 -8
  168. package/dist/src/util/BubbleForInstructions.d.ts +0 -16
  169. package/dist/src/util/Instructions.d.ts +0 -14
  170. package/eslint.config.mjs +0 -73
  171. package/rollup.config.mjs +0 -62
package/CHANGELOG.md CHANGED
@@ -1,41 +1,76 @@
1
1
  # Change Log
2
2
 
3
+ ## [v1.3.3]
4
+
5
+ ## Added
6
+
7
+ - ea97284: add new Feature [MlGlobeButton](https://mapcomponents.github.io/react-map-components-maplibre/?path=/docs/mapcomponents-mlglobebutton--docs)
8
+
9
+ ## Fixed
10
+
11
+ - 3cc7a83: fix useAddProtocol tcx view in storybook
12
+
13
+ ## Changed
14
+
15
+ - a72811f: upgrade storybook v.8 -> v.9
16
+ - e22698a: change meta.json (new catalogue system uses meta.json files)
17
+ - 3cc7a83: upgrade dependencies
18
+
19
+ ## Removed
20
+
21
+ - e22698a: remove stories.json (new catalogue system does not require it)
22
+
23
+ ## [v1.3.2]
24
+
25
+ ## Changed
26
+
27
+ - f2980b6: Design/navigation tool (#225)
28
+ - 570987e: Upgrade to maplibre to 5.6.0 (from 5.5.0)
29
+
3
30
  ## [v1.3.1]
4
31
 
5
32
  ## Changed
33
+
6
34
  - 3f6b50c: Upgrade to maplibre to 5.5.0 (from 5.3.0) (#223)
7
35
 
8
36
  ## [v1.3.0]
9
37
 
10
38
  ## Changed
39
+
11
40
  - UI design/ogc in MlSketchTool and MlOgcApiFeatures
12
41
 
13
42
  ## Fixed
43
+
14
44
  - fix MlMarker and improve performance by using a maplibre marker instead of an absolute positioned HTML element
15
45
  - fix Storybook demos: MlLayerSwitcher, useCameraFollowPath, MlVectorTileLayer, MlPdfForm, MlThreeJsLayer, MlNavigationCompass
16
46
 
17
47
  ## Removed
48
+
18
49
  - remove MlComponentTemplate from storybook
19
50
 
20
51
  ## [v1.2.0]
21
52
 
22
53
  ## Changed
54
+
23
55
  - update React v18 -> v19
24
56
  - replace enzyme in jest tests with @testing-library/react
25
57
 
26
58
  ## [v1.1.0] - 2025-03-21
27
59
 
28
60
  ### Added
61
+
29
62
  - add dependabot
30
63
 
31
64
  ### Changed
65
+
32
66
  - update @dnd-kit and actions/setup-node@v2
33
- - update actions/cache@v2 -> v3
67
+ - update actions/cache@v2 -> v3
34
68
  - update dependencies
35
69
  - update publish workflow node version
36
70
  - change Design/ml measure tool
37
71
 
38
72
  ### Fixed
73
+
39
74
  - fix MlNavigation Zoom
40
75
 
41
76
  ## [v1.0.11] - 2025-02-14
@@ -70,32 +105,39 @@
70
105
  ## [v1.0.8] - 2024-09-16
71
106
 
72
107
  ### Fixed
108
+
73
109
  - 2862ad4: fix layerComponent identification in LayerListItem component (#185) …
74
110
 
75
111
  ## [v1.0.7] - 2024-07-30
76
112
 
77
113
  ### Changed
78
- - a6bc647: Upgrade to maplibre-gl 4.5 (sky enabled) (#178)
114
+
115
+ - a6bc647: Upgrade to maplibre-gl 4.5 (sky enabled) (#178)
79
116
 
80
117
  ### Fixed
118
+
81
119
  - dde2ef4: fix: incorrect property access (#181) …
82
120
 
83
121
  ## [v1.0.6] - 2024-07-30
84
122
 
85
123
  ### Fixed
124
+
86
125
  - 209ec04: Fix/use layerhook update on functions
87
126
 
88
127
  ## [v1.0.5] - 2024-06-21
89
128
 
90
129
  ### Changed
130
+
91
131
  - 78f7106: client search component MlClientSearch removed from release…
92
132
 
93
133
  ### Fixed
134
+
94
135
  - 78f7106: MlGeojsonlayer options.source bug
95
136
 
96
137
  ## [v1.0.4] - 2024-06-21
97
138
 
98
139
  ### Added
140
+
99
141
  - cab1848: add hints to buttons in catalogue stories
100
142
  - c621883: Feature/add layer and source events (#167) …
101
143
  - fcb3c75: add feature for additional pdf form info to MlPdfForm (#162) …
@@ -103,35 +145,39 @@
103
145
  - b0d2c32: add makeMapContextDecorators function to enable changing MapLibreMap options inside the sb-story (#165) …
104
146
 
105
147
  ### Changed
148
+
106
149
  - 20378bc: refactor geojson stories
107
150
  - af7e0c4, 6fa9a9b: update README.md
108
151
  - 8735ac8: redefiened MlLayer useLayerProps (#160) …
109
152
 
110
153
  ### Fixed
154
+
111
155
  - a48a8fa: fix MlImageMarkerLayer story
112
156
  - 3afbe7b: remove useLayer hook initializedRef anti-pattern and fix reinitializa… (#169) …
113
157
  - 14ef756: Fix/usesource stylechange (#168) …
114
158
 
115
-
116
159
  ## [v1.0.3] - 2024-02-22
117
160
 
118
161
  ### Fixed
119
- - a80667a: import missing maplibre-gl.css again in MapLibreMap component (#164)
120
162
 
163
+ - a80667a: import missing maplibre-gl.css again in MapLibreMap component (#164)
121
164
 
122
165
  ## [v1.0.1] - 2024-02-16
123
166
 
124
167
  ### Changed
168
+
125
169
  - 56eb640: move cypress dependencies to devDependencies
126
170
 
127
171
  ## [v1.0.1] - 2024-02-16
128
172
 
129
173
  ### Fixed
174
+
130
175
  - 5c37664: fix npm package
131
176
 
132
177
  ## [v1.0.0] - 2024-02-15 (broken)
133
178
 
134
179
  ### Changed
180
+
135
181
  - 5500815: upgrade to maplibre v4.0.0
136
182
  - 7629f88: upgrade storybook and all dependencies to the latest major release
137
183
 
@@ -167,11 +213,10 @@
167
213
 
168
214
  ### Changed
169
215
 
170
- - fe33641: add MlGeoJsonLayer labelProp defaults to enable simply passing the property name to props.labelProp to get labels.
216
+ - fe33641: add MlGeoJsonLayer labelProp defaults to enable simply passing the property name to props.labelProp to get labels.
171
217
  - fe33641: make label layer use the same source as the main layer.
172
218
  - fe33641: adjust MlGeoJsonLayer labelProp storybook demo to show the actual use of the property
173
219
 
174
-
175
220
  ## [v0.1.91] - 2024-01-16
176
221
 
177
222
  ### Fixed
@@ -193,51 +238,61 @@
193
238
  ## [v0.1.88] - 2023-12-22
194
239
 
195
240
  ### Added
241
+
196
242
  - e45ff67: add labelProp and labelOptions to MlGeojsonLayer
197
243
  - 5f7d750: add useAddProtocol handlers new formats (csv, osm, tcx, kml, gpx, Topojson)
198
244
 
199
245
  ### Fixed
246
+
200
247
  - a5b9d87: fix MlMeasureTool conversion
201
- - 90befdb: fix compass needle aligment
248
+ - 90befdb: fix compass needle aligment
202
249
  - ecb1c48: fix Storybook demos
203
250
 
204
251
  ## [v0.1.87] - 2023-10-25
205
252
 
206
253
  ### Changed
254
+
207
255
  - 27f1cb2: show measured value in m and in units if measured value is < 0.1km or 0.1mi
208
256
  - e606c7c: add catalogue specific demo storybook stories to be able to also provide more useful stories for developers not shown in the catalogue
209
257
 
210
258
  ### Added
259
+
211
260
  - cb3057f: make layerlist items in layerlistitemfactory sortable via drag & drop
212
261
 
213
262
  ## [v0.1.86] - 2023-09-13
214
263
 
215
264
  ### Fixed
265
+
216
266
  - 6882b80: fix: LayerList deleteIcon layout
217
267
  - e5ab361: demo bugfixes
218
268
 
219
269
  ### Changed
270
+
220
271
  - 7eb6dda: update xmldom ^0.6.0 to @xmldom/xmldom ^0.8.10 (#130) …
221
272
 
222
273
  ### Added
274
+
223
275
  - 1a221e3: add compNorth, compSouth, compStroke compass styling options to theme
224
276
  - 75de07d: add useAddImage hook + story
225
277
 
226
278
  ## [v0.1.85] - 2023-07-14
227
279
 
228
280
  ### Fixed
281
+
229
282
  - b0be9be: MlLayerSwipe resize window bug
230
- - b0be9be: MlSketchTools hovered Feature and mobile edition bugs
283
+ - b0be9be: MlSketchTools hovered Feature and mobile edition bugs
231
284
  - b0be9be: MlNavToools setpitch bug
232
285
  - b0be9be: Optimized stories
233
286
 
234
287
  ### Changed
235
- - b0be9be: mapbox-gl-draw from 1.4.0 to 1.4.2
288
+
289
+ - b0be9be: mapbox-gl-draw from 1.4.0 to 1.4.2
236
290
  - 5dd85be: code styling in LayerList, Compass and ColorPicker
237
291
 
238
292
  ### Added
293
+
239
294
  - b0be9be: added mlFollowgps accurancy fitBounds function
240
-
295
+
241
296
  ## [v0.1.84] - 2023-06-29
242
297
 
243
298
  ### Fixed
@@ -249,7 +304,7 @@
249
304
  ### Changed
250
305
 
251
306
  - d43a6e8: new Compass, NavTools and LayerList style
252
-
307
+
253
308
  ## [v0.1.82] - 2023-06-12
254
309
 
255
310
  ### Fixed
@@ -287,7 +342,6 @@
287
342
 
288
343
  - **Breaking:** 36be5ab: change MlFeatureEditor to useFeatureEditor hook, replace custom draw modes with default modes, draw mode strings require adjustment to the equivalent default mode (#110) …
289
344
 
290
-
291
345
  ### Fixed
292
346
 
293
347
  - c0c302a: Feature/fix wmsloader featureinfo (#111) …
@@ -296,18 +350,21 @@
296
350
  ## [v0.1.78] - 2023-04-28
297
351
 
298
352
  ### Added
353
+
299
354
  - cedf14b: add interval parameter to MlTemporalController
300
355
 
301
356
  ## [v0.1.77] - 2023-04-05
302
357
 
303
-
304
358
  ### Fixed
359
+
305
360
  - 92bac5c: remove deprecated @mui/styles dependency; fixes npm compatibility
306
361
 
307
362
  ### Added
363
+
308
364
  - 6512e26: add name prop to MlWmsLoader
309
365
 
310
366
  ### Changed
367
+
311
368
  - 6512e26: make AddLayerPopup initial config state configurable
312
369
  - 6512e26: make MlWmsLoader featureInfoActive controllable from parent component
313
370
  - 6512e26: make LayerListItemFactory control featureInfoActive to always reflect the state in LayerConfig
@@ -317,22 +374,28 @@
317
374
  ## [v0.1.76] - 2023-04-04
318
375
 
319
376
  ### Fixed
377
+
320
378
  - b879750: fix MlGeoJsonLayer layout option props spread order
321
379
 
322
380
  ### Added
381
+
323
382
  - b879750: add thumbnails to style select menu
324
383
 
325
384
  ## [v0.1.75] - 2023-04-04
326
385
 
327
386
  ### Fixed
387
+
328
388
  - 66c8df2: add missing LayerListItemFactory export
389
+
329
390
  ## [v0.1.74] - 2023-04-03
330
391
 
331
392
  ### Fixed
393
+
332
394
  - 6e68b8c: fix wmsLoader feature info
333
395
  - 3eac872: fix useLayer hook source attribution settings
334
396
 
335
397
  ### Added
398
+
336
399
  - 5a4c581: add component MlTemporalController
337
400
  - a85a5b1: add LayerListItemFactory
338
401
  - a85a5b1: add GeoJsonLayerForm
@@ -343,57 +406,70 @@
343
406
  - a85a5b1: add LayerContext and localStorage persistence to AddLayerButton story
344
407
 
345
408
  ### Changed
409
+
346
410
  - a85a5b1: change MlWmsLoader to return LayerListItem compatible list elements
347
411
 
348
412
  ## [v0.1.73] - 2023-03-11
349
413
 
350
414
  ### Fixed
415
+
351
416
  - 547db2c: Fix/layerlist visibility settings
352
417
 
353
418
  ## [v0.1.72] - 2023-03-08
354
419
 
355
420
  ### Fixed
421
+
356
422
  - Fix/maplibremap registration react 18 (#89) …
357
423
  - remove mui-color dependency
424
+
358
425
  ### Added
426
+
359
427
  - add new ColorPicker ui component
360
428
  - add MlWmsLayer support to LayerList component
361
429
 
362
430
  ## [v0.1.71] - 2023-03-04
363
431
 
364
432
  ### Fixed
433
+
365
434
  - e3178b5: fix Topbar sidebar defaults
366
435
 
367
436
  ## [v0.1.70] - 2023-03-03
368
437
 
369
438
  ### Fixed
439
+
370
440
  - 153b00d: fix react 18 compatibility issue. reset initializedRef if MapLibreMap is removed from react dom (#81) …
371
441
 
372
442
  ### Added
443
+
373
444
  - TopToolbar and Sidebar component exports
374
445
  - cdc4b5b: add createPng & downloadPng function to useExportMap hook promise
375
446
 
376
447
  ### Changed
448
+
377
449
  - cdc4b5b: adjust MlCreatePdfButton to use useExportMap hook
378
450
  - 6b6ce0c: update .npmignore to include all files & folders that aren't required in the module build
379
451
 
380
452
  ## [v0.1.69] - 2023-02-07
381
453
 
382
454
  ### Changed
455
+
383
456
  - read dependencies from package.dependencies
384
457
 
385
458
  ## [v0.1.68] - 2023-02-07
386
459
 
387
460
  ### Added
461
+
388
462
  - 3a2d4a0: add experimental LayerList component and stories
389
463
  - a0a01ff: add MUI theme & export getTheme function
390
-
464
+
391
465
  ### Changed
466
+
392
467
  - 3a7b87b: fix maplibre-gl imports remove ! in front of the module name (webpack exclude) to improve compatibility with dev environments using rollup
393
468
 
394
469
  ## [v0.1.67] - 2023-01-30
395
470
 
396
471
  ### Changed
472
+
397
473
  - upgrade storybook to 6.5.x
398
474
  - upgrade react to 18.2.0
399
475
  - upgrade typescript to 4.9.4
@@ -401,33 +477,39 @@
401
477
  - 474eb8c: migrate MlShareMapState, MlThreeJsLayer to typescript
402
478
 
403
479
  ### Added
480
+
404
481
  - add missing exports MapLibreGlWrapper, useLayerEvent, useGpx, useLayerHoverPopup, MlWmsLoader
405
482
  - add missing typescript definitions to MapLibreGlWrapper
406
483
 
407
484
  ## [v0.1.66] - 2023-01-23
408
485
 
409
486
  ### Added
487
+
410
488
  - add missing useLayerFilter export
411
489
 
412
490
  ## [v0.1.65] - 2023-01-23
413
491
 
414
492
  ### Fixed
415
- - 516a9ce: mlwmsloader capabilities layer parsing
493
+
494
+ - 516a9ce: mlwmsloader capabilities layer parsing
416
495
  - 516a9ce: mlwmsloader improve performance by rendering all selected layers using a single MlWmsLayer component
417
- - 516a9ce: mlwmsloader capabilities layer parsing
496
+ - 516a9ce: mlwmsloader capabilities layer parsing
418
497
 
419
498
  ### Added
499
+
420
500
  - a6f347f: add useLayerFilter hook
421
501
 
422
502
  ## [v0.1.64] - 2023-01-15
423
503
 
424
504
  ### Fixed
505
+
425
506
  - eb4f4ef: Improve MapLibreGlWrapper, MlGeoJsonLayer, useLayer typescript definitions
426
507
  - e4bf4a7: fix mui themes in storybook
427
- - 5c3cd9a: make MlWmsLayer urlParameters property dynamic
508
+ - 5c3cd9a: make MlWmsLayer urlParameters property dynamic
428
509
  - 5c3cd9a: make MlWmsLoader WMS utilization more efficient by using a single MlWmsLayer component to render all visible WMS layers
429
510
 
430
511
  ### Added
512
+
431
513
  - 5b9f424: add catalogue metadata json schema check github action
432
514
  - ae0aa98: add missing geojson layer types (support all 'type' types for MlGeojsonLayer)
433
515
  - ae0aa98: add circle & Heatmap stories for MlGeoJsonLayer
@@ -437,44 +519,49 @@
437
519
  - 20fa873: add useLayerHoverPopup hook
438
520
 
439
521
  ### Changed
522
+
440
523
  - fff236b: migrate MlLayermagnify MlLayerSwipe stories & tests to typescript
441
524
  - 20fa873: refactor MlSpatialElevationProfile & MlGpxViewer
442
525
  - 20fa873: optimize MlSpatialElevationProfile story
443
526
  - 3e30778: migrate MlCenterPos & MlComponentTemplate to typescript
444
527
  - 80f777d: add loading spinner to MlCreatePdfForm
445
- - 5c3cd9a: optimize MlWmsLoader story
528
+ - 5c3cd9a: optimize MlWmsLoader story
446
529
 
447
530
  ## [v0.1.63] - 2022-12-16
448
531
 
449
532
  ### Fixed
533
+
450
534
  - b5d6636: update mui dependencies to fix export 'experimental_sx' (reexported as 'experimental_sx') was not found in '@mui/system'
451
535
 
452
536
  ### Added
537
+
453
538
  - f6af0fd: merge feature/cypress test setup (#48)
454
539
  - a1c1f1c: add MlSketchTool demo to catalog (#51) …
455
540
 
456
-
457
541
  ### Changed
458
- - 4e6ad8e: MlGeojsonLayer story optimization (#45)
459
- - 36f3ee8: MlGpxViewer story optimization (#46)
542
+
543
+ - 4e6ad8e: MlGeojsonLayer story optimization (#45)
544
+ - 36f3ee8: MlGpxViewer story optimization (#46)
460
545
  - e2af70a: refactor TopToolBar component
461
546
  - f820006: refactor Sidebar component
462
547
  - 4038777: update d3 & maplibre-gl dependencies
463
548
 
464
-
465
549
  ## [v0.1.62] - 2022-11-26
466
550
 
467
551
  ### Added
552
+
468
553
  - ba36980: full rewrite of the PdfPreview component, fixing distortion issues in lower zoom levels, offering improved user experience when transforming, adding an option to set a fixed scale
469
554
 
470
555
  ## [v0.1.61] - 2022-11-16
471
556
 
472
557
  ### Added
558
+
473
559
  - 63f11bc: add useCameraFollowPath
474
560
 
475
561
  ## [v0.1.60] - 2022-11-04
476
562
 
477
563
  ### Fixed
564
+
478
565
  - bc71b1f: Fix/use export map hook (#39)
479
566
 
480
567
  ### Changed
@@ -486,13 +573,14 @@
486
573
  ### Fixed
487
574
 
488
575
  - ac559c4: fix MlCreatePdfForm export
576
+
489
577
  ## [v0.1.58] - 2022-10-04
490
578
 
491
579
  ### Added
492
580
 
493
581
  - 6be40b7: automatic eslint & prettier tests as GitHub action
494
582
  - 396b1b7: useSource hook
495
- - 67d88a0: add MlCreatePdfForm component & useExportMap hook providing more sophisticated control on the PDF creation process such as a preview of the PDF area with drag&drop, resize & rotation functionality as well as controlls over the paper size, quality & orientation
583
+ - 67d88a0: add MlCreatePdfForm component & useExportMap hook providing more sophisticated control on the PDF creation process such as a preview of the PDF area with drag&drop, resize & rotation functionality as well as controlls over the paper size, quality & orientation
496
584
 
497
585
  ### Fixed
498
586
 
@@ -514,6 +602,7 @@
514
602
  - f72292b: add orientationConePaint option to MlFollowGps to allow overriding the orientation cone paint layer paint properties
515
603
 
516
604
  ### Changed
605
+
517
606
  - f72292b: rename MlFollowGps style option to buttonSx
518
607
  - 412c363: wrap MlNavigationTools in a @MUI Box component and expose the sx property as MlNavigationTools option
519
608
 
@@ -522,6 +611,7 @@
522
611
  ### Changed
523
612
 
524
613
  - be4fa69: make MlLayer geojson attribute optional
614
+
525
615
  ## [v0.1.54] - 2022-07-18
526
616
 
527
617
  ### Changed
@@ -553,6 +643,7 @@
553
643
 
554
644
  - c119564: add useLayer hook tests
555
645
  - 27d9ded: add typescript type definitions
646
+
556
647
  ### Changed
557
648
 
558
649
  - 9244711: update readme to make it more beginner friendly
@@ -567,6 +658,7 @@
567
658
  ### Added
568
659
 
569
660
  - 4d53b8a: add miles option to MlMeasureTool
661
+
570
662
  ### Fixed
571
663
 
572
664
  - 0082e6d: fix MlMeasureTools typescript transpilation errors
@@ -576,81 +668,103 @@
576
668
  ### Fixed
577
669
 
578
670
  - ed194ff: fix MlWmsLoader & useWms hooks default param values of GetCapabilities request
671
+
579
672
  ## [v0.1.46] - 2022-06-09
580
673
 
581
674
  ### Fixed
582
- - 16e78aa: fix MlImageMarkerLayer initialization conditions
675
+
676
+ - 16e78aa: fix MlImageMarkerLayer initialization conditions
583
677
 
584
678
  ### Added
679
+
585
680
  - 06e30aa: add MeasureTool to catalog
586
681
  - 35bc0ff: make MapLibreMap options.style property reactive to dynamic changes during runtime
587
682
 
588
683
  ## [v0.1.45] - 2022-05-10
589
684
 
590
685
  ### Fixed
686
+
591
687
  - 336bca8: fix useLayer implicit layer types
592
688
 
593
689
  ## [v0.1.44] - 2022-05-10
594
690
 
595
691
  ### Fixed
692
+
596
693
  - a81bb06: fix useLayer setPaintProperty error when changing geojson type using implicit layer types
597
694
 
598
695
  ## [v0.1.42] - 2022-05-10
599
696
 
600
697
  ### Fixed
698
+
601
699
  - d974415: fix geojsonlayer default circle color
602
700
 
603
701
  ## [v0.1.41] - 2022-05-10
604
702
 
605
703
  ### Fixed
606
- - 4c1f5b6: fix MlWmsLoader
607
- - 32e6a3f: fix useLayer reinitialization bug
704
+
705
+ - 4c1f5b6: fix MlWmsLoader
706
+ - 32e6a3f: fix useLayer reinitialization bug
608
707
 
609
708
  ## [v0.1.39] - 2022-04-21
610
709
 
611
710
  ### Changed
711
+
612
712
  - move d3 from devDependencies to dependencies
713
+
613
714
  ## [v0.1.38] - 2022-04-21
614
715
 
615
716
  ### Changed
717
+
616
718
  - integrate MapContext from @mapcomonents/react-core
617
719
 
618
720
  ## [v0.1.37] (broken build) - 2022-04-20
721
+
619
722
  ## [v0.1.36] (broken build) - 2022-04-20
723
+
620
724
  ## [v0.1.35] (broken build) - 2022-04-20
621
725
 
622
726
  ### Changed
727
+
623
728
  - migrate components and hooks to typescript
624
729
 
625
730
  ## [v0.1.34] - 2022-03-24
626
731
 
627
732
  ### Fixed
733
+
628
734
  - 0ced5c1: revert to webpack inline transpilation exclusion as there is no effect on codesandbox installation issues
629
735
 
630
736
  ## [v0.1.33] - 2022-03-24
631
737
 
632
738
  ### Fixed
739
+
633
740
  - 5b80cac: remove webpack inline transpilation exclusion to fix codesandbox installation issues
634
741
 
635
742
  ## [v0.1.32] - 2022-03-15
636
743
 
637
744
  ### Added
745
+
638
746
  - bd333ce: add exports for useWms and MlMarker
747
+
639
748
  ## [v0.1.31] - 2022-02-24
640
749
 
641
750
  ### Added
751
+
642
752
  - acbaa59: export MlTransitionGeoJsonLayer from esm module
643
753
 
644
754
  ## [v0.1.30] - 2022-02-20
645
755
 
646
756
  ### Fixed
757
+
647
758
  - 26dc071: exclude maplibre-gl from transpilation using ! webpack import syntax to prevent "Uncaught ReferenceError" bug
648
759
 
649
760
  ## [v0.1.28] - 2022-02-20
650
761
 
651
762
  ### Added
763
+
652
764
  - 486b7a2: add device orientation indicator to MlFollowGps component
765
+
653
766
  ### Changed
767
+
654
768
  - aba9483: upgrade maplibre-gl to v2.1.6
655
769
  - 2f5d769: add MlNavigationtools to all storybook demos by integrating it into storybook decorators
656
770
  - ae871c0: migrate MlScaleReference to useMap hook
@@ -663,14 +777,17 @@
663
777
  - 2890587: Remove all LineString transition logic from MlGeoJsonLayer to MlTransitionGeoJsonLayer
664
778
 
665
779
  ### Fixed
780
+
666
781
  - 2890587: Merge pull request #5 from mapcomponents/feature/add-mltransitiongeojsonlayer
667
782
 
668
783
  ## [v0.1.27] - 2022-02-05
669
-
784
+
670
785
  ### Fixed
786
+
671
787
  - 743b8ed: set includeBaseLayers filter in useMap hool to true to make waiting for base layers possible
672
788
 
673
789
  ### Changed
790
+
674
791
  - da55245: make the registration of an onlayerchange event handler by the useMap hook dependent on its waitForLayer prop
675
792
 
676
793
  ## [v0.1.26] - 2022-02-02
@@ -713,9 +830,11 @@
713
830
  ## [v0.1.20] - 2022-01-17
714
831
 
715
832
  ### Changed
833
+
716
834
  - migrate MlWmsLayer to use useMap hook instead of mapContext
717
835
 
718
836
  ### Fixed
837
+
719
838
  - adjust MapLibreGlWrapper to fire layerchange events more efficiently
720
839
  - MlShareMapState: prevent pushing new history states if props.active is false
721
840
  - fix MlWmsLayer & tests
@@ -723,45 +842,57 @@
723
842
  - fix MlGeoJsonLayer props.onHover, props.onClick, props.onLeave
724
843
 
725
844
  ### Added
845
+
726
846
  - add props.sourceOptions to MlVectorTileLayer
847
+
727
848
  ## [v0.1.19] - 2022-01-09
728
849
 
729
850
  ### Added
730
- - add props.options to MlGeoJsonLayer
851
+
852
+ - add props.options to MlGeoJsonLayer
853
+
731
854
  ## [v0.1.18] - 2022-01-09
732
855
 
733
856
  ### Added
734
- - add props.defaultPaintOverrides to MlGeoJsonLayer
857
+
858
+ - add props.defaultPaintOverrides to MlGeoJsonLayer
735
859
 
736
860
  ## [v0.1.17] - 2022-01-09
737
-
861
+
738
862
  ### Added
863
+
739
864
  - add implicit layer-type (props.type) casting for MlGeoJsonLayer
865
+
740
866
  ### Changed
741
-
867
+
742
868
  ### Fixed
869
+
743
870
  - fix MlGeoJsonLayer type prop: remove and add a new layer of the new type, if props.type changes
744
871
 
745
872
  ## [v0.1.16] - 2021-12-23
746
-
873
+
747
874
  ### Added
875
+
748
876
  - add CHANGELOG.md
749
-
877
+
750
878
  ### Changed
879
+
751
880
  - migrate MlComponentTemplate to utilize useMap hook
752
881
  - migrate MlFollowGps to utilize useMap hook
753
-
882
+
754
883
  ### Fixed
884
+
755
885
  - fix MlFollowGps - remove example code (setCenter)
756
886
 
757
887
  ## [v0.1.15] - 2021-12-21
758
-
888
+
759
889
  ### Added
890
+
760
891
  - export MlFollowGps component from esm module
761
892
  - add a useMap hook to reduce boilerplate code in components
762
-
893
+
763
894
  ### Changed
895
+
764
896
  - adjust MlImageMarkerLayer to make use of the new useMap hook
765
-
897
+
766
898
  ### Fixed
767
-