@mapcomponents/react-maplibre 0.1.22 → 0.1.23

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 (71) hide show
  1. package/coverage/clover.xml +90 -109
  2. package/coverage/coverage-final.json +3 -3
  3. package/coverage/lcov-report/index.html +18 -18
  4. package/coverage/lcov-report/src/components/MapLibreMap/MapLibreMap.js.html +1 -1
  5. package/coverage/lcov-report/src/components/MapLibreMap/index.html +1 -1
  6. package/coverage/lcov-report/src/components/MlCreatePdfButton/MlCreatePdfButton.js.html +1 -1
  7. package/coverage/lcov-report/src/components/MlCreatePdfButton/index.html +1 -1
  8. package/coverage/lcov-report/src/components/MlFeatureEditor/MlFeatureEditor.js.html +1 -1
  9. package/coverage/lcov-report/src/components/MlFeatureEditor/index.html +1 -1
  10. package/coverage/lcov-report/src/components/MlFillExtrusionLayer/MlFillExtrusionLayer.js.html +1 -1
  11. package/coverage/lcov-report/src/components/MlFillExtrusionLayer/index.html +1 -1
  12. package/coverage/lcov-report/src/components/MlFollowGps/MlFollowGps.js.html +1 -1
  13. package/coverage/lcov-report/src/components/MlFollowGps/index.html +1 -1
  14. package/coverage/lcov-report/src/components/MlGPXViewer/MlGPXViewer.js.html +1 -1
  15. package/coverage/lcov-report/src/components/MlGPXViewer/gpxConverter.js.html +1 -1
  16. package/coverage/lcov-report/src/components/MlGPXViewer/index.html +1 -1
  17. package/coverage/lcov-report/src/components/MlGeoJsonLayer/MlGeoJsonLayer.js.html +1 -1
  18. package/coverage/lcov-report/src/components/MlGeoJsonLayer/index.html +1 -1
  19. package/coverage/lcov-report/src/components/MlImageMarkerLayer/MlImageMarkerLayer.js.html +1 -1
  20. package/coverage/lcov-report/src/components/MlImageMarkerLayer/index.html +1 -1
  21. package/coverage/lcov-report/src/components/MlLayer/MlLayer.js.html +1 -1
  22. package/coverage/lcov-report/src/components/MlLayer/index.html +1 -1
  23. package/coverage/lcov-report/src/components/MlLayerMagnify/MlLayerMagnify.js.html +1 -1
  24. package/coverage/lcov-report/src/components/MlLayerMagnify/index.html +1 -1
  25. package/coverage/lcov-report/src/components/MlLayerSwipe/MlLayerSwipe.js.html +1 -1
  26. package/coverage/lcov-report/src/components/MlLayerSwipe/index.html +1 -1
  27. package/coverage/lcov-report/src/components/MlLayerSwitcher/MlLayerSwitcher.js.html +1 -1
  28. package/coverage/lcov-report/src/components/MlLayerSwitcher/components/LayerBox.js.html +1 -1
  29. package/coverage/lcov-report/src/components/MlLayerSwitcher/components/index.html +1 -1
  30. package/coverage/lcov-report/src/components/MlLayerSwitcher/index.html +1 -1
  31. package/coverage/lcov-report/src/components/MlMarker/MlMarker.js.html +1 -1
  32. package/coverage/lcov-report/src/components/MlMarker/index.html +1 -1
  33. package/coverage/lcov-report/src/components/MlNavigationCompass/MlNavigationCompass.js.html +1 -1
  34. package/coverage/lcov-report/src/components/MlNavigationCompass/index.html +1 -1
  35. package/coverage/lcov-report/src/components/MlNavigationTools/MlNavigationTools.js.html +1 -1
  36. package/coverage/lcov-report/src/components/MlNavigationTools/index.html +1 -1
  37. package/coverage/lcov-report/src/components/MlOsmLayer/MlOsmLayer.js.html +1 -1
  38. package/coverage/lcov-report/src/components/MlOsmLayer/index.html +1 -1
  39. package/coverage/lcov-report/src/components/MlScaleReference/MlScaleReference.js.html +1 -1
  40. package/coverage/lcov-report/src/components/MlScaleReference/index.html +1 -1
  41. package/coverage/lcov-report/src/components/MlShareMapState/MlShareMapState.js.html +1 -1
  42. package/coverage/lcov-report/src/components/MlShareMapState/index.html +1 -1
  43. package/coverage/lcov-report/src/components/MlSpatialElevationProfile/MlSpatialElevationProfile.js.html +1 -1
  44. package/coverage/lcov-report/src/components/MlSpatialElevationProfile/index.html +1 -1
  45. package/coverage/lcov-report/src/components/MlThreeJsLayer/MlThreeJsLayer.js.html +1 -1
  46. package/coverage/lcov-report/src/components/MlThreeJsLayer/index.html +1 -1
  47. package/coverage/lcov-report/src/components/MlUseMapDebugger/MlUseMapDebugger.js.html +1 -1
  48. package/coverage/lcov-report/src/components/MlUseMapDebugger/index.html +1 -1
  49. package/coverage/lcov-report/src/components/MlVectorTileLayer/MlVectorTileLayer.js.html +74 -194
  50. package/coverage/lcov-report/src/components/MlVectorTileLayer/index.html +17 -17
  51. package/coverage/lcov-report/src/components/MlWmsFeatureInfoPopup/MlWmsFeatureInfoPopup.js.html +1 -1
  52. package/coverage/lcov-report/src/components/MlWmsFeatureInfoPopup/index.html +1 -1
  53. package/coverage/lcov-report/src/components/MlWmsLayer/MlWmsLayer.js.html +1 -1
  54. package/coverage/lcov-report/src/components/MlWmsLayer/index.html +1 -1
  55. package/coverage/lcov-report/src/components/MlWmsLoader/MlWmsLoader.js.html +1 -1
  56. package/coverage/lcov-report/src/components/MlWmsLoader/index.html +1 -1
  57. package/coverage/lcov-report/src/hooks/index.html +1 -1
  58. package/coverage/lcov-report/src/hooks/useMap.js.html +22 -22
  59. package/coverage/lcov-report/src/hooks/useMapState.js.html +34 -34
  60. package/coverage/lcov-report/src/hooks/useWms.js.html +1 -1
  61. package/coverage/lcov-report/src/i18n.js.html +1 -1
  62. package/coverage/lcov-report/src/index.html +1 -1
  63. package/coverage/lcov-report/src/translations/english.js.html +1 -1
  64. package/coverage/lcov-report/src/translations/german.js.html +1 -1
  65. package/coverage/lcov-report/src/translations/index.html +1 -1
  66. package/coverage/lcov.info +132 -167
  67. package/dist/index.esm.js +23 -60
  68. package/dist/index.esm.js.map +1 -1
  69. package/package.json +1 -1
  70. package/src/components/MlVectorTileLayer/MlVectorTileLayer.js +51 -91
  71. package/src/components/MlVectorTileLayer/MlVectorTileLayer.test.js +6 -6
