@mapcomponents/react-maplibre 0.1.59 → 0.1.60
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 +10 -0
- package/coverage/clover.xml +51 -47
- package/coverage/coverage-final.json +4 -4
- package/coverage/lcov-report/index.html +21 -21
- package/coverage/lcov-report/src/components/MapLibreMap/MapLibreMap.tsx.html +1 -1
- package/coverage/lcov-report/src/components/MapLibreMap/index.html +1 -1
- package/coverage/lcov-report/src/components/MlCenterPosition/MlCenterPosition.tsx.html +1 -1
- package/coverage/lcov-report/src/components/MlCenterPosition/index.html +1 -1
- package/coverage/lcov-report/src/components/MlCreatePdfButton/MlCreatePdfButton.tsx.html +1 -1
- package/coverage/lcov-report/src/components/MlCreatePdfButton/index.html +1 -1
- package/coverage/lcov-report/src/components/MlCreatePdfForm/MlCreatePdfForm.tsx.html +2 -2
- package/coverage/lcov-report/src/components/MlCreatePdfForm/index.html +1 -1
- package/coverage/lcov-report/src/components/MlFeatureEditor/MlFeatureEditor.tsx.html +1 -1
- package/coverage/lcov-report/src/components/MlFeatureEditor/index.html +1 -1
- package/coverage/lcov-report/src/components/MlFillExtrusionLayer/MlFillExtrusionLayer.tsx.html +1 -1
- package/coverage/lcov-report/src/components/MlFillExtrusionLayer/index.html +1 -1
- package/coverage/lcov-report/src/components/MlFollowGps/MlFollowGps.tsx.html +1 -1
- package/coverage/lcov-report/src/components/MlFollowGps/index.html +1 -1
- package/coverage/lcov-report/src/components/MlGPXViewer/MlGPXViewer.tsx.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.tsx.html +1 -1
- package/coverage/lcov-report/src/components/MlGeoJsonLayer/index.html +1 -1
- package/coverage/lcov-report/src/components/MlGeojsonLayerWithSource/MlGeojsonLayerWithSource.tsx.html +1 -1
- package/coverage/lcov-report/src/components/MlGeojsonLayerWithSource/index.html +1 -1
- package/coverage/lcov-report/src/components/MlImageMarkerLayer/MlImageMarkerLayer.tsx.html +1 -1
- package/coverage/lcov-report/src/components/MlImageMarkerLayer/index.html +1 -1
- package/coverage/lcov-report/src/components/MlLayer/MlLayer.tsx.html +1 -1
- package/coverage/lcov-report/src/components/MlLayer/index.html +1 -1
- package/coverage/lcov-report/src/components/MlLayerMagnify/MlLayerMagnify.tsx.html +1 -1
- package/coverage/lcov-report/src/components/MlLayerMagnify/index.html +1 -1
- package/coverage/lcov-report/src/components/MlLayerSwipe/MlLayerSwipe.tsx.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.tsx.html +1 -1
- package/coverage/lcov-report/src/components/MlMarker/index.html +1 -1
- package/coverage/lcov-report/src/components/MlMeasureTool/MlMeasureTool.tsx.html +1 -1
- package/coverage/lcov-report/src/components/MlMeasureTool/index.html +1 -1
- package/coverage/lcov-report/src/components/MlNavigationCompass/MlNavigationCompass.tsx.html +1 -1
- package/coverage/lcov-report/src/components/MlNavigationCompass/index.html +1 -1
- package/coverage/lcov-report/src/components/MlNavigationTools/MlNavigationTools.tsx.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/MlOsmLayer.stories_.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/MlTransitionGeoJsonLayer/MlTransitionGeoJsonLayer.tsx.html +1 -1
- package/coverage/lcov-report/src/components/MlTransitionGeoJsonLayer/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.tsx.html +92 -146
- package/coverage/lcov-report/src/components/MlVectorTileLayer/index.html +21 -21
- 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.tsx.html +1 -1
- package/coverage/lcov-report/src/components/MlWmsLayer/index.html +1 -1
- package/coverage/lcov-report/src/components/MlWmsLoader/MlWmsLoader.tsx.html +1 -1
- package/coverage/lcov-report/src/components/MlWmsLoader/index.html +1 -1
- package/coverage/lcov-report/src/contexts/MapContext.tsx.html +1 -1
- package/coverage/lcov-report/src/contexts/SimpleDataContext.js.html +1 -1
- package/coverage/lcov-report/src/contexts/SimpleDataProvider.js.html +1 -1
- package/coverage/lcov-report/src/contexts/index.html +1 -1
- package/coverage/lcov-report/src/hooks/index.html +1 -1
- package/coverage/lcov-report/src/hooks/{exportMap → useExportMap}/index.html +3 -3
- package/coverage/lcov-report/src/hooks/{exportMap → useExportMap}/index.ts.html +4 -4
- package/coverage/lcov-report/src/hooks/{exportMap → useExportMap}/lib.ts.html +4 -4
- package/coverage/lcov-report/src/hooks/useLayer.ts.html +1 -1
- package/coverage/lcov-report/src/hooks/useLayerEvent.js.html +1 -1
- package/coverage/lcov-report/src/hooks/useMap.ts.html +4 -4
- package/coverage/lcov-report/src/hooks/useMapState.ts.html +1 -1
- package/coverage/lcov-report/src/hooks/useSource.ts.html +1 -1
- package/coverage/lcov-report/src/hooks/useWms.js.html +1 -1
- package/coverage/lcov-report/src/index.html +1 -1
- package/coverage/lcov-report/src/index.ts.html +2 -2
- package/coverage/lcov.info +98 -76
- package/dist/components/MlCreatePdfForm/MlCreatePdfForm.d.ts +1 -1
- package/dist/components/MlCreatePdfForm/lib/PdfForm.d.ts +1 -1
- package/dist/components/MlVectorTileLayer/MlVectorTileLayer.d.ts +5 -24
- package/dist/hooks/useExportMap/index.d.ts +11 -0
- package/dist/hooks/useExportMap/lib.d.ts +36 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +58 -63
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/MlCreatePdfForm/MlCreatePdfForm.tsx +1 -1
- package/src/components/MlCreatePdfForm/lib/PdfForm.tsx +3 -3
- package/src/components/MlVectorTileLayer/MlVectorTileLayer.stories.js +15 -9
- package/src/components/MlVectorTileLayer/MlVectorTileLayer.test.js +7 -6
- package/src/components/MlVectorTileLayer/MlVectorTileLayer.tsx +59 -77
- package/src/hooks/{exportMap → useExportMap}/index.ts +1 -1
- package/src/hooks/{exportMap → useExportMap}/lib.ts +1 -1
- package/src/index.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
3
|
|
|
4
|
+
## [v0.1.60] - 2022-11-04
|
|
5
|
+
|
|
6
|
+
### Fixed
|
|
7
|
+
- bc71b1f: Fix/use export map hook (#39)
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
|
|
11
|
+
- 7687eec: change MlVectorTileLayer layers prop type from object to array
|
|
12
|
+
|
|
4
13
|
## [v0.1.59] - 2022-10-04
|
|
5
14
|
|
|
6
15
|
### Fixed
|
|
@@ -9,6 +18,7 @@
|
|
|
9
18
|
## [v0.1.58] - 2022-10-04
|
|
10
19
|
|
|
11
20
|
### Added
|
|
21
|
+
|
|
12
22
|
- 6be40b7: automatic eslint & prettier tests as GitHub action
|
|
13
23
|
- 396b1b7: useSource hook
|
|
14
24
|
- 67d88a0: add MlCreatePdfForm component & useExportMap hook providing more sophisticated control on the PDF creation process such as a preview of the PDF area with drag&drop, resize & rotation functionality as well as controlls over the paper size, quality & orientation
|
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="1667565922268" clover="3.2.0">
|
|
3
|
+
<project timestamp="1667565922268" name="All files">
|
|
4
|
+
<metrics statements="1776" coveredstatements="641" conditionals="1090" coveredconditionals="313" methods="330" coveredmethods="109" elements="3196" coveredelements="1063" complexity="0" loc="1776" ncloc="1776" packages="35" files="45" classes="45"/>
|
|
5
5
|
<package name="src">
|
|
6
6
|
<metrics statements="0" coveredstatements="0" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
|
|
7
7
|
<file name="index.ts" path="/home/runner/work/react-map-components-maplibre/react-map-components-maplibre/src/index.ts">
|
|
@@ -1406,51 +1406,55 @@
|
|
|
1406
1406
|
</file>
|
|
1407
1407
|
</package>
|
|
1408
1408
|
<package name="src.components.MlVectorTileLayer">
|
|
1409
|
-
<metrics statements="
|
|
1409
|
+
<metrics statements="46" coveredstatements="39" conditionals="32" coveredconditionals="21" methods="9" coveredmethods="8"/>
|
|
1410
1410
|
<file name="MlVectorTileLayer.tsx" path="/home/runner/work/react-map-components-maplibre/react-map-components-maplibre/src/components/MlVectorTileLayer/MlVectorTileLayer.tsx">
|
|
1411
|
-
<metrics statements="
|
|
1412
|
-
<line num="
|
|
1413
|
-
<line num="
|
|
1414
|
-
<line num="26" count="12" type="stmt"/>
|
|
1411
|
+
<metrics statements="46" coveredstatements="39" conditionals="32" coveredconditionals="21" methods="9" coveredmethods="8"/>
|
|
1412
|
+
<line num="21" count="10" type="stmt"/>
|
|
1413
|
+
<line num="22" count="12" type="stmt"/>
|
|
1415
1414
|
<line num="27" count="12" type="cond" truecount="2" falsecount="0"/>
|
|
1416
1415
|
<line num="28" count="12" type="stmt"/>
|
|
1417
1416
|
<line num="29" count="12" type="stmt"/>
|
|
1418
1417
|
<line num="30" count="12" type="stmt"/>
|
|
1419
1418
|
<line num="32" count="12" type="stmt"/>
|
|
1420
|
-
<line num="33" count="
|
|
1421
|
-
<line num="35" count="
|
|
1422
|
-
<line num="37" count="
|
|
1423
|
-
<line num="38" count="
|
|
1424
|
-
<line num="42" count="
|
|
1425
|
-
<line num="54" count="
|
|
1426
|
-
<line num="55" count="
|
|
1427
|
-
<line num="56" count="
|
|
1428
|
-
<line num="
|
|
1429
|
-
<line num="
|
|
1430
|
-
<line num="
|
|
1431
|
-
<line num="
|
|
1432
|
-
<line num="
|
|
1433
|
-
<line num="
|
|
1434
|
-
<line num="
|
|
1435
|
-
<line num="
|
|
1436
|
-
<line num="
|
|
1437
|
-
<line num="
|
|
1438
|
-
<line num="
|
|
1439
|
-
<line num="
|
|
1440
|
-
<line num="
|
|
1441
|
-
<line num="
|
|
1442
|
-
<line num="
|
|
1443
|
-
<line num="
|
|
1444
|
-
<line num="
|
|
1419
|
+
<line num="33" count="12" type="cond" truecount="2" falsecount="0"/>
|
|
1420
|
+
<line num="35" count="8" type="stmt"/>
|
|
1421
|
+
<line num="37" count="8" type="cond" truecount="2" falsecount="0"/>
|
|
1422
|
+
<line num="38" count="4" type="stmt"/>
|
|
1423
|
+
<line num="42" count="8" type="stmt"/>
|
|
1424
|
+
<line num="54" count="8" type="stmt"/>
|
|
1425
|
+
<line num="55" count="8" type="cond" truecount="1" falsecount="1"/>
|
|
1426
|
+
<line num="56" count="8" type="stmt"/>
|
|
1427
|
+
<line num="72" count="8" type="stmt"/>
|
|
1428
|
+
<line num="73" count="8" type="stmt"/>
|
|
1429
|
+
<line num="76" count="8" type="stmt"/>
|
|
1430
|
+
<line num="79" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
1431
|
+
<line num="80" count="0" type="stmt"/>
|
|
1432
|
+
<line num="81" count="0" type="stmt"/>
|
|
1433
|
+
<line num="89" count="12" type="stmt"/>
|
|
1434
|
+
<line num="90" count="4" type="cond" truecount="1" falsecount="1"/>
|
|
1435
|
+
<line num="92" count="4" type="stmt"/>
|
|
1436
|
+
<line num="93" count="4" type="cond" truecount="1" falsecount="1"/>
|
|
1437
|
+
<line num="94" count="4" type="cond" truecount="1" falsecount="1"/>
|
|
1438
|
+
<line num="96" count="4" type="stmt"/>
|
|
1439
|
+
<line num="98" count="4" type="cond" truecount="1" falsecount="1"/>
|
|
1440
|
+
<line num="99" count="0" type="stmt"/>
|
|
1441
|
+
<line num="100" count="0" type="stmt"/>
|
|
1442
|
+
<line num="103" count="4" type="stmt"/>
|
|
1443
|
+
<line num="106" count="4" type="stmt"/>
|
|
1444
|
+
<line num="108" count="4" type="cond" truecount="1" falsecount="1"/>
|
|
1445
1445
|
<line num="109" count="0" type="stmt"/>
|
|
1446
|
-
<line num="
|
|
1447
|
-
<line num="
|
|
1448
|
-
<line num="
|
|
1449
|
-
<line num="
|
|
1450
|
-
<line num="
|
|
1451
|
-
<line num="
|
|
1452
|
-
<line num="
|
|
1453
|
-
<line num="
|
|
1446
|
+
<line num="110" count="0" type="stmt"/>
|
|
1447
|
+
<line num="113" count="4" type="stmt"/>
|
|
1448
|
+
<line num="119" count="12" type="stmt"/>
|
|
1449
|
+
<line num="120" count="8" type="cond" truecount="1" falsecount="1"/>
|
|
1450
|
+
<line num="121" count="8" type="stmt"/>
|
|
1451
|
+
<line num="125" count="12" type="stmt"/>
|
|
1452
|
+
<line num="126" count="8" type="cond" truecount="4" falsecount="0"/>
|
|
1453
|
+
<line num="127" count="4" type="stmt"/>
|
|
1454
|
+
<line num="131" count="12" type="stmt"/>
|
|
1455
|
+
<line num="132" count="8" type="cond" truecount="4" falsecount="0"/>
|
|
1456
|
+
<line num="133" count="4" type="stmt"/>
|
|
1457
|
+
<line num="136" count="12" type="stmt"/>
|
|
1454
1458
|
</file>
|
|
1455
1459
|
</package>
|
|
1456
1460
|
<package name="src.components.MlWmsFeatureInfoPopup">
|
|
@@ -1806,9 +1810,9 @@
|
|
|
1806
1810
|
<line num="36" count="211" type="stmt"/>
|
|
1807
1811
|
<line num="38" count="211" type="stmt"/>
|
|
1808
1812
|
<line num="40" count="211" type="stmt"/>
|
|
1809
|
-
<line num="41" count="
|
|
1810
|
-
<line num="42" count="
|
|
1811
|
-
<line num="44" count="
|
|
1813
|
+
<line num="41" count="43" type="cond" truecount="2" falsecount="0"/>
|
|
1814
|
+
<line num="42" count="33" type="stmt"/>
|
|
1815
|
+
<line num="44" count="43" type="stmt"/>
|
|
1812
1816
|
<line num="47" count="211" type="stmt"/>
|
|
1813
1817
|
<line num="48" count="57" type="stmt"/>
|
|
1814
1818
|
<line num="49" count="26" type="stmt"/>
|
|
@@ -1948,9 +1952,9 @@
|
|
|
1948
1952
|
<line num="82" count="10" type="stmt"/>
|
|
1949
1953
|
</file>
|
|
1950
1954
|
</package>
|
|
1951
|
-
<package name="src.hooks.
|
|
1955
|
+
<package name="src.hooks.useExportMap">
|
|
1952
1956
|
<metrics statements="57" coveredstatements="1" conditionals="14" coveredconditionals="0" methods="15" coveredmethods="0"/>
|
|
1953
|
-
<file name="index.ts" path="/home/runner/work/react-map-components-maplibre/react-map-components-maplibre/src/hooks/
|
|
1957
|
+
<file name="index.ts" path="/home/runner/work/react-map-components-maplibre/react-map-components-maplibre/src/hooks/useExportMap/index.ts">
|
|
1954
1958
|
<metrics statements="7" coveredstatements="0" conditionals="2" coveredconditionals="0" methods="3" coveredmethods="0"/>
|
|
1955
1959
|
<line num="14" count="0" type="stmt"/>
|
|
1956
1960
|
<line num="16" count="0" type="stmt"/>
|
|
@@ -1960,7 +1964,7 @@
|
|
|
1960
1964
|
<line num="24" count="0" type="stmt"/>
|
|
1961
1965
|
<line num="27" count="0" type="stmt"/>
|
|
1962
1966
|
</file>
|
|
1963
|
-
<file name="lib.ts" path="/home/runner/work/react-map-components-maplibre/react-map-components-maplibre/src/hooks/
|
|
1967
|
+
<file name="lib.ts" path="/home/runner/work/react-map-components-maplibre/react-map-components-maplibre/src/hooks/useExportMap/lib.ts">
|
|
1964
1968
|
<metrics statements="50" coveredstatements="1" conditionals="12" coveredconditionals="0" methods="12" coveredmethods="0"/>
|
|
1965
1969
|
<line num="20" count="10" type="stmt"/>
|
|
1966
1970
|
<line num="21" count="0" type="stmt"/>
|