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