@mapcomponents/react-maplibre 0.1.25 → 0.1.26

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 (74) hide show
  1. package/CHANGELOG.md +48 -8
  2. package/coverage/clover.xml +24 -24
  3. package/coverage/coverage-final.json +3 -3
  4. package/coverage/lcov-report/index.html +1 -1
  5. package/coverage/lcov-report/src/components/MapLibreMap/MapLibreMap.js.html +1 -1
  6. package/coverage/lcov-report/src/components/MapLibreMap/index.html +1 -1
  7. package/coverage/lcov-report/src/components/MlCreatePdfButton/MlCreatePdfButton.js.html +1 -1
  8. package/coverage/lcov-report/src/components/MlCreatePdfButton/index.html +1 -1
  9. package/coverage/lcov-report/src/components/MlFeatureEditor/MlFeatureEditor.js.html +1 -1
  10. package/coverage/lcov-report/src/components/MlFeatureEditor/index.html +1 -1
  11. package/coverage/lcov-report/src/components/MlFillExtrusionLayer/MlFillExtrusionLayer.js.html +1 -1
  12. package/coverage/lcov-report/src/components/MlFillExtrusionLayer/index.html +1 -1
  13. package/coverage/lcov-report/src/components/MlFollowGps/MlFollowGps.js.html +25 -13
  14. package/coverage/lcov-report/src/components/MlFollowGps/index.html +1 -1
  15. package/coverage/lcov-report/src/components/MlGPXViewer/MlGPXViewer.js.html +1 -1
  16. package/coverage/lcov-report/src/components/MlGPXViewer/gpxConverter.js.html +1 -1
  17. package/coverage/lcov-report/src/components/MlGPXViewer/index.html +1 -1
  18. package/coverage/lcov-report/src/components/MlGeoJsonLayer/MlGeoJsonLayer.js.html +1 -1
  19. package/coverage/lcov-report/src/components/MlGeoJsonLayer/index.html +1 -1
  20. package/coverage/lcov-report/src/components/MlImageMarkerLayer/MlImageMarkerLayer.js.html +2 -2
  21. package/coverage/lcov-report/src/components/MlImageMarkerLayer/index.html +1 -1
  22. package/coverage/lcov-report/src/components/MlLayer/MlLayer.js.html +1 -1
  23. package/coverage/lcov-report/src/components/MlLayer/index.html +1 -1
  24. package/coverage/lcov-report/src/components/MlLayerMagnify/MlLayerMagnify.js.html +1 -1
  25. package/coverage/lcov-report/src/components/MlLayerMagnify/index.html +1 -1
  26. package/coverage/lcov-report/src/components/MlLayerSwipe/MlLayerSwipe.js.html +1 -1
  27. package/coverage/lcov-report/src/components/MlLayerSwipe/index.html +1 -1
  28. package/coverage/lcov-report/src/components/MlLayerSwitcher/MlLayerSwitcher.js.html +1 -1
  29. package/coverage/lcov-report/src/components/MlLayerSwitcher/components/LayerBox.js.html +1 -1
  30. package/coverage/lcov-report/src/components/MlLayerSwitcher/components/index.html +1 -1
  31. package/coverage/lcov-report/src/components/MlLayerSwitcher/index.html +1 -1
  32. package/coverage/lcov-report/src/components/MlMarker/MlMarker.js.html +1 -1
  33. package/coverage/lcov-report/src/components/MlMarker/index.html +1 -1
  34. package/coverage/lcov-report/src/components/MlNavigationCompass/MlNavigationCompass.js.html +1 -1
  35. package/coverage/lcov-report/src/components/MlNavigationCompass/index.html +1 -1
  36. package/coverage/lcov-report/src/components/MlNavigationTools/MlNavigationTools.js.html +1 -1
  37. package/coverage/lcov-report/src/components/MlNavigationTools/index.html +1 -1
  38. package/coverage/lcov-report/src/components/MlOsmLayer/MlOsmLayer.js.html +1 -1
  39. package/coverage/lcov-report/src/components/MlOsmLayer/index.html +1 -1
  40. package/coverage/lcov-report/src/components/MlScaleReference/MlScaleReference.js.html +1 -1
  41. package/coverage/lcov-report/src/components/MlScaleReference/index.html +1 -1
  42. package/coverage/lcov-report/src/components/MlShareMapState/MlShareMapState.js.html +1 -1
  43. package/coverage/lcov-report/src/components/MlShareMapState/index.html +1 -1
  44. package/coverage/lcov-report/src/components/MlSpatialElevationProfile/MlSpatialElevationProfile.js.html +1 -1
  45. package/coverage/lcov-report/src/components/MlSpatialElevationProfile/index.html +1 -1
  46. package/coverage/lcov-report/src/components/MlThreeJsLayer/MlThreeJsLayer.js.html +1 -1
  47. package/coverage/lcov-report/src/components/MlThreeJsLayer/index.html +1 -1
  48. package/coverage/lcov-report/src/components/MlUseMapDebugger/MlUseMapDebugger.js.html +1 -1
  49. package/coverage/lcov-report/src/components/MlUseMapDebugger/index.html +1 -1
  50. package/coverage/lcov-report/src/components/MlVectorTileLayer/MlVectorTileLayer.js.html +1 -1
  51. package/coverage/lcov-report/src/components/MlVectorTileLayer/index.html +1 -1
  52. package/coverage/lcov-report/src/components/MlWmsFeatureInfoPopup/MlWmsFeatureInfoPopup.js.html +1 -1
  53. package/coverage/lcov-report/src/components/MlWmsFeatureInfoPopup/index.html +1 -1
  54. package/coverage/lcov-report/src/components/MlWmsLayer/MlWmsLayer.js.html +1 -1
  55. package/coverage/lcov-report/src/components/MlWmsLayer/index.html +1 -1
  56. package/coverage/lcov-report/src/components/MlWmsLoader/MlWmsLoader.js.html +1 -1
  57. package/coverage/lcov-report/src/components/MlWmsLoader/index.html +1 -1
  58. package/coverage/lcov-report/src/hooks/index.html +1 -1
  59. package/coverage/lcov-report/src/hooks/useMap.js.html +1 -1
  60. package/coverage/lcov-report/src/hooks/useMapState.js.html +1 -1
  61. package/coverage/lcov-report/src/hooks/useWms.js.html +2 -2
  62. package/coverage/lcov-report/src/i18n.js.html +1 -1
  63. package/coverage/lcov-report/src/index.html +1 -1
  64. package/coverage/lcov-report/src/translations/english.js.html +1 -1
  65. package/coverage/lcov-report/src/translations/german.js.html +1 -1
  66. package/coverage/lcov-report/src/translations/index.html +1 -1
  67. package/coverage/lcov.info +42 -42
  68. package/dist/index.esm.js +70 -63
  69. package/dist/index.esm.js.map +1 -1
  70. package/package.json +1 -1
  71. package/src/components/MlFollowGps/MlFollowGps.js +12 -8
  72. package/src/hooks/useWms.js +1 -1
  73. package/dist/b556faa3bc6829d2.png +0 -0
  74. package/src/components/MlFollowGps/assets/marker.png +0 -0
