@mapcomponents/react-maplibre 0.1.40 → 0.1.43

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 (150) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/coverage/clover.xml +124 -124
  3. package/coverage/coverage-final.json +3 -3
  4. package/coverage/lcov-report/index.html +14 -14
  5. package/coverage/lcov-report/src/components/MapLibreMap/MapLibreMap.tsx.html +1 -1
  6. package/coverage/lcov-report/src/components/MapLibreMap/index.html +1 -1
  7. package/coverage/lcov-report/src/components/MlCreatePdfButton/MlCreatePdfButton.tsx.html +1 -1
  8. package/coverage/lcov-report/src/components/MlCreatePdfButton/index.html +1 -1
  9. package/coverage/lcov-report/src/components/MlFeatureEditor/MlFeatureEditor.tsx.html +1 -1
  10. package/coverage/lcov-report/src/components/MlFeatureEditor/index.html +1 -1
  11. package/coverage/lcov-report/src/components/MlFillExtrusionLayer/MlFillExtrusionLayer.tsx.html +1 -1
  12. package/coverage/lcov-report/src/components/MlFillExtrusionLayer/index.html +1 -1
  13. package/coverage/lcov-report/src/components/MlFollowGps/MlFollowGps.tsx.html +1 -1
  14. package/coverage/lcov-report/src/components/MlFollowGps/index.html +1 -1
  15. package/coverage/lcov-report/src/components/MlGPXViewer/MlGPXViewer.tsx.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.tsx.html +1 -1
  19. package/coverage/lcov-report/src/components/MlGeoJsonLayer/index.html +1 -1
  20. package/coverage/lcov-report/src/components/MlImageMarkerLayer/MlImageMarkerLayer.tsx.html +1 -1
  21. package/coverage/lcov-report/src/components/MlImageMarkerLayer/index.html +1 -1
  22. package/coverage/lcov-report/src/components/MlLayer/MlLayer.tsx.html +1 -1
  23. package/coverage/lcov-report/src/components/MlLayer/index.html +1 -1
  24. package/coverage/lcov-report/src/components/MlLayerMagnify/MlLayerMagnify.tsx.html +1 -1
  25. package/coverage/lcov-report/src/components/MlLayerMagnify/index.html +1 -1
  26. package/coverage/lcov-report/src/components/MlLayerSwipe/MlLayerSwipe.tsx.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.tsx.html +1 -1
  33. package/coverage/lcov-report/src/components/MlMarker/index.html +1 -1
  34. package/coverage/lcov-report/src/components/MlNavigationCompass/MlNavigationCompass.tsx.html +1 -1
  35. package/coverage/lcov-report/src/components/MlNavigationCompass/index.html +1 -1
  36. package/coverage/lcov-report/src/components/MlNavigationTools/MlNavigationTools.tsx.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/MlTransitionGeoJsonLayer/MlTransitionGeoJsonLayer.tsx.html +1 -1
  49. package/coverage/lcov-report/src/components/MlTransitionGeoJsonLayer/index.html +1 -1
  50. package/coverage/lcov-report/src/components/MlUseMapDebugger/MlUseMapDebugger.js.html +1 -1
  51. package/coverage/lcov-report/src/components/MlUseMapDebugger/index.html +1 -1
  52. package/coverage/lcov-report/src/components/MlVectorTileLayer/MlVectorTileLayer.tsx.html +1 -1
  53. package/coverage/lcov-report/src/components/MlVectorTileLayer/index.html +1 -1
  54. package/coverage/lcov-report/src/components/MlWmsFeatureInfoPopup/MlWmsFeatureInfoPopup.js.html +1 -1
  55. package/coverage/lcov-report/src/components/MlWmsFeatureInfoPopup/index.html +1 -1
  56. package/coverage/lcov-report/src/components/MlWmsLayer/MlWmsLayer.tsx.html +1 -1
  57. package/coverage/lcov-report/src/components/MlWmsLayer/index.html +1 -1
  58. package/coverage/lcov-report/src/components/MlWmsLoader/MlWmsLoader.tsx.html +51 -15
  59. package/coverage/lcov-report/src/components/MlWmsLoader/index.html +1 -1
  60. package/coverage/lcov-report/src/contexts/MapContext.tsx.html +1 -1
  61. package/coverage/lcov-report/src/contexts/SimpleDataContext.js.html +1 -1
  62. package/coverage/lcov-report/src/contexts/SimpleDataProvider.js.html +1 -1
  63. package/coverage/lcov-report/src/contexts/index.html +1 -1
  64. package/coverage/lcov-report/src/hooks/index.html +17 -17
  65. package/coverage/lcov-report/src/hooks/useLayer.ts.html +19 -31
  66. package/coverage/lcov-report/src/hooks/useMap.ts.html +17 -11
  67. package/coverage/lcov-report/src/hooks/useMapState.ts.html +1 -1
  68. package/coverage/lcov-report/src/hooks/useWms.js.html +1 -1
  69. package/coverage/lcov-report/src/index.html +1 -1
  70. package/coverage/lcov-report/src/index.ts.html +1 -1
  71. package/coverage/lcov.info +253 -255
  72. package/dist/index.esm.js +11 -10
  73. package/dist/index.esm.js.map +1 -1
  74. package/docs-build/{0.93d0ce3d.iframe.bundle.js → 0.b1b9b035.iframe.bundle.js} +2 -2
  75. package/docs-build/0.b1b9b035.iframe.bundle.js.map +1 -0
  76. package/docs-build/{1.2b1ae3fa.iframe.bundle.js → 1.c50fb367.iframe.bundle.js} +3 -3
  77. package/docs-build/1.c50fb367.iframe.bundle.js.map +1 -0
  78. package/docs-build/{16.2c8135a1.iframe.bundle.js → 17.2e544968.iframe.bundle.js} +2 -2
  79. package/docs-build/17.2e544968.iframe.bundle.js.map +1 -0
  80. package/docs-build/{17.9a16865a.iframe.bundle.js → 18.42087006.iframe.bundle.js} +3 -3
  81. package/docs-build/18.42087006.iframe.bundle.js.map +1 -0
  82. package/docs-build/{18.4c47f37e.iframe.bundle.js → 19.7e782442.iframe.bundle.js} +2 -2
  83. package/docs-build/19.7e782442.iframe.bundle.js.map +1 -0
  84. package/docs-build/{2.4518b817.iframe.bundle.js → 2.e58dc625.iframe.bundle.js} +2 -2
  85. package/docs-build/2.e58dc625.iframe.bundle.js.map +1 -0
  86. package/docs-build/{19.cdf25e28.iframe.bundle.js → 20.f009289a.iframe.bundle.js} +2 -2
  87. package/docs-build/20.f009289a.iframe.bundle.js.map +1 -0
  88. package/docs-build/{20.4c43e27c.iframe.bundle.js → 21.1cdc9040.iframe.bundle.js} +2 -2
  89. package/docs-build/21.1cdc9040.iframe.bundle.js.map +1 -0
  90. package/docs-build/{21.19c21085.iframe.bundle.js → 22.c9e6b2d7.iframe.bundle.js} +2 -2
  91. package/docs-build/22.c9e6b2d7.iframe.bundle.js.map +1 -0
  92. package/docs-build/{3.5dd9e88b.iframe.bundle.js → 3.a8172b89.iframe.bundle.js} +2 -2
  93. package/docs-build/3.a8172b89.iframe.bundle.js.map +1 -0
  94. package/docs-build/iframe.html +1 -1
  95. package/docs-build/main~24120820.edd86ba9.iframe.bundle.js +2 -0
  96. package/docs-build/main~24120820.edd86ba9.iframe.bundle.js.map +1 -0
  97. package/docs-build/{vendors~main~0ad7406a.22b96f8e.iframe.bundle.js → vendors~main~0ad7406a.2054ae7c.iframe.bundle.js} +3 -3
  98. package/docs-build/vendors~main~0ad7406a.2054ae7c.iframe.bundle.js.map +1 -0
  99. package/docs-build/vendors~main~0f485567.de36692f.iframe.bundle.js +2 -0
  100. package/docs-build/vendors~main~0f485567.de36692f.iframe.bundle.js.map +1 -0
  101. package/docs-build/{vendors~main~41a6ab2c.7f3a1ced.iframe.bundle.js → vendors~main~41a6ab2c.a947ed53.iframe.bundle.js} +2 -2
  102. package/docs-build/vendors~main~41a6ab2c.a947ed53.iframe.bundle.js.map +1 -0
  103. package/docs-build/vendors~main~57c1f6cb.6a433835.iframe.bundle.js +2 -0
  104. package/docs-build/vendors~main~57c1f6cb.6a433835.iframe.bundle.js.map +1 -0
  105. package/docs-build/{vendors~main~73914085.3d4f5bbf.iframe.bundle.js → vendors~main~73914085.a8e03e3b.iframe.bundle.js} +6 -6
  106. package/docs-build/{vendors~main~73914085.3d4f5bbf.iframe.bundle.js.map → vendors~main~73914085.a8e03e3b.iframe.bundle.js.map} +1 -1
  107. package/docs-build/{vendors~main~9c5b28f6.f8614bdc.iframe.bundle.js → vendors~main~9c5b28f6.7b8beed1.iframe.bundle.js} +3 -3
  108. package/docs-build/vendors~main~9c5b28f6.7b8beed1.iframe.bundle.js.map +1 -0
  109. package/docs-build/{vendors~main~b5906859.b606e812.iframe.bundle.js → vendors~main~b5906859.7f66dcaf.iframe.bundle.js} +5 -5
  110. package/docs-build/vendors~main~b5906859.7f66dcaf.iframe.bundle.js.map +1 -0
  111. package/docs-build/{vendors~main~b8f44717.7a612c34.iframe.bundle.js → vendors~main~b8f44717.7053e467.iframe.bundle.js} +3 -3
  112. package/docs-build/vendors~main~b8f44717.7053e467.iframe.bundle.js.map +1 -0
  113. package/docs-build/{vendors~main~b9cf3951.a6200a51.iframe.bundle.js → vendors~main~b9cf3951.a4fd68f5.iframe.bundle.js} +11 -11
  114. package/docs-build/vendors~main~b9cf3951.a4fd68f5.iframe.bundle.js.map +1 -0
  115. package/docs-build/vendors~main~d939e436.ba1cad1b.iframe.bundle.js +2 -0
  116. package/docs-build/vendors~main~d939e436.ba1cad1b.iframe.bundle.js.map +1 -0
  117. package/docs-build/vendors~main~f420d588.59c93444.iframe.bundle.js +107 -0
  118. package/docs-build/vendors~main~f420d588.59c93444.iframe.bundle.js.map +1 -0
  119. package/package.json +1 -1
  120. package/rollup.config.js +1 -1
  121. package/src/components/MapLibreMap/lib/MapLibreGlWrapper.ts +2 -0
  122. package/src/components/MlGeoJsonLayer/util/getDefaultPaintPropsByType.ts +1 -1
  123. package/src/components/MlWmsLoader/MlWmsLoader.tsx +25 -13
  124. package/src/hooks/useLayer.ts +7 -11
  125. package/src/hooks/useMap.ts +4 -2
  126. package/docs-build/0.93d0ce3d.iframe.bundle.js.map +0 -1
  127. package/docs-build/1.2b1ae3fa.iframe.bundle.js.map +0 -1
  128. package/docs-build/16.2c8135a1.iframe.bundle.js.map +0 -1
  129. package/docs-build/17.9a16865a.iframe.bundle.js.map +0 -1
  130. package/docs-build/18.4c47f37e.iframe.bundle.js.map +0 -1
  131. package/docs-build/19.cdf25e28.iframe.bundle.js.map +0 -1
  132. package/docs-build/2.4518b817.iframe.bundle.js.map +0 -1
  133. package/docs-build/20.4c43e27c.iframe.bundle.js.map +0 -1
  134. package/docs-build/21.19c21085.iframe.bundle.js.map +0 -1
  135. package/docs-build/3.5dd9e88b.iframe.bundle.js.map +0 -1
  136. package/docs-build/main~24120820.e0a66582.iframe.bundle.js +0 -2
  137. package/docs-build/main~24120820.e0a66582.iframe.bundle.js.map +0 -1
  138. package/docs-build/stories.json +0 -579
  139. package/docs-build/vendors~main~0ad7406a.22b96f8e.iframe.bundle.js.map +0 -1
  140. package/docs-build/vendors~main~0f485567.df27e62a.iframe.bundle.js +0 -2
  141. package/docs-build/vendors~main~0f485567.df27e62a.iframe.bundle.js.map +0 -1
  142. package/docs-build/vendors~main~41a6ab2c.7f3a1ced.iframe.bundle.js.map +0 -1
  143. package/docs-build/vendors~main~9c5b28f6.f8614bdc.iframe.bundle.js.map +0 -1
  144. package/docs-build/vendors~main~b5906859.b606e812.iframe.bundle.js.map +0 -1
  145. package/docs-build/vendors~main~b8f44717.7a612c34.iframe.bundle.js.map +0 -1
  146. package/docs-build/vendors~main~b9cf3951.a6200a51.iframe.bundle.js.map +0 -1
  147. package/docs-build/vendors~main~d939e436.aa5d1533.iframe.bundle.js +0 -2
  148. package/docs-build/vendors~main~d939e436.aa5d1533.iframe.bundle.js.map +0 -1
  149. package/docs-build/vendors~main~dab50aa4.277284e0.iframe.bundle.js +0 -107
  150. package/docs-build/vendors~main~dab50aa4.277284e0.iframe.bundle.js.map +0 -1