@@ -1,7 +1,7 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1642938187186" clover="3.2.0">
3
- <project timestamp="1642938187186" name="All files">
4
- <metrics statements="1606" coveredstatements="594" conditionals="934" coveredconditionals="257" methods="287" coveredmethods="98" elements="2827" coveredelements="949" complexity="0" loc="1606" ncloc="1606" packages="29" files="33" classes="33"/>
2
+ <coverage generated="1642947218236" clover="3.2.0">
3
+ <project timestamp="1642947218236" name="All files">
4
+ <metrics statements="1587" coveredstatements="580" conditionals="924" coveredconditionals="255" methods="284" coveredmethods="95" elements="2795" coveredelements="930" complexity="0" loc="1587" ncloc="1587" 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">
@@ -1451,62 +1451,43 @@
1451
1451
  </file>
1452
1452
  </package>
1453
1453
  <package name="src.components.MlVectorTileLayer">
1454
- <metrics statements="53" coveredstatements="44" conditionals="26" coveredconditionals="15" methods="6" coveredmethods="6"/>
1454
+ <metrics statements="34" coveredstatements="30" conditionals="16" coveredconditionals="13" methods="3" coveredmethods="3"/>
1455
1455
  <file name="MlVectorTileLayer.js" path="/home/runner/work/react-map-components-maplibre/react-map-components-maplibre/src/components/MlVectorTileLayer/MlVectorTileLayer.js">
