@mapcomponents/react-maplibre 0.1.17 → 0.1.18

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 (73) hide show
  1. package/CHANGELOG.md +16 -7
  2. package/coverage/clover.xml +43 -42
  3. package/coverage/coverage-final.json +1 -1
  4. package/coverage/lcov-report/index.html +15 -15
  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 +1 -1
  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 +39 -12
  19. package/coverage/lcov-report/src/components/MlGeoJsonLayer/index.html +15 -15
  20. package/coverage/lcov-report/src/components/MlImageMarkerLayer/MlImageMarkerLayer.js.html +1 -1
  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 +1 -1
  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 +93 -90
  68. package/dist/index.esm.js +24 -5
  69. package/dist/index.esm.js.map +1 -1
  70. package/package.json +1 -1
  71. package/src/components/MlGeoJsonLayer/MlGeoJsonLayer.js +13 -4
  72. package/src/components/MlGeoJsonLayer/MlGeoJsonLayer.stories.js +22 -7
  73. package/src/components/MlGeoJsonLayer/util/getDefaultPaintPropsByType.js +10 -1
package/CHANGELOG.md CHANGED
@@ -8,26 +8,35 @@
8
8
 
9
9
  ### Fixed
10
10
 
11
+ ## [0.1.17] - 2022-01-09
12
+
13
+ ### Added
14
+ - add implicit layer-type (props.type) casting for MlGeoJsonLayer
15
+ ### Changed
16
+
17
+ ### Fixed
18
+ - fix MlGeoJsonLayer type prop: remove and add a new layer of the new type, if props.type changes
19
+
11
20
  ## [v0.1.16] - 2021-12-23
12
21
 
13
22
  ### Added
14
- - Add CHANGELOG.md
23
+ - add CHANGELOG.md
15
24
 
16
25
  ### Changed
17
- - Migrate MlComponentTemplate to utilize useMap hook
18
- - Migrate MlFollowGps to utilize useMap hook
26
+ - migrate MlComponentTemplate to utilize useMap hook
27
+ - migrate MlFollowGps to utilize useMap hook
19
28
 
20
29
  ### Fixed
21
- - Fix MlFollowGps - remove example code (setCenter)
30
+ - fix MlFollowGps - remove example code (setCenter)
22
31
 
23
32
  ## [v0.1.15] - 2021-12-21
24
33
 
25
34
  ### Added
26
- - Export MlFollowGps component from esm module
27
- - Add a useMap hook to reduce boilerplate code in components
35
+ - export MlFollowGps component from esm module
36
+ - add a useMap hook to reduce boilerplate code in components
28
37
 
29
38
  ### Changed
30
- - Adjust MlImageMarkerLayer to make use of the new useMap hook
39
+ - adjust MlImageMarkerLayer to make use of the new useMap hook
31
40
 
32
41
  ### Fixed
33
42
 
@@ -1,7 +1,7 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1641748388561" clover="3.2.0">
3
- <project timestamp="1641748388561" name="All files">
4
- <metrics statements="1588" coveredstatements="598" conditionals="922" coveredconditionals="257" methods="280" coveredmethods="100" elements="2790" coveredelements="955" complexity="0" loc="1588" ncloc="1588" packages="29" files="33" classes="33"/>
2
+ <coverage generated="1642075700134" clover="3.2.0">
3
+ <project timestamp="1642075700135" name="All files">
4
+ <metrics statements="1589" coveredstatements="598" conditionals="924" coveredconditionals="257" methods="280" coveredmethods="100" elements="2793" coveredelements="955" complexity="0" loc="1589" ncloc="1589" 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"/>
7
7
  <file name="i18n.js" path="/home/runner/work/react-map-components-maplibre/react-map-components-maplibre/src/i18n.js">
@@ -586,9 +586,9 @@
586
586
  </file>
587
587
  </package>
588
588
  <package name="src.components.MlGeoJsonLayer">
589
- <metrics statements="63" coveredstatements="40" conditionals="60" coveredconditionals="33" methods="9" coveredmethods="8"/>
589
+ <metrics statements="64" coveredstatements="40" conditionals="62" coveredconditionals="33" methods="9" coveredmethods="8"/>
590
590
  <file name="MlGeoJsonLayer.js" path="/home/runner/work/react-map-components-maplibre/react-map-components-maplibre/src/components/MlGeoJsonLayer/MlGeoJsonLayer.js">
591
- <metrics statements="63" coveredstatements="40" conditionals="60" coveredconditionals="33" methods="9" coveredmethods="8"/>
591
+ <metrics statements="64" coveredstatements="40" conditionals="62" coveredconditionals="33" methods="9" coveredmethods="8"/>
592
592
  <line num="12" count="2" type="stmt"/>
593
593
  <line num="13" count="2" type="stmt"/>
594
594
  <line num="20" count="2" type="stmt"/>
@@ -612,46 +612,47 @@
612
612
  <line num="48" count="0" type="stmt"/>
613
613
  <line num="52" count="12" type="stmt"/>
614
614
  <line num="53" count="8" type="cond" truecount="3" falsecount="1"/>