@@ -2630,25 +2630,25 @@ TN:
2630
2630
  SF:src/components/MlWmsLoader/MlWmsLoader.tsx
2631
2631
  FN:21,(anonymous_0)
2632
2632
  FN:67,(anonymous_1)
2633
- FN:85,(anonymous_2)
2634
- FN:88,(anonymous_3)
2635
- FN:103,(anonymous_4)
2636
- FN:110,(anonymous_5)
2637
- FN:129,(anonymous_6)
2638
- FN:130,(anonymous_7)
2639
- FN:132,(anonymous_8)
2640
- FN:133,(anonymous_9)
2641
- FN:162,(anonymous_10)
2642
- FN:168,(anonymous_11)
2643
- FN:172,(anonymous_12)
2644
- FN:177,(anonymous_13)
2645
- FN:183,(anonymous_14)
2646
- FN:188,(anonymous_15)
2647
- FN:202,(anonymous_16)
2648
- FN:224,(anonymous_17)
2649
- FN:239,(anonymous_18)
2650
- FN:252,(anonymous_19)
2651
- FN:260,(anonymous_20)
2633
+ FN:92,(anonymous_2)
2634
+ FN:95,(anonymous_3)
2635
+ FN:110,(anonymous_4)
2636
+ FN:117,(anonymous_5)
2637
+ FN:136,(anonymous_6)
2638
+ FN:139,(anonymous_7)
2639
+ FN:141,(anonymous_8)
2640
+ FN:144,(anonymous_9)
2641
+ FN:174,(anonymous_10)
2642
+ FN:180,(anonymous_11)
2643
+ FN:184,(anonymous_12)
2644
+ FN:189,(anonymous_13)
2645
+ FN:195,(anonymous_14)
2646
+ FN:200,(anonymous_15)
2647
+ FN:214,(anonymous_16)
2648
+ FN:236,(anonymous_17)
2649
+ FN:251,(anonymous_18)
2650
+ FN:264,(anonymous_19)
2651
+ FN:272,(anonymous_20)
2652
2652
  FNF:21