1456
- <metrics statements="53" coveredstatements="44" conditionals="26" coveredconditionals="15" methods="6" coveredmethods="6"/>
1456
+ <metrics statements="34" coveredstatements="30" conditionals="16" coveredconditionals="13" methods="3" coveredmethods="3"/>
1457
1457
  <line num="11" count="1" type="stmt"/>
1458
- <line num="12" count="8" type="stmt"/>
1459
- <line num="14" count="8" type="stmt"/>
1460
- <line num="15" count="8" type="stmt"/>
1461
- <line num="16" count="8" type="stmt"/>
1462
- <line num="17" count="8" type="stmt"/>
1463
- <line num="18" count="8" type="stmt"/>
1464
- <line num="19" count="8" type="stmt"/>
1465
- <line num="20" count="8" type="stmt"/>
1466
- <line num="21" count="8" type="stmt"/>
1467
- <line num="23" count="8" type="stmt"/>
1468
- <line num="24" count="2" type="cond" truecount="3" falsecount="1"/>
1469
- <line num="25" count="2" type="stmt"/>
1470
- <line num="26" count="2" type="cond" truecount="1" falsecount="1"/>
1471
- <line num="27" count="2" type="stmt"/>
1472
- <line num="30" count="2" type="cond" truecount="1" falsecount="1"/>
1473
- <line num="31" count="2" type="stmt"/>
1474
- <line num="36" count="8" type="stmt"/>
1475
- <line num="37" count="4" type="stmt"/>
1476
- <line num="40" count="8" type="stmt"/>
1477
- <line num="41" count="8" type="cond" truecount="4" falsecount="0"/>
1458
+ <line num="12" count="12" type="stmt"/>
1459
+ <line num="14" count="12" type="stmt"/>
1460
+ <line num="15" count="12" type="cond" truecount="2" falsecount="0"/>
1461
+ <line num="16" count="12" type="stmt"/>
1462
+ <line num="17" count="12" type="stmt"/>
1463
+ <line num="18" count="12" type="stmt"/>
1464
+ <line num="20" count="12" type="stmt"/>
1465
+ <line num="21" count="8" type="cond" truecount="4" falsecount="0"/>
1466
+ <line num="23" count="4" type="stmt"/>
1467
+ <line num="26" count="4" type="stmt"/>
1468
+ <line num="38" count="4" type="stmt"/>
1469
+ <line num="39" count="4" type="stmt"/>
1470
+ <line num="40" count="4" type="stmt"/>
1471
+ <line num="42" count="4" type="stmt"/>
1478
1472
  <line num="43" count="4" type="stmt"/>