615
- <line num="55" count="0" type="stmt"/>
616
- <line num="56" count="0" type="stmt"/>
617
- <line num="60" count="12" type="stmt"/>
618
- <line num="62" count="0" type="stmt"/>
619
- <line num="79" count="12" type="stmt"/>
620
- <line num="80" count="8" type="cond" truecount="2" falsecount="2"/>
621
- <line num="82" count="0" type="cond" truecount="0" falsecount="2"/>
622
- <line num="87" count="0" type="stmt"/>
623
- <line num="88" count="0" type="stmt"/>
624
- <line num="89" count="0" type="stmt"/>
615
+ <line num="56" count="0" type="cond" truecount="0" falsecount="2"/>
616
+ <line num="58" count="0" type="stmt"/>
617
+ <line num="59" count="0" type="stmt"/>
618
+ <line num="63" count="12" type="stmt"/>
619
+ <line num="65" count="0" type="stmt"/>
620
+ <line num="82" count="12" type="stmt"/>
621
+ <line num="83" count="8" type="cond" truecount="2" falsecount="2"/>
622
+ <line num="85" count="0" type="cond" truecount="0" falsecount="2"/>
625
623
  <line num="90" count="0" type="stmt"/>
626
624
  <line num="91" count="0" type="stmt"/>
625
+ <line num="92" count="0" type="stmt"/>
627
626
  <line num="93" count="0" type="stmt"/>
628
- <line num="95" count="0" type="stmt"/>
629
- <line num="105" count="12" type="stmt"/>
630
- <line num="106" count="4" type="stmt"/>
631
- <line num="108" count="4" type="cond" truecount="1" falsecount="1"/>
632
- <line num="114" count="0" type="stmt"/>
633
- <line num="115" count="0" type="stmt"/>
634
- <line num="118" count="4" type="cond" truecount="1" falsecount="1"/>
635
- <line num="120" count="4" type="stmt"/>
636
- <line num="135" count="4" type="cond" truecount="1" falsecount="1"/>
637
- <line num="136" count="0" type="stmt"/>
638
- <line num="139" count="4" type="cond" truecount="1" falsecount="1"/>
639
- <line num="140" count="0" type="stmt"/>
640
- <line num="143" count="4" type="cond" truecount="1" falsecount="1"/>
641
- <line num="144" count="0" type="stmt"/>
642
- <line num="147" count="4" type="cond" truecount="1" falsecount="1"/>
643
- <line num="152" count="0" type="stmt"/>
644
- <line num="153" count="0" type="stmt"/>
645
- <line num="157" count="12" type="stmt"/>
646
- <line num="158" count="8" type="cond" truecount="4" falsecount="0"/>
647
- <line num="160" count="4" type="cond" truecount="1" falsecount="1"/>
648
- <line num="166" count="0" type="stmt"/>
649
- <line num="167" count="4" type="cond" truecount="1" falsecount="1"/>
650
- <line num="172" count="0" type="stmt"/>
651
- <line num="176" count="4" type="stmt"/>
652
- <line num="178" count="4" type="stmt"/>
653
- <line num="181" count="12" type="stmt"/>
654
- <line num="184" count="2" type="stmt"/>
627
+ <line num="94" count="0" type="stmt"/>
628
+ <line num="96" count="0" type="stmt"/>
629
+ <line num="98" count="0" type="stmt"/>
630
+ <line num="108" count="12" type="stmt"/>
631
+ <line num="109" count="4" type="stmt"/>
632
+ <line num="111" count="4" type="cond" truecount="1" falsecount="1"/>
633
+ <line num="117" count="0" type="stmt"/>
634
+ <line num="118" count="0" type="stmt"/>
635
+ <line num="121" count="4" type="cond" truecount="1" falsecount="1"/>
636
+ <line num="123" count="4" type="stmt"/>
637
+ <line num="140" count="4" type="cond" truecount="1" falsecount="1"/>
638
+ <line num="141" count="0" type="stmt"/>
639
+ <line num="144" count="4" type="cond" truecount="1" falsecount="1"/>
640
+ <line num="145" count="0" type="stmt"/>
641
+ <line num="148" count="4" type="cond" truecount="1" falsecount="1"/>
642
+ <line num="149" count="0" type="stmt"/>
643
+ <line num="152" count="4" type="cond" truecount="1" falsecount="1"/>
644
+ <line num="157" count="0" type="stmt"/>
645
+ <line num="158" count="0" type="stmt"/>
646
+ <line num="162" count="12" type="stmt"/>
647
+ <line num="163" count="8" type="cond" truecount="4" falsecount="0"/>
648
+ <line num="165" count="4" type="cond" truecount="1" falsecount="1"/>
649
+ <line num="171" count="0" type="stmt"/>
650
+ <line num="172" count="4" type="cond" truecount="1" falsecount="1"/>
651
+ <line num="177" count="0" type="stmt"/>
652
+ <line num="181" count="4" type="stmt"/>
653
+ <line num="183" count="4" type="stmt"/>
654
+ <line num="186" count="12" type="stmt"/>
655
+ <line num="189" count="2" type="stmt"/>
655
656
  </file>
656
657
  </package>
657
658
  <package name="src.components.MlImageMarkerLayer">