2653
2653
  FNH:0
2654
2654
  FNDA:0,(anonymous_0)
@@ -2686,142 +2686,142 @@ DA:31,0
2686
2686
  DA:67,0
2687
2687
  DA:69,0
2688
2688
  DA:70,0
2689
- DA:77,0
2690
- DA:78,0
2691
- DA:79,0
2692
- DA:80,0
2693
- DA:82,0
2694
- DA:83,0
2689
+ DA:84,0
2695
2690
  DA:85,0
2696
2691
  DA:86,0
2697
- DA:88,0
2692
+ DA:87,0
2693
+ DA:89,0
2694
+ DA:90,0
2695
+ DA:92,0
2696
+ DA:93,0
2698
2697
  DA:95,0
2699
- DA:96,0
2700
- DA:97,0
2701
- DA:99,0
2698
+ DA:102,0
2702
2699
  DA:103,0
2703
2700
  DA:104,0
2704
2701
  DA:106,0
2705
- DA:109,0
2702
+ DA:110,0
2706
2703
  DA:111,0
2707
- DA:112,0
2708
2704
  DA:113,0
2709
- DA:114,0
2710
- DA:115,0
2711
2705
  DA:116,0
2712
- DA:117,0
2713
2706
  DA:118,0
2714
- DA:129,0
2715
- DA:130,0
2716
- DA:132,0
2717
- DA:133,0
2718
- DA:146,0
2719
- DA:148,0
2720
- DA:149,0
2721
- DA:150,0
2722
- DA:152,0
2723
- DA:154,0
2707
+ DA:119,0
2708
+ DA:120,0
2709
+ DA:121,0
2710
+ DA:122,0
2711
+ DA:123,0
2712
+ DA:124,0
2713
+ DA:125,0
2714
+ DA:137,0
2715
+ DA:139,0
2716
+ DA:142,0
2717
+ DA:144,0
2718
+ DA:157,0
2724
2719
  DA:159,0