1479
- <line num="44" count="4" type="stmt"/>
1480
- <line num="47" count="4" type="stmt"/>
1481
- <line num="55" count="4" type="stmt"/>
1482
- <line num="56" count="4" type="stmt"/>
1483
- <line num="57" count="4" type="stmt"/>
1484
- <line num="59" count="4" type="stmt"/>
1485
- <line num="73" count="4" type="stmt"/>
1486
- <line num="74" count="4" type="stmt"/>
1487
- <line num="78" count="8" type="stmt"/>
1488
- <line num="79" count="8" type="cond" truecount="2" falsecount="0"/>
1489
- <line num="82" count="4" type="stmt"/>
1490
- <line num="83" count="4" type="cond" truecount="1" falsecount="1"/>
1491
- <line num="85" count="4" type="stmt"/>
1492
- <line num="87" count="4" type="cond" truecount="1" falsecount="1"/>
1493
- <line num="88" count="0" type="stmt"/>
1473
+ <line num="61" count="4" type="stmt"/>
1474
+ <line num="62" count="4" type="stmt"/>
1475
+ <line num="66" count="12" type="stmt"/>
1476
+ <line num="67" count="8" type="cond" truecount="4" falsecount="0"/>
1477
+ <line num="69" count="4" type="stmt"/>
1478
+ <line num="70" count="4" type="cond" truecount="1" falsecount="1"/>
1479
+ <line num="72" count="4" type="stmt"/>
1480
+ <line num="74" count="4" type="cond" truecount="1" falsecount="1"/>
1481
+ <line num="75" count="0" type="stmt"/>
1482
+ <line num="76" count="0" type="stmt"/>
1483
+ <line num="83" count="4" type="stmt"/>
1484
+ <line num="86" count="4" type="stmt"/>
1485
+ <line num="88" count="4" type="cond" truecount="1" falsecount="1"/>
1494
1486
  <line num="89" count="0" type="stmt"/>
1495
- <line num="98" count="4" type="stmt"/>
1496
- <line num="101" count="4" type="stmt"/>
1497
- <line num="103" count="4" type="cond" truecount="1" falsecount="1"/>
1498
- <line num="104" count="0" type="stmt"/>
1499
- <line num="105" count="0" type="stmt"/>
1500
- <line num="114" count="4" type="stmt"/>
1501
- <line num="119" count="8" type="stmt"/>
1502
- <line num="120" count="4" type="cond" truecount="1" falsecount="1"/>
1503
- <line num="122" count="0" type="stmt"/>
1504
- <line num="123" count="0" type="cond" truecount="0" falsecount="2"/>
1505
- <line num="125" count="0" type="cond" truecount="0" falsecount="2"/>
1506
- <line num="126" count="0" type="stmt"/>
1507
- <line num="130" count="0" type="stmt"/>
1508
- <line num="138" count="8" type="stmt"/>
1509
- <line num="141" count="1" type="stmt"/>
1487
+ <line num="90" count="0" type="stmt"/>
1488
+ <line num="97" count="4" type="stmt"/>
1489
+ <line num="102" count="12" type="stmt"/>
1490
+ <line num="105" count="1" type="stmt"/>
1510
1491
  </file>
1511
1492
  </package>
1512
1493
  <package name="src.components.MlWmsFeatureInfoPopup">
@@ -1669,45 +1650,45 @@
1669
1650
  <metrics statements="106" coveredstatements="54" conditionals="42" coveredconditionals="14" methods="19" coveredmethods="9"/>
1670
1651
  <file name="useMap.js" path="/home/runner/work/react-map-components-maplibre/react-map-components-maplibre/src/hooks/useMap.js">
1671
1652
  <metrics statements="27" coveredstatements="21" conditionals="12" coveredconditionals="6" methods="5" coveredmethods="4"/>