package/CHANGELOG.md CHANGED
@@ -1,27 +1,67 @@
1
1
  # Change Log
2
2
 
3
3
 
4
- ## [Unreleased] - yyyy-mm-dd
5
-
6
- ### Added
4
+ ## [v0.1.26] - 2022-02-02
5
+
6
+ ### Fixed
7
+
8
+ - adjust MlFollowGps position marker style & add flyTo instead of setCenter for new Gps positions
9
+ - fix useWms hook retrieval of WMS GetMap URL
10
+
11
+ ## [v0.1.25] - 2022-01-31
12
+
13
+ ### Fixed
14
+
15
+ - fix MlFollowGps needsRedraw bug; refactor MlFollowGps
16
+
17
+ ## [v0.1.24] - 2022-01-23
18
+
19
+ ### Fixed
20
+
21
+ - fix MlVectorTileLayer sourceId
22
+
23
+ ## [v0.1.23] - 2022-01-23
24
+
7
25
  ### Changed
8
-
26
+
27
+ - migrate MlVectorTileLayer to useMap hook & provide full control over layer & source id
28
+
29
+ ## [v0.1.22] - 2022-01-23
30
+
31
+ ### Changed
32
+
33
+ - make MlVectorTileLayer props.layers[].layout properties update dynamically
34
+
35
+ ## [v0.1.21] - 2022-01-21
36
+
9
37
  ### Fixed
10
38
 
11
- ## [0.1.20] - 2022-01-09
39
+ - migrate MlVectorTileLayer to useMap hook & provide full control over layer & source id
40
+
41
+ ## [v0.1.20] - 2022-01-17
42
+
43
+ ### Changed
44
+ - migrate MlWmsLayer to use useMap hook instead of mapContext
45
+
46
+ ### Fixed
47
+ - adjust MapLibreGlWrapper to fire layerchange events more efficiently
48
+ - MlShareMapState: prevent pushing new history states if props.active is false
49
+ - fix MlWmsLayer & tests
50
+ - fix MlVectorTileLayer visible property
51
+ - fix MlGeoJsonLayer props.onHover, props.onClick, props.onLeave
12
52
 
13
53
  ### Added
14
54
  - add props.sourceOptions to MlVectorTileLayer
15
- ## [0.1.19] - 2022-01-09
55
+ ## [v0.1.19] - 2022-01-09
16
56
 
17
57
  ### Added
18
58
  - add props.options to MlGeoJsonLayer
19
- ## [0.1.18] - 2022-01-09
59
+ ## [v0.1.18] - 2022-01-09
20
60
 
21
61
  ### Added
22
62
  - add props.defaultPaintOverrides to MlGeoJsonLayer
23
63
 
24
- ## [0.1.17] - 2022-01-09
64
+ ## [v0.1.17] - 2022-01-09
25
65
 