2720
+ DA:160,0
2725
2721
  DA:161,0
2726
2722
  DA:163,0
2727
- DA:164,0
2728
- DA:166,0
2729
- DA:169,0
2730
- DA:170,0
2731
- DA:172,0
2732
- DA:177,0
2723
+ DA:165,0
2724
+ DA:171,0
2725
+ DA:173,0
2726
+ DA:175,0
2727
+ DA:176,0
2733
2728
  DA:178,0
2734
- DA:180,0
2729
+ DA:181,0
2735
2730
  DA:182,0
2736
- DA:183,0
2737
2731
  DA:184,0
2738
- DA:188,0
2739
2732
  DA:189,0
2740
- DA:191,0
2733
+ DA:190,0
2741
2734
  DA:192,0
2735
+ DA:194,0
2736
+ DA:195,0
2742
2737
  DA:196,0
2743
2738
  DA:200,0
2744
2739
  DA:201,0
2745
2740
  DA:203,0
2746
2741
  DA:204,0
2747
- DA:205,0
2748
- DA:206,0
2749
- DA:209,0
2750
- DA:210,0
2742
+ DA:208,0
2743
+ DA:212,0
2744
+ DA:213,0
2751
2745
  DA:215,0
2752
2746
  DA:216,0
2753
- DA:224,0
2754
- DA:225,0
2747
+ DA:217,0
2748
+ DA:218,0
2749
+ DA:221,0
2750
+ DA:222,0
2751
+ DA:227,0
2755
2752
  DA:228,0
2756
- DA:229,0
2757
- DA:230,0
2758
- DA:231,0
2759
- DA:234,0
2753
+ DA:236,0
2754
+ DA:237,0
2760
2755
  DA:240,0
2761
- DA:253,0
2762
- DA:261,0
2763
- DA:262,0
2764
- DA:263,0
2765
- DA:293,0
2756
+ DA:241,0
2757
+ DA:242,0
2758
+ DA:243,0
2759
+ DA:246,0
2760
+ DA:252,0
2761
+ DA:265,0
2762
+ DA:273,0
2763
+ DA:274,0
2764
+ DA:275,0
2765
+ DA:305,0
2766
2766
  LF:91