1672
- <line num="8" count="45" type="stmt"/>
1673
- <line num="10" count="45" type="stmt"/>
1674
- <line num="19" count="45" type="stmt"/>
1675
- <line num="20" count="45" type="stmt"/>
1676
- <line num="22" count="45" type="stmt"/>
1677
- <line num="24" count="45" type="stmt"/>
1678
- <line num="26" count="45" type="stmt"/>
1679
- <line num="27" count="14" type="stmt"/>
1680
- <line num="29" count="14" type="stmt"/>
1681
- <line num="30" count="6" type="cond" truecount="1" falsecount="1"/>
1682
- <line num="31" count="6" type="stmt"/>
1683
- <line num="32" count="6" type="stmt"/>
1684
- <line num="34" count="6" type="stmt"/>
1685
- <line num="35" count="6" type="stmt"/>
1686
- <line num="39" count="45" type="stmt"/>
1687
- <line num="40" count="42" type="cond" truecount="4" falsecount="0"/>
1688
- <line num="43" count="14" type="cond" truecount="1" falsecount="1"/>
1653
+ <line num="8" count="57" type="stmt"/>
1654
+ <line num="10" count="57" type="stmt"/>
1655
+ <line num="19" count="57" type="stmt"/>
1656
+ <line num="20" count="57" type="stmt"/>
1657
+ <line num="22" count="57" type="stmt"/>
1658
+ <line num="24" count="57" type="stmt"/>
1659
+ <line num="26" count="57" type="stmt"/>
1660
+ <line num="27" count="18" type="stmt"/>
1661
+ <line num="29" count="18" type="stmt"/>
1662
+ <line num="30" count="8" type="cond" truecount="1" falsecount="1"/>
1663
+ <line num="31" count="8" type="stmt"/>
1664
+ <line num="32" count="8" type="stmt"/>
1665
+ <line num="34" count="8" type="stmt"/>
1666
+ <line num="35" count="8" type="stmt"/>
1667
+ <line num="39" count="57" type="stmt"/>
1668
+ <line num="40" count="54" type="cond" truecount="4" falsecount="0"/>
1669
+ <line num="43" count="18" type="cond" truecount="1" falsecount="1"/>
1689
1670
  <line num="44" count="0" type="stmt"/>
1690
1671
  <line num="46" count="0" type="stmt"/>
1691
1672
  <line num="47" count="0" type="cond" truecount="0" falsecount="2"/>
1692
1673
  <line num="48" count="0" type="stmt"/>
1693
1674
  <line num="51" count="0" type="cond" truecount="0" falsecount="2"/>
1694
1675
  <line num="52" count="0" type="stmt"/>
1695
- <line num="57" count="14" type="stmt"/>
1696
- <line num="58" count="14" type="stmt"/>
1697
- <line num="59" count="14" type="stmt"/>
1698
- <line num="62" count="45" type="stmt"/>
1676
+ <line num="57" count="18" type="stmt"/>
1677
+ <line num="58" count="18" type="stmt"/>
1678
+ <line num="59" count="18" type="stmt"/>
1679
+ <line num="62" count="57" type="stmt"/>
1699
1680
  </file>
1700
1681
  <file name="useMapState.js" path="/home/runner/work/react-map-components-maplibre/react-map-components-maplibre/src/hooks/useMapState.js">
1701
1682
  <metrics statements="44" coveredstatements="33" conditionals="22" coveredconditionals="8" methods="7" coveredmethods="5"/>
1702
- <line num="13" count="61" type="stmt"/>
1703
- <line num="15" count="61" type="stmt"/>
1704
- <line num="16" count="61" type="stmt"/>
1705
- <line num="18" count="61" type="stmt"/>
1706
- <line num="19" count="61" type="stmt"/>
1707
- <line num="21" count="61" type="stmt"/>
1708
- <line num="22" count="61" type="stmt"/>
1709
- <line num="24" count="61" type="stmt"/>
1710
- <line num="32" count="61" type="stmt"/>
1683
+ <line num="13" count="73" type="stmt"/>
1684
+ <line num="15" count="73" type="stmt"/>
1685
+ <line num="16" count="73" type="stmt"/>
1686
+ <line num="18" count="73" type="stmt"/>
1687
+ <line num="19" count="73" type="stmt"/>
1688
+ <line num="21" count="73" type="stmt"/>
1689
+ <line num="22" count="73" type="stmt"/>
1690
+ <line num="24" count="73" type="stmt"/>
1691
+ <line num="32" count="73" type="stmt"/>
1711
1692
  <line num="34" count="0" type="cond" truecount="0" falsecount="4"/>
1712
1693
  <line num="35" count="0" type="stmt"/>
1713
1694
  <line num="38" count="0" type="cond" truecount="0" falsecount="2"/>
@@ -1715,34 +1696,34 @@
1715
1696
  <line num="40" count="0" type="stmt"/>
