@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.
- package/CHANGELOG.md +16 -7
- package/coverage/clover.xml +43 -42
- package/coverage/coverage-final.json +1 -1
- package/coverage/lcov-report/index.html +15 -15
- package/coverage/lcov-report/src/components/MapLibreMap/MapLibreMap.js.html +1 -1
- package/coverage/lcov-report/src/components/MapLibreMap/index.html +1 -1
- package/coverage/lcov-report/src/components/MlCreatePdfButton/MlCreatePdfButton.js.html +1 -1
- package/coverage/lcov-report/src/components/MlCreatePdfButton/index.html +1 -1
- package/coverage/lcov-report/src/components/MlFeatureEditor/MlFeatureEditor.js.html +1 -1
- package/coverage/lcov-report/src/components/MlFeatureEditor/index.html +1 -1
- package/coverage/lcov-report/src/components/MlFillExtrusionLayer/MlFillExtrusionLayer.js.html +1 -1
- package/coverage/lcov-report/src/components/MlFillExtrusionLayer/index.html +1 -1
- package/coverage/lcov-report/src/components/MlFollowGps/MlFollowGps.js.html +1 -1
- package/coverage/lcov-report/src/components/MlFollowGps/index.html +1 -1
- package/coverage/lcov-report/src/components/MlGPXViewer/MlGPXViewer.js.html +1 -1
- package/coverage/lcov-report/src/components/MlGPXViewer/gpxConverter.js.html +1 -1
- package/coverage/lcov-report/src/components/MlGPXViewer/index.html +1 -1
- package/coverage/lcov-report/src/components/MlGeoJsonLayer/MlGeoJsonLayer.js.html +39 -12
- package/coverage/lcov-report/src/components/MlGeoJsonLayer/index.html +15 -15
- package/coverage/lcov-report/src/components/MlImageMarkerLayer/MlImageMarkerLayer.js.html +1 -1
- package/coverage/lcov-report/src/components/MlImageMarkerLayer/index.html +1 -1
- package/coverage/lcov-report/src/components/MlLayer/MlLayer.js.html +1 -1
- package/coverage/lcov-report/src/components/MlLayer/index.html +1 -1
- package/coverage/lcov-report/src/components/MlLayerMagnify/MlLayerMagnify.js.html +1 -1
- package/coverage/lcov-report/src/components/MlLayerMagnify/index.html +1 -1
- package/coverage/lcov-report/src/components/MlLayerSwipe/MlLayerSwipe.js.html +1 -1
- package/coverage/lcov-report/src/components/MlLayerSwipe/index.html +1 -1
- package/coverage/lcov-report/src/components/MlLayerSwitcher/MlLayerSwitcher.js.html +1 -1
- package/coverage/lcov-report/src/components/MlLayerSwitcher/components/LayerBox.js.html +1 -1
- package/coverage/lcov-report/src/components/MlLayerSwitcher/components/index.html +1 -1
- package/coverage/lcov-report/src/components/MlLayerSwitcher/index.html +1 -1
- package/coverage/lcov-report/src/components/MlMarker/MlMarker.js.html +1 -1
- package/coverage/lcov-report/src/components/MlMarker/index.html +1 -1
- package/coverage/lcov-report/src/components/MlNavigationCompass/MlNavigationCompass.js.html +1 -1
- package/coverage/lcov-report/src/components/MlNavigationCompass/index.html +1 -1
- package/coverage/lcov-report/src/components/MlNavigationTools/MlNavigationTools.js.html +1 -1
- package/coverage/lcov-report/src/components/MlNavigationTools/index.html +1 -1
- package/coverage/lcov-report/src/components/MlOsmLayer/MlOsmLayer.js.html +1 -1
- package/coverage/lcov-report/src/components/MlOsmLayer/index.html +1 -1
- package/coverage/lcov-report/src/components/MlScaleReference/MlScaleReference.js.html +1 -1
- package/coverage/lcov-report/src/components/MlScaleReference/index.html +1 -1
- package/coverage/lcov-report/src/components/MlShareMapState/MlShareMapState.js.html +1 -1
- package/coverage/lcov-report/src/components/MlShareMapState/index.html +1 -1
- package/coverage/lcov-report/src/components/MlSpatialElevationProfile/MlSpatialElevationProfile.js.html +1 -1
- package/coverage/lcov-report/src/components/MlSpatialElevationProfile/index.html +1 -1
- package/coverage/lcov-report/src/components/MlThreeJsLayer/MlThreeJsLayer.js.html +1 -1
- package/coverage/lcov-report/src/components/MlThreeJsLayer/index.html +1 -1
- package/coverage/lcov-report/src/components/MlUseMapDebugger/MlUseMapDebugger.js.html +1 -1
- package/coverage/lcov-report/src/components/MlUseMapDebugger/index.html +1 -1
- package/coverage/lcov-report/src/components/MlVectorTileLayer/MlVectorTileLayer.js.html +1 -1
- package/coverage/lcov-report/src/components/MlVectorTileLayer/index.html +1 -1
- package/coverage/lcov-report/src/components/MlWmsFeatureInfoPopup/MlWmsFeatureInfoPopup.js.html +1 -1
- package/coverage/lcov-report/src/components/MlWmsFeatureInfoPopup/index.html +1 -1
- package/coverage/lcov-report/src/components/MlWmsLayer/MlWmsLayer.js.html +1 -1
- package/coverage/lcov-report/src/components/MlWmsLayer/index.html +1 -1
- package/coverage/lcov-report/src/components/MlWmsLoader/MlWmsLoader.js.html +1 -1
- package/coverage/lcov-report/src/components/MlWmsLoader/index.html +1 -1
- package/coverage/lcov-report/src/hooks/index.html +1 -1
- package/coverage/lcov-report/src/hooks/useMap.js.html +1 -1
- package/coverage/lcov-report/src/hooks/useMapState.js.html +1 -1
- package/coverage/lcov-report/src/hooks/useWms.js.html +1 -1
- package/coverage/lcov-report/src/i18n.js.html +1 -1
- package/coverage/lcov-report/src/index.html +1 -1
- package/coverage/lcov-report/src/translations/english.js.html +1 -1
- package/coverage/lcov-report/src/translations/german.js.html +1 -1
- package/coverage/lcov-report/src/translations/index.html +1 -1
- package/coverage/lcov.info +93 -90
- package/dist/index.esm.js +24 -5
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/MlGeoJsonLayer/MlGeoJsonLayer.js +13 -4
- package/src/components/MlGeoJsonLayer/MlGeoJsonLayer.stories.js +22 -7
- 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
|
-
-
|
|
23
|
+
- add CHANGELOG.md
|
|
15
24
|
|
|
16
25
|
### Changed
|
|
17
|
-
-
|
|
18
|
-
-
|
|
26
|
+
- migrate MlComponentTemplate to utilize useMap hook
|
|
27
|
+
- migrate MlFollowGps to utilize useMap hook
|
|
19
28
|
|
|
20
29
|
### Fixed
|
|
21
|
-
-
|
|
30
|
+
- fix MlFollowGps - remove example code (setCenter)
|
|
22
31
|
|
|
23
32
|
## [v0.1.15] - 2021-12-21
|
|
24
33
|
|
|
25
34
|
### Added
|
|
26
|
-
-
|
|
27
|
-
-
|
|
35
|
+
- export MlFollowGps component from esm module
|
|
36
|
+
- add a useMap hook to reduce boilerplate code in components
|
|
28
37
|
|
|
29
38
|
### Changed
|
|
30
|
-
-
|
|
39
|
+
- adjust MlImageMarkerLayer to make use of the new useMap hook
|
|
31
40
|
|
|
32
41
|
### Fixed
|
|
33
42
|
|
package/coverage/clover.xml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<coverage generated="
|
|
3
|
-
<project timestamp="
|
|
4
|
-
<metrics statements="
|
|
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="
|
|
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="
|
|
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="
|
|
616
|
-
<line num="
|
|
617
|
-
<line num="
|
|
618
|
-
<line num="
|
|
619
|
-
<line num="
|
|
620
|
-
<line num="
|
|
621
|
-
<line num="
|
|
622
|
-
<line num="
|
|
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="
|
|
629
|
-
<line num="
|
|
630
|
-
<line num="
|
|
631
|
-
<line num="108" count="
|
|
632
|
-
<line num="
|
|
633
|
-
<line num="
|
|
634
|
-
<line num="
|
|
635
|
-
<line num="
|
|
636
|
-
<line num="
|
|
637
|
-
<line num="
|
|
638
|
-
<line num="
|
|
639
|
-
<line num="
|
|
640
|
-
<line num="
|
|
641
|
-
<line num="
|
|
642
|
-
<line num="
|
|
643
|
-
<line num="
|
|
644
|
-
<line num="
|
|
645
|
-
<line num="157" count="
|
|
646
|
-
<line num="158" count="
|
|
647
|
-
<line num="
|
|
648
|
-
<line num="
|
|
649
|
-
<line num="
|
|
650
|
-
<line num="
|
|
651
|
-
<line num="
|
|
652
|
-
<line num="
|
|
653
|
-
<line num="181" count="
|
|
654
|
-
<line num="
|
|
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">
|