2767
2767
  LH:0
2768
2768
  BRDA:21,0,0,0
2769
2769
  BRDA:27,1,0,0
2770
2770
  BRDA:27,1,1,0
2771
- BRDA:79,2,0,0
2772
- BRDA:79,2,1,0
2773
- BRDA:95,3,0,0
2774
- BRDA:95,3,1,0
2775
- BRDA:104,4,0,0
2776
- BRDA:104,4,1,0
2777
- BRDA:111,5,0,0
2778
- BRDA:111,5,1,0
2779
- BRDA:124,6,0,0
2780
- BRDA:124,6,1,0
2781
- BRDA:129,7,0,0
2782
- BRDA:129,7,1,0
2783
- BRDA:129,8,0,0
2784
- BRDA:129,8,1,0
2785
- BRDA:132,9,0,0
2786
- BRDA:132,9,1,0
2787
- BRDA:132,10,0,0
2788
- BRDA:132,10,1,0
2789
- BRDA:148,11,0,0
2790
- BRDA:148,11,1,0
2791
- BRDA:163,12,0,0
2792
- BRDA:163,12,1,0
2793
- BRDA:178,13,0,0
2794
- BRDA:178,13,1,0
2795
- BRDA:189,14,0,0
2796
- BRDA:189,14,1,0
2797
- BRDA:191,15,0,0
2798
- BRDA:191,15,1,0
2799
- BRDA:203,16,0,0
2800
- BRDA:203,16,1,0
2801
- BRDA:205,17,0,0
2802
- BRDA:205,17,1,0
2803
- BRDA:209,18,0,0
2804
- BRDA:209,18,1,0
2805
- BRDA:215,19,0,0
2806
- BRDA:215,19,1,0
2807
- BRDA:215,20,0,0
2808
- BRDA:215,20,1,0
2809
- BRDA:225,21,0,0
2810
- BRDA:225,21,1,0
2811
- BRDA:225,22,0,0
2812
- BRDA:225,22,1,0
2813
- BRDA:236,23,0,0
2814
- BRDA:236,23,1,0
2815
- BRDA:243,24,0,0
2816
- BRDA:243,24,1,0
2817
- BRDA:251,25,0,0
2818
- BRDA:251,25,1,0
2819
- BRDA:253,26,0,0
2820
- BRDA:253,26,1,0
2821
- BRDA:266,27,0,0
2822
- BRDA:266,27,1,0
2823
- BRDA:288,28,0,0
2824
- BRDA:288,28,1,0
2771
+ BRDA:86,2,0,0
2772
+ BRDA:86,2,1,0
2773
+ BRDA:102,3,0,0
2774
+ BRDA:102,3,1,0
2775
+ BRDA:111,4,0,0
2776
+ BRDA:111,4,1,0
2777
+ BRDA:118,5,0,0
2778
+ BRDA:118,5,1,0
2779
+ BRDA:131,6,0,0
2780
+ BRDA:131,6,1,0
2781
+ BRDA:137,7,0,0
2782
+ BRDA:137,7,1,0
2783
+ BRDA:137,8,0,0
2784
+ BRDA:137,8,1,0
2785
+ BRDA:142,9,0,0
2786
+ BRDA:142,9,1,0
2787
+ BRDA:142,10,0,0
2788
+ BRDA:142,10,1,0
2789
+ BRDA:159,11,0,0
2790
+ BRDA:159,11,1,0
2791
+ BRDA:175,12,0,0
2792
+ BRDA:175,12,1,0
2793
+ BRDA:190,13,0,0
2794
+ BRDA:190,13,1,0
2795
+ BRDA:201,14,0,0
2796
+ BRDA:201,14,1,0
2797
+ BRDA:203,15,0,0
2798
+ BRDA:203,15,1,0
2799
+ BRDA:215,16,0,0
2800
+ BRDA:215,16,1,0
2801
+ BRDA:217,17,0,0
2802
+ BRDA:217,17,1,0
2803
+ BRDA:221,18,0,0
2804
+ BRDA:221,18,1,0
2805
+ BRDA:227,19,0,0
2806
+ BRDA:227,19,1,0
2807
+ BRDA:227,20,0,0
2808
+ BRDA:227,20,1,0
2809
+ BRDA:237,21,0,0
2810
+ BRDA:237,21,1,0
2811
+ BRDA:237,22,0,0
2812
+ BRDA:237,22,1,0
2813
+ BRDA:248,23,0,0
2814
+ BRDA:248,23,1,0
2815
+ BRDA:255,24,0,0
2816
+ BRDA:255,24,1,0
2817
+ BRDA:263,25,0,0
2818
+ BRDA:263,25,1,0
2819
+ BRDA:265,26,0,0
2820
+ BRDA:265,26,1,0
2821
+ BRDA:278,27,0,0
2822
+ BRDA:278,27,1,0
2823
+ BRDA:300,28,0,0
2824
+ BRDA:300,28,1,0
2825
2825
  BRF:57