1716
1697
  <line num="42" count="0" type="stmt"/>
1717
1698
  <line num="46" count="0" type="stmt"/>
1718
- <line num="51" count="61" type="stmt"/>
1719
- <line num="52" count="18" type="stmt"/>
1720
- <line num="53" count="18" type="stmt"/>
1721
- <line num="54" count="18" type="cond" truecount="1" falsecount="1"/>
1722
- <line num="55" count="18" type="stmt"/>
1723
- <line num="56" count="18" type="stmt"/>
1724
- <line num="60" count="61" type="stmt"/>
1725
- <line num="61" count="18" type="stmt"/>
1726
- <line num="63" count="18" type="stmt"/>
1727
- <line num="64" count="8" type="cond" truecount="1" falsecount="1"/>
1728
- <line num="65" count="8" type="stmt"/>
1729
- <line num="66" count="8" type="stmt"/>
1730
- <line num="68" count="8" type="stmt"/>
1731
- <line num="72" count="61" type="stmt"/>
1732
- <line num="73" count="36" type="cond" truecount="4" falsecount="0"/>
1733
- <line num="76" count="18" type="stmt"/>
1734
- <line num="77" count="18" type="stmt"/>
1735
- <line num="79" count="18" type="cond" truecount="1" falsecount="1"/>
1699
+ <line num="51" count="73" type="stmt"/>
1700
+ <line num="52" count="22" type="stmt"/>
1701
+ <line num="53" count="22" type="stmt"/>
1702
+ <line num="54" count="22" type="cond" truecount="1" falsecount="1"/>
1703
+ <line num="55" count="22" type="stmt"/>
1704
+ <line num="56" count="22" type="stmt"/>
1705
+ <line num="60" count="73" type="stmt"/>
1706
+ <line num="61" count="22" type="stmt"/>
1707
+ <line num="63" count="22" type="stmt"/>
1708
+ <line num="64" count="10" type="cond" truecount="1" falsecount="1"/>
1709
+ <line num="65" count="10" type="stmt"/>
1710
+ <line num="66" count="10" type="stmt"/>
1711
+ <line num="68" count="10" type="stmt"/>
1712
+ <line num="72" count="73" type="stmt"/>
1713
+ <line num="73" count="44" type="cond" truecount="4" falsecount="0"/>
1714
+ <line num="76" count="22" type="stmt"/>
1715
+ <line num="77" count="22" type="stmt"/>
1716
+ <line num="79" count="22" type="cond" truecount="1" falsecount="1"/>
1736
1717
  <line num="80" count="0" type="stmt"/>
1737
1718
  <line num="82" count="0" type="stmt"/>
1738
1719
  <line num="85" count="0" type="cond" truecount="0" falsecount="2"/>
1739
1720
  <line num="86" count="0" type="stmt"/>
1740
- <line num="93" count="18" type="cond" truecount="1" falsecount="1"/>
1741
- <line num="94" count="18" type="stmt"/>
1742
- <line num="96" count="18" type="stmt"/>
1743
- <line num="108" count="61" type="stmt"/>
1744
- <line num="114" count="5" type="stmt"/>
1745
- <line num="126" count="5" type="stmt"/>
1721
+ <line num="93" count="22" type="cond" truecount="1" falsecount="1"/>
1722
+ <line num="94" count="22" type="stmt"/>
1723
+ <line num="96" count="22" type="stmt"/>
1724
+ <line num="108" count="73" type="stmt"/>
1725
+ <line num="114" count="6" type="stmt"/>
1726
+ <line num="126" count="6" type="stmt"/>
1746
1727
  </file>
1747
1728
  <file name="useWms.js" path="/home/runner/work/react-map-components-maplibre/react-map-components-maplibre/src/hooks/useWms.js">
1748
1729
  <metrics statements="35" coveredstatements="0" conditionals="8" coveredconditionals="0" methods="7" coveredmethods="0"/>