26
66
  ### Added
27
67
  - add implicit layer-type (props.type) casting for MlGeoJsonLayer
@@ -1,6 +1,6 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1643647311987" clover="3.2.0">
3
- <project timestamp="1643647311987" name="All files">
2
+ <coverage generated="1643803049118" clover="3.2.0">
3
+ <project timestamp="1643803049118" name="All files">
4
4
  <metrics statements="1581" coveredstatements="577" conditionals="920" coveredconditionals="255" methods="283" coveredmethods="95" elements="2784" coveredelements="927" complexity="0" loc="1581" ncloc="1581" packages="29" files="33" classes="33"/>
5
5
  <package name="src">
6
6
  <metrics statements="2" coveredstatements="0" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
@@ -147,31 +147,31 @@
147
147
  <metrics statements="25" coveredstatements="18" conditionals="14" coveredconditionals="10" methods="6" coveredmethods="4"/>
148
148
  <file name="MlFollowGps.js" path="/home/runner/work/react-map-components-maplibre/react-map-components-maplibre/src/components/MlFollowGps/MlFollowGps.js">
149
149
  <metrics statements="25" coveredstatements="18" conditionals="14" coveredconditionals="10" methods="6" coveredmethods="4"/>
150
- <line num="22" count="1" type="stmt"/>
150
+ <line num="19" count="1" type="stmt"/>
151
+ <line num="20" count="9" type="stmt"/>
152
+ <line num="22" count="9" type="stmt"/>
151
153
  <line num="23" count="9" type="stmt"/>
152
- <line num="25" count="9" type="stmt"/>
154
+ <line num="24" count="9" type="stmt"/>
153
155
  <line num="26" count="9" type="stmt"/>
154
- <line num="27" count="9" type="stmt"/>
155
- <line num="29" count="9" type="stmt"/>
156
- <line num="31" count="9" type="stmt"/>
157
- <line num="33" count="0" type="cond" truecount="0" falsecount="2"/>
158
- <line num="35" count="0" type="stmt"/>
159
- <line num="36" count="0" type="stmt"/>
160
- <line num="37" count="0" type="stmt"/>
156
+ <line num="28" count="9" type="stmt"/>
157
+ <line num="30" count="0" type="cond" truecount="0" falsecount="2"/>
158
+ <line num="32" count="0" type="stmt"/>
161
159
  <line num="38" count="0" type="stmt"/>
162
- <line num="43" count="9" type="stmt"/>
163
- <line num="44" count="0" type="stmt"/>
164
- <line num="45" count="0" type="stmt"/>
165
- <line num="48" count="9" type="stmt"/>
166
- <line num="49" count="7" type="cond" truecount="2" falsecount="0"/>
167
- <line num="51" count="5" type="cond" truecount="2" falsecount="0"/>
168
- <line num="52" count="2" type="stmt"/>
160
+ <line num="39" count="0" type="stmt"/>
161
+ <line num="40" count="0" type="stmt"/>
162
+ <line num="45" count="9" type="stmt"/>
163
+ <line num="46" count="0" type="stmt"/>
164
+ <line num="47" count="0" type="stmt"/>
165
+ <line num="50" count="9" type="stmt"/>
166
+ <line num="51" count="7" type="cond" truecount="2" falsecount="0"/>
167
+ <line num="53" count="5" type="cond" truecount="2" falsecount="0"/>
169
168
  <line num="54" count="2" type="stmt"/>
170
- <line num="55" count="1" type="stmt"/>
171
- <line num="60" count="9" type="stmt"/>
172
- <line num="92" count="3" type="stmt"/>
173
- <line num="102" count="1" type="stmt"/>
174
- <line num="122" count="1" type="stmt"/>
169
+ <line num="56" count="2" type="stmt"/>
170
+ <line num="57" count="1" type="stmt"/>
171
+ <line num="62" count="9" type="stmt"/>
172
+ <line num="96" count="3" type="stmt"/>
173
+ <line num="106" count="1" type="stmt"/>
174
+ <line num="126" count="1" type="stmt"/>
175
175
  </file>
176
176
  </package>
177
177
  <package name="src.components.MlGPXViewer">
@@ -654,7 +654,7 @@
654
654
  <metrics statements="31" coveredstatements="22" conditionals="29" coveredconditionals="14" methods="6" coveredmethods="5"/>
655
655
  <file name="MlImageMarkerLayer.js" path="/home/runner/work/react-map-components-maplibre/react-map-components-maplibre/src/components/MlImageMarkerLayer/MlImageMarkerLayer.js">
656
656
  <metrics statements="31" coveredstatements="22" conditionals="29" coveredconditionals="14" methods="6" coveredmethods="5"/>
657
- <line num="5" count="2" type="stmt"/>
657
+ <line num="5" count="1" type="stmt"/>
658
658
  <line num="6" count="12" type="stmt"/>
659
659
  <line num="8" count="12" type="stmt"/>
660
660
  <line num="9" count="12" type="cond" truecount="2" falsecount="0"/>