2826
2826
  BRH:0
2827
2827
  end_of_record
@@ -3003,12 +3003,12 @@ TN:
3003
3003
  SF:src/hooks/useLayer.ts
3004
3004
  FN:42,useLayer
3005
3005
  FN:59,(anonymous_1)
3006
- FN:103,(anonymous_2)
3007
- FN:126,(anonymous_3)
3008
- FN:134,(anonymous_4)
3009
- FN:164,(anonymous_5)
3010
- FN:169,(anonymous_6)
3011
- FN:170,(anonymous_7)
3006
+ FN:108,(anonymous_2)
3007
+ FN:123,(anonymous_3)
3008
+ FN:130,(anonymous_4)
3009
+ FN:160,(anonymous_5)
3010
+ FN:165,(anonymous_6)
3011
+ FN:166,(anonymous_7)
3012
3012
  FNF:8
3013
3013
  FNH:8
3014
3014
  FNDA:60,useLayer
@@ -3031,53 +3031,52 @@ DA:59,60
3031
3031
  DA:60,14
3032
3032
  DA:61,14
3033
3033
  DA:63,14
3034
- DA:84,14
3035
- DA:86,14
3036
- DA:87,0
3037
- DA:90,14
3038
- DA:91,0
3039
- DA:94,14
3040
- DA:95,0
3041
- DA:98,14
3034
+ DA:65,0
3035
+ DA:68,14
3036
+ DA:89,14
3037
+ DA:91,14
3038
+ DA:92,0
3039
+ DA:95,14
3040
+ DA:96,0
3042
3041
  DA:99,14
3043
- DA:100,14
3044
- DA:103,60
3045
- DA:104,60
3046
- DA:106,32
3047
- DA:113,0
3048
- DA:114,32
3049
- DA:120,18
3050
- DA:123,14
3051
- DA:126,60
3052
- DA:127,28
3053
- DA:128,16
3054
- DA:131,12
3055
- DA:134,60
3056
- DA:135,60
3057
- DA:136,28
3058
- DA:140,32
3059
- DA:141,32
3042
+ DA:100,0
3043
+ DA:103,14
3044
+ DA:104,14
3045
+ DA:105,14
3046
+ DA:108,60
3047
+ DA:109,60
3048
+ DA:111,32
3049
+ DA:117,18
3050
+ DA:120,14
3051
+ DA:123,60
3052
+ DA:124,28
3053
+ DA:127,12
3054
+ DA:130,60
3055
+ DA:131,60
3056
+ DA:132,28
3057
+ DA:136,32
3058
+ DA:137,32
3059
+ DA:138,0
3060
+ DA:140,0
3061
+ DA:141,0
3060
3062
  DA:142,0
3061
- DA:144,0
3062
3063
  DA:145,0
3063
- DA:146,0
3064
- DA:149,0
3065
- DA:152,32
3066
- DA:153,32
3067
- DA:154,0
3068
- DA:155,0
3064
+ DA:148,32
3065
+ DA:149,32
3066
+ DA:150,0
3067
+ DA:151,0
3068
+ DA:152,0
3069
+ DA:153,0
3069
3070
  DA:156,0
3070
- DA:157,0
3071
- DA:160,0
3072
- DA:164,60
3073
- DA:165,7
3074
- DA:166,7
3075
- DA:169,60
3076
- DA:170,14
3077
- DA:171,7
3078
- DA:175,60
3079
- LF:57
3080
- LH:43
3071
+ DA:160,60
3072
+ DA:161,7
3073
+ DA:162,7
3074
+ DA:165,60
3075
+ DA:166,14
3076
+ DA:167,7
3077
+ DA:171,60
3078
+ LF:56
3079
+ LH:42
3081
3080
  BRDA:56,0,0,60
3082
3081
  BRDA:56,0,1,20
3083
3082
  BRDA:56,1,0,20
@@ -3086,72 +3085,70 @@ BRDA:60,2,0,0
3086
3085
  BRDA:60,2,1,14
3087
3086
  BRDA:60,3,0,14
3088
3087
  BRDA:60,3,1,14
3089
- BRDA:66,4,0,8
3090
- BRDA:66,4,1,6
3091
- BRDA:76,5,0,0
3092
- BRDA:76,5,1,14
3093
- BRDA:78,6,0,2
3094
- BRDA:78,6,1,12
3095
- BRDA:86,7,0,0
3096
- BRDA:86,7,1,14
3097
- BRDA:90,8,0,0
3098
- BRDA:90,8,1,14
3099
- BRDA:94,9,0,0
3100
- BRDA:94,9,1,14
3101
- BRDA:104,10,0,28
3102
- BRDA:104,10,1,32
3103
- BRDA:106,11,0,0
3104
- BRDA:106,11,1,32
3105
- BRDA:107,12,0,32
3106
- BRDA:107,12,1,18
3107
- BRDA:107,12,2,18
3108
- BRDA:107,12,3,18
3109
- BRDA:114,13,0,18
3110
- BRDA:114,13,1,14
3111
- BRDA:115,14,0,32
3112
- BRDA:115,14,1,18
3113
- BRDA:115,14,2,18
3114
- BRDA:115,14,3,18
3115
- BRDA:127,15,0,16
3116
- BRDA:127,15,1,12
3117
- BRDA:127,16,0,28
3118
- BRDA:127,16,1,14
3119
- BRDA:135,17,0,28
3120
- BRDA:135,17,1,32
3121
- BRDA:135,18,0,60
3122
- BRDA:135,18,1,32
3123
- BRDA:135,18,2,32
3124
- BRDA:141,19,0,0
3125
- BRDA:141,19,1,32
3126
- BRDA:141,20,0,32
3127
- BRDA:141,20,1,16
3128
- BRDA:145,21,0,0
3129
- BRDA:145,21,1,0
3130
- BRDA:145,22,0,0
3131
- BRDA:145,22,1,0
3132
- BRDA:153,23,0,0
3133
- BRDA:153,23,1,32
3134
- BRDA:156,24,0,0
3135
- BRDA:156,24,1,0
3136
- BRDA:156,25,0,0
3137
- BRDA:156,25,1,0
3138
- BRF:57
3139
- BRH:40
3088
+ BRDA:63,4,0,0
3089
+ BRDA:63,4,1,14
3090
+ BRDA:71,5,0,8
3091
+ BRDA:71,5,1,6
3092
+ BRDA:81,6,0,0
3093
+ BRDA:81,6,1,14
3094
+ BRDA:83,7,0,2
3095
+ BRDA:83,7,1,12
3096
+ BRDA:91,8,0,0
3097
+ BRDA:91,8,1,14
3098
+ BRDA:95,9,0,0
3099
+ BRDA:95,9,1,14
3100
+ BRDA:99,10,0,0
3101
+ BRDA:99,10,1,14
3102
+ BRDA:109,11,0,28
3103
+ BRDA:109,11,1,32
3104
+ BRDA:111,12,0,18
3105
+ BRDA:111,12,1,14
3106
+ BRDA:112,13,0,32
3107
+ BRDA:112,13,1,18
3108
+ BRDA:112,13,2,18
3109
+ BRDA:112,13,3,18
3110
+ BRDA:124,14,0,16
3111
+ BRDA:124,14,1,12
3112
+ BRDA:124,15,0,28
3113
+ BRDA:124,15,1,14
3114
+ BRDA:131,16,0,28
3115
+ BRDA:131,16,1,32
3116
+ BRDA:131,17,0,60
3117
+ BRDA:131,17,1,32
3118
+ BRDA:131,17,2,32
3119
+ BRDA:137,18,0,0
3120
+ BRDA:137,18,1,32
3121
+ BRDA:137,19,0,32
3122
+ BRDA:137,19,1,16
3123
+ BRDA:141,20,0,0
3124
+ BRDA:141,20,1,0
3125
+ BRDA:141,21,0,0
3126
+ BRDA:141,21,1,0
3127
+ BRDA:149,22,0,0
3128
+ BRDA:149,22,1,32
3129
+ BRDA:152,23,0,0
3130
+ BRDA:152,23,1,0
3131
+ BRDA:152,24,0,0
3132
+ BRDA:152,24,1,0
3133
+ BRF:53
3134
+ BRH:36
3140
3135
  end_of_record
3141
3136
  TN:
3142
3137
  SF:src/hooks/useMap.ts
3143
3138
  FN:15,useMap
3144
3139
  FN:39,(anonymous_1)
3145
- FN:48,(anonymous_2)
3146
- FN:52,(anonymous_3)
3147
- FN:60,(anonymous_4)
3148
- FNF:5
3149
- FNH:4
3140
+ FN:47,(anonymous_2)
3141
+ FN:48,(anonymous_3)
3142
+ FN:54,(anonymous_4)
3143
+ FN:62,(anonymous_5)
3144
+ FNF:6
3145
+ FNH:5
3150
3146
  FNDA:169,useMap
3151
3147
  FNDA:30,(anonymous_1)
3152
3148
  FNDA:48,(anonymous_2)
3153
- FNDA:96,(anonymous_3)
3154
- FNDA:0,(anonymous_4)
3149
+ FNDA:23,(anonymous_3)
3150
+ FNDA:96,(anonymous_4)
3151
+ FNDA:0,(anonymous_5)
3155
3152
  DA:17,169
3156
3153
  DA:18,169
3157
3154
  DA:20,169
@@ -3164,39 +3161,40 @@ DA:40,30
3164
3161
  DA:41,23
3165
3162
  DA:42,23
3166
3163
  DA:44,30
3167
- DA:45,30
3168
- DA:48,169
3169
- DA:49,48
3170
- DA:52,169
3171
- DA:53,96
3172
- DA:57,48
3173
- DA:58,0
3164
+ DA:47,169
3165
+ DA:48,48
3166
+ DA:49,23
3167
+ DA:50,23
3168
+ DA:54,169
3169
+ DA:55,96
3170
+ DA:59,48
3174
3171
  DA:60,0
3175
- DA:61,0
3176
3172
  DA:62,0
3177
- DA:65,0
3178
- DA:66,0
3179
- DA:71,48
3180
- DA:72,48
3173
+ DA:63,0
3174
+ DA:64,0
3175
+ DA:67,0
3176
+ DA:68,0
3181
3177
  DA:73,48
3182
3178
  DA:74,48
3183
- DA:77,169
3184
- LF:29
3185
- LH:23
3179
+ DA:75,48
3180
+ DA:76,48
3181
+ DA:79,169
3182
+ LF:30
3183
+ LH:24
3186
3184
  BRDA:24,0,0,0
3187
3185
  BRDA:24,0,1,169
3188
3186
  BRDA:40,1,0,23
3189
3187
  BRDA:40,1,1,7
3190
- BRDA:53,2,0,48
3191
- BRDA:53,2,1,48
3192
- BRDA:53,3,0,96
3193
- BRDA:53,3,1,48
3194
- BRDA:57,4,0,0
3195
- BRDA:57,4,1,48
3196
- BRDA:61,5,0,0
3197
- BRDA:61,5,1,0
3198
- BRDA:65,6,0,0
3199
- BRDA:65,6,1,0
3188
+ BRDA:55,2,0,48
3189
+ BRDA:55,2,1,48
3190
+ BRDA:55,3,0,96
3191
+ BRDA:55,3,1,48
3192
+ BRDA:59,4,0,0
3193
+ BRDA:59,4,1,48
3194
+ BRDA:63,5,0,0
3195
+ BRDA:63,5,1,0
3196
+ BRDA:67,6,0,0
3197
+ BRDA:67,6,1,0
3200
3198
  BRF:14
3201
3199
  BRH:8
3202
3200
  end_of_record
package/dist/index.esm.js CHANGED
@@ -697,6 +697,8 @@ var MapLibreGlWrapper = /** @class */ (function () {
697
697
  _a.label = 2;
698
698
  case 2:
699
699
  self.map = new Map$1(props.mapOptions);
700
+ //@ts-ignore
701
+ window._map = self.map;
700
702
  self.addNativeMaplibreFunctionsAndProps();
701
703
  self.wrapper.refreshViewport();
702
704
  self.wrapper.fire("viewportchange");
@@ -953,10 +955,12 @@ function useMap(props) {
953
955
  mapRef.current = undefined;
954
956
  }
955
957
  initializedRef.current = false;
956
- setMapIsReady(false);
957
958
  };
958
959
  useEffect(function () {
959
- return cleanup;
960
+ return function () {
961
+ cleanup();
962
+ setMapIsReady(false);
963
+ };
960
964
  }, []);
961
965
  useEffect(function () {
962
966
  var _a;
@@ -12219,6 +12223,10 @@ function useLayer(props) {
12219
12223
  if (initializedRef.current || !mapHook.map)
12220
12224
  return;
12221
12225
  initializedRef.current = true;
12226
+ if (mapHook.map.map.getLayer(layerId.current)) {
12227
+ // remove (cleanup) & reinitialize the layer if type has changed
12228
+ cleanup();
12229
+ }
12222
12230
  mapHook.map.addLayer(__assign(__assign(__assign({}, props.options), (props.geojson
12223
12231
  ? {
12224
12232
  source: {
@@ -12249,13 +12257,6 @@ function useLayer(props) {
12249
12257
  if (!mapHook.map)
12250
12258
  return;
12251
12259
  if (initializedRef.current &&
12252
- legalLayerTypes.indexOf(props.options.type) !== -1 &&
12253
- layerTypeRef.current &&
12254
- props.options.type !== layerTypeRef.current) {
12255
- // remove (cleanup) & reinitialize the layer if type has changed
12256
- cleanup();
12257
- }
12258
- else if (initializedRef.current &&
12259
12260
  (legalLayerTypes.indexOf(props.options.type) === -1 ||
12260
12261
  (legalLayerTypes.indexOf(props.options.type) !== -1 &&
12261
12262
  props.options.type === layerTypeRef.current))) {
@@ -12373,7 +12374,7 @@ var getDefaultPaintPropsByType = function (type, defaultPaintOverrides) {
12373
12374
  return defaultPaintOverrides.circle;
12374
12375
  }
12375
12376
  return {
12376
- "circle-color": "rgba(10,240,256)",
12377
+ "circle-color": "rgba(10,240,256,0.8)",
12377
12378
  "circle-stroke-color": "#fff",
12378
12379
  "circle-stroke-width": 2,
12379
12380
  };