@mapcomponents/react-maplibre 0.1.12 → 0.1.13
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/coverage/clover.xml +727 -608
- package/coverage/coverage-final.json +19 -14
- package/coverage/lcov-report/index.html +156 -96
- package/coverage/lcov-report/{components → src/components}/MapLibreMap/MapLibreMap.js.html +10 -10
- package/coverage/lcov-report/{components → src/components}/MapLibreMap/index.html +10 -10
- package/coverage/lcov-report/{components → src/components}/MlCreatePdfButton/MlCreatePdfButton.js.html +10 -10
- package/coverage/lcov-report/{components → src/components}/MlCreatePdfButton/index.html +10 -10
- package/coverage/lcov-report/{components → src/components}/MlFeatureEditor/MlFeatureEditor.js.html +10 -10
- package/coverage/lcov-report/{components → src/components}/MlFeatureEditor/index.html +10 -10
- package/coverage/lcov-report/{components → src/components}/MlFillExtrusionLayer/MlFillExtrusionLayer.js.html +10 -10
- package/coverage/lcov-report/{components → src/components}/MlFillExtrusionLayer/index.html +10 -10
- package/coverage/lcov-report/{components → src/components}/MlFollowGps/MlFollowGps.js.html +61 -55
- package/coverage/lcov-report/{components → src/components}/MlFollowGps/index.html +10 -10
- package/coverage/lcov-report/{components → src/components}/MlGPXViewer/MlGPXViewer.js.html +66 -60
- package/coverage/lcov-report/{components → src/components}/MlGPXViewer/gpxConverter.js.html +49 -70
- package/coverage/lcov-report/{components → src/components}/MlGPXViewer/index.html +25 -25
- package/coverage/lcov-report/{components → src/components}/MlGeoJsonLayer/MlGeoJsonLayer.js.html +70 -28
- package/coverage/lcov-report/{components → src/components}/MlGeoJsonLayer/index.html +27 -27
- package/coverage/lcov-report/{components → src/components}/MlImageMarkerLayer/MlImageMarkerLayer.js.html +19 -22
- package/coverage/lcov-report/{components → src/components}/MlImageMarkerLayer/index.html +19 -19
- package/coverage/lcov-report/{components → src/components}/MlLayer/MlLayer.js.html +30 -30
- package/coverage/lcov-report/{components → src/components}/MlLayer/index.html +26 -26
- package/coverage/lcov-report/{components → src/components}/MlLayerMagnify/MlLayerMagnify.js.html +41 -41
- package/coverage/lcov-report/{components → src/components}/MlLayerMagnify/index.html +24 -24
- package/coverage/lcov-report/{components → src/components}/MlLayerSwipe/MlLayerSwipe.js.html +38 -41
- package/coverage/lcov-report/{components → src/components}/MlLayerSwipe/index.html +24 -24
- package/coverage/lcov-report/src/components/MlLayerSwitcher/MlLayerSwitcher.js.html +755 -0
- package/coverage/lcov-report/src/components/MlLayerSwitcher/components/LayerBox.js.html +380 -0
- package/coverage/lcov-report/src/components/MlLayerSwitcher/components/index.html +117 -0
- package/coverage/lcov-report/src/components/MlLayerSwitcher/index.html +117 -0
- package/coverage/lcov-report/{components → src/components}/MlMarker/MlMarker.js.html +11 -11
- package/coverage/lcov-report/{components → src/components}/MlMarker/index.html +10 -10
- package/coverage/lcov-report/{components → src/components}/MlNavigationCompass/MlNavigationCompass.js.html +10 -10
- package/coverage/lcov-report/{components → src/components}/MlNavigationCompass/index.html +10 -10
- package/coverage/lcov-report/{components → src/components}/MlNavigationTools/MlNavigationTools.js.html +48 -36
- package/coverage/lcov-report/{components → src/components}/MlNavigationTools/index.html +16 -16
- package/coverage/lcov-report/{components → src/components}/MlOsmLayer/MlOsmLayer.js.html +10 -10
- package/coverage/lcov-report/{components → src/components}/MlOsmLayer/index.html +10 -10
- package/coverage/lcov-report/{components → src/components}/MlScaleReference/MlScaleReference.js.html +10 -10
- package/coverage/lcov-report/{components → src/components}/MlScaleReference/index.html +10 -10
- package/coverage/lcov-report/{components → src/components}/MlShareMapState/MlShareMapState.js.html +10 -10
- package/coverage/lcov-report/{components → src/components}/MlShareMapState/index.html +10 -10
- package/coverage/lcov-report/{components → src/components}/MlSpatialElevationProfile/MlSpatialElevationProfile.js.html +10 -10
- package/coverage/lcov-report/{components → src/components}/MlSpatialElevationProfile/index.html +10 -10
- package/coverage/lcov-report/{components → src/components}/MlThreeJsLayer/MlThreeJsLayer.js.html +30 -54
- package/coverage/lcov-report/{components → src/components}/MlThreeJsLayer/index.html +24 -24
- package/coverage/lcov-report/{components → src/components}/MlUseMapDebugger/MlUseMapDebugger.js.html +10 -10
- package/coverage/lcov-report/{components → src/components}/MlUseMapDebugger/index.html +10 -10
- package/coverage/lcov-report/{components → src/components}/MlVectorTileLayer/MlVectorTileLayer.js.html +10 -10
- package/coverage/lcov-report/{components → src/components}/MlVectorTileLayer/index.html +10 -10
- package/coverage/lcov-report/{components → src/components}/MlWmsFeatureInfoPopup/MlWmsFeatureInfoPopup.js.html +10 -10
- package/coverage/lcov-report/{components → src/components}/MlWmsFeatureInfoPopup/index.html +10 -10
- package/coverage/lcov-report/{components → src/components}/MlWmsLayer/MlWmsLayer.js.html +13 -13
- package/coverage/lcov-report/{components → src/components}/MlWmsLayer/index.html +14 -14
- package/coverage/lcov-report/{components → src/components}/MlWmsLoader/MlWmsLoader.js.html +31 -19
- package/coverage/lcov-report/{components → src/components}/MlWmsLoader/index.html +16 -16
- package/coverage/lcov-report/{hooks → src/hooks}/index.html +10 -10
- package/coverage/lcov-report/{hooks → src/hooks}/useMap.js.html +10 -10
- package/coverage/lcov-report/{hooks → src/hooks}/useMapState.js.html +10 -10
- package/coverage/lcov-report/{hooks → src/hooks}/useWms.js.html +18 -18
- package/coverage/lcov-report/src/i18n.js.html +167 -0
- package/coverage/lcov-report/src/index.html +117 -0
- package/coverage/lcov-report/src/translations/english.js.html +95 -0
- package/coverage/lcov-report/src/translations/german.js.html +95 -0
- package/coverage/lcov-report/src/translations/index.html +132 -0
- package/coverage/lcov.info +1240 -976
- package/dist/b556faa3bc6829d2.png +0 -0
- package/dist/index.esm.js +102 -71
- package/dist/index.esm.js.map +1 -1
- package/package.json +3 -1
- package/public/assets/dop.png +0 -0
- package/public/assets/historic.png +0 -0
- package/public/assets/osm.png +0 -0
- package/public/thumbnails/MlFollowGps.png +0 -0
- package/public/thumbnails/MlThreeJsLayer.png +0 -0
- package/src/components/MapLibreMap/lib/MapLibreGlWrapper.js +58 -73
- package/src/components/MlFeatureEditor/MlFeatureEditor.meta.json +2 -2
- package/src/components/MlFollowGps/MlFollowGps.js +45 -43
- package/src/components/MlFollowGps/MlFollowGps.meta.json +2 -2
- package/src/components/MlFollowGps/assets/marker.png +0 -0
- package/src/components/MlGPXViewer/MlGPXViewer.js +45 -43
- package/src/components/MlGPXViewer/gpxConverter.js +22 -29
- package/src/components/MlGeoJsonLayer/MlGeoJsonLayer.js +22 -8
- package/src/components/MlImageMarkerLayer/MlImageMarkerLayer.js +3 -4
- package/src/components/MlImageMarkerLayer/MlImageMarkerLayer.test.js +6 -7
- package/src/components/MlLayer/MlLayer.js +2 -2
- package/src/components/MlLayer/MlLayer.test.js +12 -10
- package/src/components/MlLayerMagnify/MlLayerMagnify.js +3 -3
- package/src/components/MlLayerSwipe/MlLayerSwipe.js +4 -5
- package/src/components/MlLayerSwitcher/MlLayerSwitcher.css +17 -0
- package/src/components/MlLayerSwitcher/MlLayerSwitcher.doc.de.md +3 -0
- package/src/components/MlLayerSwitcher/MlLayerSwitcher.js +223 -0
- package/src/components/MlLayerSwitcher/MlLayerSwitcher.meta_.json +15 -0
- package/src/components/MlLayerSwitcher/MlLayerSwitcher.stories.js +106 -0
- package/src/components/MlLayerSwitcher/assets/sample_1.json +26 -0
- package/src/components/MlLayerSwitcher/assets/sample_2.json +22 -0
- package/src/components/MlLayerSwitcher/components/LayerBox.js +98 -0
- package/src/components/MlMarker/MlMarker.js +1 -1
- package/src/components/MlNavigationTools/MlNavigationTools.js +26 -22
- package/src/components/MlScaleReference/MlScaleReference.meta.json +1 -1
- package/src/components/MlScaleReference/MlScaleReference.stories.js +25 -21
- package/src/components/MlSpatialElevationProfile/MlSpatialElevationProfile.stories.js +12 -6
- package/src/components/MlThreeJsLayer/MlThreeJsLayer.js +8 -15
- package/src/components/MlWmsLayer/MlWmsLayer.js +1 -1
- package/src/components/MlWmsLoader/MlWmsLoader.js +8 -4
- package/src/components/MlWmsLoader/MlWmsLoader.meta.json +1 -1
- package/src/components/MlWmsLoader/MlWmsLoader.stories.js +5 -4
- package/src/decorators/EmptyMapContextDecorator.js +11 -6
- package/src/decorators/MapContext3DDecorator.js +25 -20
- package/src/decorators/MapContextDashboardDecorator.js +7 -2
- package/src/decorators/MapContextDecorator.js +7 -3
- package/src/decorators/MapContextKlokantechBasicDecorator.js +8 -4
- package/src/decorators/MultiMapContextDecorator.js +2 -1
- package/src/hooks/useWms.js +7 -6
- package/src/i18n.js +28 -0
- package/src/translations/english.js +4 -0
- package/src/translations/german.js +4 -0
- package/src/ui_components/ImageLoader.js +73 -0
- package/src/ui_components/Sidebar.js +75 -20
- package/src/ui_components/TopToolbar.js +18 -18
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
<html lang="en">
|
|
4
4
|
|
|
5
5
|
<head>
|
|
6
|
-
<title>Code coverage report for components/MlCreatePdfButton/MlCreatePdfButton.js</title>
|
|
6
|
+
<title>Code coverage report for src/components/MlCreatePdfButton/MlCreatePdfButton.js</title>
|
|
7
7
|
<meta charset="utf-8" />
|
|
8
|
-
<link rel="stylesheet" href="
|
|
9
|
-
<link rel="stylesheet" href="
|
|
10
|
-
<link rel="shortcut icon" type="image/x-icon" href="
|
|
8
|
+
<link rel="stylesheet" href="../../../prettify.css" />
|
|
9
|
+
<link rel="stylesheet" href="../../../base.css" />
|
|
10
|
+
<link rel="shortcut icon" type="image/x-icon" href="../../../favicon.png" />
|
|
11
11
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
12
12
|
<style type='text/css'>
|
|
13
13
|
.coverage-summary .sorter {
|
|
14
|
-
background-image: url(
|
|
14
|
+
background-image: url(../../../sort-arrow-sprite.png);
|
|
15
15
|
}
|
|
16
16
|
</style>
|
|
17
17
|
</head>
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
<body>
|
|
20
20
|
<div class='wrapper'>
|
|
21
21
|
<div class='pad1'>
|
|
22
|
-
<h1><a href="
|
|
22
|
+
<h1><a href="../../../index.html">All files</a> / <a href="index.html">src/components/MlCreatePdfButton</a> MlCreatePdfButton.js</h1>
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
@@ -226,17 +226,17 @@ export default MlCreatePdfButton;
|
|
|
226
226
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
227
227
|
Code coverage generated by
|
|
228
228
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener">istanbul</a>
|
|
229
|
-
at
|
|
229
|
+
at Wed Dec 15 2021 17:14:00 GMT+0000 (Coordinated Universal Time)
|
|
230
230
|
</div>
|
|
231
231
|
</div>
|
|
232
|
-
<script src="
|
|
232
|
+
<script src="../../../prettify.js"></script>
|
|
233
233
|
<script>
|
|
234
234
|
window.onload = function () {
|
|
235
235
|
prettyPrint();
|
|
236
236
|
};
|
|
237
237
|
</script>
|
|
238
|
-
<script src="
|
|
239
|
-
<script src="
|
|
238
|
+
<script src="../../../sorter.js"></script>
|
|
239
|
+
<script src="../../../block-navigation.js"></script>
|
|
240
240
|
</body>
|
|
241
241
|
</html>
|
|
242
242
|
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
<html lang="en">
|
|
4
4
|
|
|
5
5
|
<head>
|
|
6
|
-
<title>Code coverage report for components/MlCreatePdfButton</title>
|
|
6
|
+
<title>Code coverage report for src/components/MlCreatePdfButton</title>
|
|
7
7
|
<meta charset="utf-8" />
|
|
8
|
-
<link rel="stylesheet" href="
|
|
9
|
-
<link rel="stylesheet" href="
|
|
10
|
-
<link rel="shortcut icon" type="image/x-icon" href="
|
|
8
|
+
<link rel="stylesheet" href="../../../prettify.css" />
|
|
9
|
+
<link rel="stylesheet" href="../../../base.css" />
|
|
10
|
+
<link rel="shortcut icon" type="image/x-icon" href="../../../favicon.png" />
|
|
11
11
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
12
12
|
<style type='text/css'>
|
|
13
13
|
.coverage-summary .sorter {
|
|
14
|
-
background-image: url(
|
|
14
|
+
background-image: url(../../../sort-arrow-sprite.png);
|
|
15
15
|
}
|
|
16
16
|
</style>
|
|
17
17
|
</head>
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
<body>
|
|
20
20
|
<div class='wrapper'>
|
|
21
21
|
<div class='pad1'>
|
|
22
|
-
<h1><a href="
|
|
22
|
+
<h1><a href="../../../index.html">All files</a> src/components/MlCreatePdfButton</h1>
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
@@ -101,17 +101,17 @@
|
|
|
101
101
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
102
102
|
Code coverage generated by
|
|
103
103
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener">istanbul</a>
|
|
104
|
-
at
|
|
104
|
+
at Wed Dec 15 2021 17:14:00 GMT+0000 (Coordinated Universal Time)
|
|
105
105
|
</div>
|
|
106
106
|
</div>
|
|
107
|
-
<script src="
|
|
107
|
+
<script src="../../../prettify.js"></script>
|
|
108
108
|
<script>
|
|
109
109
|
window.onload = function () {
|
|
110
110
|
prettyPrint();
|
|
111
111
|
};
|
|
112
112
|
</script>
|
|
113
|
-
<script src="
|
|
114
|
-
<script src="
|
|
113
|
+
<script src="../../../sorter.js"></script>
|
|
114
|
+
<script src="../../../block-navigation.js"></script>
|
|
115
115
|
</body>
|
|
116
116
|
</html>
|
|
117
117
|
|
package/coverage/lcov-report/{components → src/components}/MlFeatureEditor/MlFeatureEditor.js.html
RENAMED
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
<html lang="en">
|
|
4
4
|
|
|
5
5
|
<head>
|
|
6
|
-
<title>Code coverage report for components/MlFeatureEditor/MlFeatureEditor.js</title>
|
|
6
|
+
<title>Code coverage report for src/components/MlFeatureEditor/MlFeatureEditor.js</title>
|
|
7
7
|
<meta charset="utf-8" />
|
|
8
|
-
<link rel="stylesheet" href="
|
|
9
|
-
<link rel="stylesheet" href="
|
|
10
|
-
<link rel="shortcut icon" type="image/x-icon" href="
|
|
8
|
+
<link rel="stylesheet" href="../../../prettify.css" />
|
|
9
|
+
<link rel="stylesheet" href="../../../base.css" />
|
|
10
|
+
<link rel="shortcut icon" type="image/x-icon" href="../../../favicon.png" />
|
|
11
11
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
12
12
|
<style type='text/css'>
|
|
13
13
|
.coverage-summary .sorter {
|
|
14
|
-
background-image: url(
|
|
14
|
+
background-image: url(../../../sort-arrow-sprite.png);
|
|
15
15
|
}
|
|
16
16
|
</style>
|
|
17
17
|
</head>
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
<body>
|
|
20
20
|
<div class='wrapper'>
|
|
21
21
|
<div class='pad1'>
|
|
22
|
-
<h1><a href="
|
|
22
|
+
<h1><a href="../../../index.html">All files</a> / <a href="index.html">src/components/MlFeatureEditor</a> MlFeatureEditor.js</h1>
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
@@ -427,17 +427,17 @@ export default MlFeatureEditor;
|
|
|
427
427
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
428
428
|
Code coverage generated by
|
|
429
429
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener">istanbul</a>
|
|
430
|
-
at
|
|
430
|
+
at Wed Dec 15 2021 17:14:00 GMT+0000 (Coordinated Universal Time)
|
|
431
431
|
</div>
|
|
432
432
|
</div>
|
|
433
|
-
<script src="
|
|
433
|
+
<script src="../../../prettify.js"></script>
|
|
434
434
|
<script>
|
|
435
435
|
window.onload = function () {
|
|
436
436
|
prettyPrint();
|
|
437
437
|
};
|
|
438
438
|
</script>
|
|
439
|
-
<script src="
|
|
440
|
-
<script src="
|
|
439
|
+
<script src="../../../sorter.js"></script>
|
|
440
|
+
<script src="../../../block-navigation.js"></script>
|
|
441
441
|
</body>
|
|
442
442
|
</html>
|
|
443
443
|
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
<html lang="en">
|
|
4
4
|
|
|
5
5
|
<head>
|
|
6
|
-
<title>Code coverage report for components/MlFeatureEditor</title>
|
|
6
|
+
<title>Code coverage report for src/components/MlFeatureEditor</title>
|
|
7
7
|
<meta charset="utf-8" />
|
|
8
|
-
<link rel="stylesheet" href="
|
|
9
|
-
<link rel="stylesheet" href="
|
|
10
|
-
<link rel="shortcut icon" type="image/x-icon" href="
|
|
8
|
+
<link rel="stylesheet" href="../../../prettify.css" />
|
|
9
|
+
<link rel="stylesheet" href="../../../base.css" />
|
|
10
|
+
<link rel="shortcut icon" type="image/x-icon" href="../../../favicon.png" />
|
|
11
11
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
12
12
|
<style type='text/css'>
|
|
13
13
|
.coverage-summary .sorter {
|
|
14
|
-
background-image: url(
|
|
14
|
+
background-image: url(../../../sort-arrow-sprite.png);
|
|
15
15
|
}
|
|
16
16
|
</style>
|
|
17
17
|
</head>
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
<body>
|
|
20
20
|
<div class='wrapper'>
|
|
21
21
|
<div class='pad1'>
|
|
22
|
-
<h1><a href="
|
|
22
|
+
<h1><a href="../../../index.html">All files</a> src/components/MlFeatureEditor</h1>
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
@@ -101,17 +101,17 @@
|
|
|
101
101
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
102
102
|
Code coverage generated by
|
|
103
103
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener">istanbul</a>
|
|
104
|
-
at
|
|
104
|
+
at Wed Dec 15 2021 17:14:00 GMT+0000 (Coordinated Universal Time)
|
|
105
105
|
</div>
|
|
106
106
|
</div>
|
|
107
|
-
<script src="
|
|
107
|
+
<script src="../../../prettify.js"></script>
|
|
108
108
|
<script>
|
|
109
109
|
window.onload = function () {
|
|
110
110
|
prettyPrint();
|
|
111
111
|
};
|
|
112
112
|
</script>
|
|
113
|
-
<script src="
|
|
114
|
-
<script src="
|
|
113
|
+
<script src="../../../sorter.js"></script>
|
|
114
|
+
<script src="../../../block-navigation.js"></script>
|
|
115
115
|
</body>
|
|
116
116
|
</html>
|
|
117
117
|
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
<html lang="en">
|
|
4
4
|
|
|
5
5
|
<head>
|
|
6
|
-
<title>Code coverage report for components/MlFillExtrusionLayer/MlFillExtrusionLayer.js</title>
|
|
6
|
+
<title>Code coverage report for src/components/MlFillExtrusionLayer/MlFillExtrusionLayer.js</title>
|
|
7
7
|
<meta charset="utf-8" />
|
|
8
|
-
<link rel="stylesheet" href="
|
|
9
|
-
<link rel="stylesheet" href="
|
|
10
|
-
<link rel="shortcut icon" type="image/x-icon" href="
|
|
8
|
+
<link rel="stylesheet" href="../../../prettify.css" />
|
|
9
|
+
<link rel="stylesheet" href="../../../base.css" />
|
|
10
|
+
<link rel="shortcut icon" type="image/x-icon" href="../../../favicon.png" />
|
|
11
11
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
12
12
|
<style type='text/css'>
|
|
13
13
|
.coverage-summary .sorter {
|
|
14
|
-
background-image: url(
|
|
14
|
+
background-image: url(../../../sort-arrow-sprite.png);
|
|
15
15
|
}
|
|
16
16
|
</style>
|
|
17
17
|
</head>
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
<body>
|
|
20
20
|
<div class='wrapper'>
|
|
21
21
|
<div class='pad1'>
|
|
22
|
-
<h1><a href="
|
|
22
|
+
<h1><a href="../../../index.html">All files</a> / <a href="index.html">src/components/MlFillExtrusionLayer</a> MlFillExtrusionLayer.js</h1>
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
@@ -529,17 +529,17 @@ export default MlFillExtrusionLayer;
|
|
|
529
529
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
530
530
|
Code coverage generated by
|
|
531
531
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener">istanbul</a>
|
|
532
|
-
at
|
|
532
|
+
at Wed Dec 15 2021 17:14:00 GMT+0000 (Coordinated Universal Time)
|
|
533
533
|
</div>
|
|
534
534
|
</div>
|
|
535
|
-
<script src="
|
|
535
|
+
<script src="../../../prettify.js"></script>
|
|
536
536
|
<script>
|
|
537
537
|
window.onload = function () {
|
|
538
538
|
prettyPrint();
|
|
539
539
|
};
|
|
540
540
|
</script>
|
|
541
|
-
<script src="
|
|
542
|
-
<script src="
|
|
541
|
+
<script src="../../../sorter.js"></script>
|
|
542
|
+
<script src="../../../block-navigation.js"></script>
|
|
543
543
|
</body>
|
|
544
544
|
</html>
|
|
545
545
|
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
<html lang="en">
|
|
4
4
|
|
|
5
5
|
<head>
|
|
6
|
-
<title>Code coverage report for components/MlFillExtrusionLayer</title>
|
|
6
|
+
<title>Code coverage report for src/components/MlFillExtrusionLayer</title>
|
|
7
7
|
<meta charset="utf-8" />
|
|
8
|
-
<link rel="stylesheet" href="
|
|
9
|
-
<link rel="stylesheet" href="
|
|
10
|
-
<link rel="shortcut icon" type="image/x-icon" href="
|
|
8
|
+
<link rel="stylesheet" href="../../../prettify.css" />
|
|
9
|
+
<link rel="stylesheet" href="../../../base.css" />
|
|
10
|
+
<link rel="shortcut icon" type="image/x-icon" href="../../../favicon.png" />
|
|
11
11
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
12
12
|
<style type='text/css'>
|
|
13
13
|
.coverage-summary .sorter {
|
|
14
|
-
background-image: url(
|
|
14
|
+
background-image: url(../../../sort-arrow-sprite.png);
|
|
15
15
|
}
|
|
16
16
|
</style>
|
|
17
17
|
</head>
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
<body>
|
|
20
20
|
<div class='wrapper'>
|
|
21
21
|
<div class='pad1'>
|
|
22
|
-
<h1><a href="
|
|
22
|
+
<h1><a href="../../../index.html">All files</a> src/components/MlFillExtrusionLayer</h1>
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
@@ -101,17 +101,17 @@
|
|
|
101
101
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
102
102
|
Code coverage generated by
|
|
103
103
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener">istanbul</a>
|
|
104
|
-
at
|
|
104
|
+
at Wed Dec 15 2021 17:14:00 GMT+0000 (Coordinated Universal Time)
|
|
105
105
|
</div>
|
|
106
106
|
</div>
|
|
107
|
-
<script src="
|
|
107
|
+
<script src="../../../prettify.js"></script>
|
|
108
108
|
<script>
|
|
109
109
|
window.onload = function () {
|
|
110
110
|
prettyPrint();
|
|
111
111
|
};
|
|
112
112
|
</script>
|
|
113
|
-
<script src="
|
|
114
|
-
<script src="
|
|
113
|
+
<script src="../../../sorter.js"></script>
|
|
114
|
+
<script src="../../../block-navigation.js"></script>
|
|
115
115
|
</body>
|
|
116
116
|
</html>
|
|
117
117
|
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
<html lang="en">
|
|
4
4
|
|
|
5
5
|
<head>
|
|
6
|
-
<title>Code coverage report for components/MlFollowGps/MlFollowGps.js</title>
|
|
6
|
+
<title>Code coverage report for src/components/MlFollowGps/MlFollowGps.js</title>
|
|
7
7
|
<meta charset="utf-8" />
|
|
8
|
-
<link rel="stylesheet" href="
|
|
9
|
-
<link rel="stylesheet" href="
|
|
10
|
-
<link rel="shortcut icon" type="image/x-icon" href="
|
|
8
|
+
<link rel="stylesheet" href="../../../prettify.css" />
|
|
9
|
+
<link rel="stylesheet" href="../../../base.css" />
|
|
10
|
+
<link rel="shortcut icon" type="image/x-icon" href="../../../favicon.png" />
|
|
11
11
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
12
12
|
<style type='text/css'>
|
|
13
13
|
.coverage-summary .sorter {
|
|
14
|
-
background-image: url(
|
|
14
|
+
background-image: url(../../../sort-arrow-sprite.png);
|
|
15
15
|
}
|
|
16
16
|
</style>
|
|
17
17
|
</head>
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
<body>
|
|
20
20
|
<div class='wrapper'>
|
|
21
21
|
<div class='pad1'>
|
|
22
|
-
<h1><a href="
|
|
22
|
+
<h1><a href="../../../index.html">All files</a> / <a href="index.html">src/components/MlFollowGps</a> MlFollowGps.js</h1>
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
@@ -232,7 +232,11 @@
|
|
|
232
232
|
<a name='L167'></a><a href='#L167'>167</a>
|
|
233
233
|
<a name='L168'></a><a href='#L168'>168</a>
|
|
234
234
|
<a name='L169'></a><a href='#L169'>169</a>
|
|
235
|
-
<a name='L170'></a><a href='#L170'>170</a
|
|
235
|
+
<a name='L170'></a><a href='#L170'>170</a>
|
|
236
|
+
<a name='L171'></a><a href='#L171'>171</a>
|
|
237
|
+
<a name='L172'></a><a href='#L172'>172</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
238
|
+
<span class="cline-any cline-neutral"> </span>
|
|
239
|
+
<span class="cline-any cline-neutral"> </span>
|
|
236
240
|
<span class="cline-any cline-neutral"> </span>
|
|
237
241
|
<span class="cline-any cline-neutral"> </span>
|
|
238
242
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -268,7 +272,6 @@
|
|
|
268
272
|
<span class="cline-any cline-yes">7x</span>
|
|
269
273
|
<span class="cline-any cline-yes">2x</span>
|
|
270
274
|
<span class="cline-any cline-neutral"> </span>
|
|
271
|
-
<span class="cline-any cline-neutral"> </span>
|
|
272
275
|
<span class="cline-any cline-yes">2x</span>
|
|
273
276
|
<span class="cline-any cline-neutral"> </span>
|
|
274
277
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -297,7 +300,6 @@
|
|
|
297
300
|
<span class="cline-any cline-yes">2x</span>
|
|
298
301
|
<span class="cline-any cline-neutral"> </span>
|
|
299
302
|
<span class="cline-any cline-neutral"> </span>
|
|
300
|
-
<span class="cline-any cline-neutral"> </span>
|
|
301
303
|
<span class="cline-any cline-yes">7x</span>
|
|
302
304
|
<span class="cline-any cline-no"> </span>
|
|
303
305
|
<span class="cline-any cline-no"> </span>
|
|
@@ -355,6 +357,7 @@
|
|
|
355
357
|
<span class="cline-any cline-neutral"> </span>
|
|
356
358
|
<span class="cline-any cline-neutral"> </span>
|
|
357
359
|
<span class="cline-any cline-neutral"> </span>
|
|
360
|
+
<span class="cline-any cline-neutral"> </span>
|
|
358
361
|
<span class="cline-any cline-yes">3x</span>
|
|
359
362
|
<span class="cline-any cline-yes">1x</span>
|
|
360
363
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -390,6 +393,7 @@
|
|
|
390
393
|
<span class="cline-any cline-neutral"> </span>
|
|
391
394
|
<span class="cline-any cline-neutral"> </span>
|
|
392
395
|
<span class="cline-any cline-neutral"> </span>
|
|
396
|
+
<span class="cline-any cline-neutral"> </span>
|
|
393
397
|
<span class="cline-any cline-yes">1x</span>
|
|
394
398
|
<span class="cline-any cline-neutral"> </span>
|
|
395
399
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -412,6 +416,8 @@ import {point} from "@turf/turf"
|
|
|
412
416
|
import MlGeoJsonLayer from "../MlGeoJsonLayer/MlGeoJsonLayer";
|
|
413
417
|
import MlImageMarkerLayer from "../MlImageMarkerLayer/MlImageMarkerLayer";
|
|
414
418
|
|
|
419
|
+
import marker from "./assets/marker.png";
|
|
420
|
+
|
|
415
421
|
/**
|
|
416
422
|
* Adds a button that makes the map follow the users GPS position using
|
|
417
423
|
* navigator.geolocation.watchPosition if activated
|
|
@@ -436,7 +442,6 @@ const MlFollowGps = (props) => {
|
|
|
436
442
|
|
|
437
443
|
useEffect(() => {
|
|
438
444
|
let _componentId = componentId.current;
|
|
439
|
-
|
|
440
445
|
|
|
441
446
|
return <span class="fstat-no" title="function not covered" >()</span> => {
|
|
442
447
|
// This is the cleanup function, it is called when this react component is removed from react-dom
|
|
@@ -464,13 +469,12 @@ const MlFollowGps = (props) => {
|
|
|
464
469
|
initializedRef.current = true;
|
|
465
470
|
mapRef.current = mapContext.getMap(props.mapId);
|
|
466
471
|
mapRef.current.setCenter([7.132122000552613, 50.716405378037706]);
|
|
467
|
-
|
|
468
472
|
}, [mapContext.mapIds, mapContext, props.mapId]);
|
|
469
473
|
|
|
470
474
|
const getLocationSuccess = <span class="fstat-no" title="function not covered" >(p</span>os) => {
|
|
471
475
|
<span class="cstat-no" title="statement not covered" > if (!mapRef.current) <span class="cstat-no" title="statement not covered" >return;</span></span>
|
|
472
476
|
<span class="cstat-no" title="statement not covered" > mapRef.current.setCenter([pos.coords.longitude, pos.coords.latitude]);</span>
|
|
473
|
-
<span class="cstat-no" title="statement not covered" > setAccuracyRadius(pos.coords.accuracy)
|
|
477
|
+
<span class="cstat-no" title="statement not covered" > setAccuracyRadius(pos.coords.accuracy);</span>
|
|
474
478
|
<span class="cstat-no" title="statement not covered" > setGeoJson(point([pos.coords.longitude, pos.coords.latitude]));</span>
|
|
475
479
|
};
|
|
476
480
|
|
|
@@ -481,47 +485,48 @@ const MlFollowGps = (props) => {
|
|
|
481
485
|
|
|
482
486
|
return (
|
|
483
487
|
<>
|
|
484
|
-
{isFollowed && geoJson &&
|
|
485
|
-
<span class="branch-2 cbranch-no" title="branch not covered" >
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
488
|
+
{isFollowed && geoJson && (
|
|
489
|
+
<span class="branch-2 cbranch-no" title="branch not covered" > <MlGeoJsonLayer</span>
|
|
490
|
+
geojson={geoJson}
|
|
491
|
+
type={"circle"}
|
|
492
|
+
paint={{
|
|
493
|
+
"circle-radius": {
|
|
494
|
+
stops: [
|
|
495
|
+
[0, 0],
|
|
496
|
+
[
|
|
497
|
+
20,
|
|
498
|
+
accuracyRadius /
|
|
499
|
+
0.075 /
|
|
500
|
+
Math.cos((geoJson.geometry.coordinates[1] * Math.PI) / 180),
|
|
501
|
+
],
|
|
502
|
+
],
|
|
503
|
+
base: 2,
|
|
504
|
+
},
|
|
505
|
+
"circle-color": "#ee7700",
|
|
506
|
+
"circle-opacity": 0.5,
|
|
507
|
+
}}
|
|
508
|
+
/>
|
|
509
|
+
)}
|
|
504
510
|
|
|
505
|
-
{isFollowed && geoJson &&
|
|
506
|
-
<span class="branch-2 cbranch-no" title="branch not covered" >
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
}
|
|
511
|
+
{isFollowed && geoJson && (
|
|
512
|
+
<span class="branch-2 cbranch-no" title="branch not covered" > <MlImageMarkerLayer</span>
|
|
513
|
+
options={{
|
|
514
|
+
type: "symbol",
|
|
515
|
+
source: {
|
|
516
|
+
type: "geojson",
|
|
517
|
+
data: geoJson,
|
|
518
|
+
},
|
|
519
|
+
layout: {
|
|
520
|
+
"icon-size": 0.1,
|
|
521
|
+
"icon-offset": [0, -340],
|
|
522
|
+
},
|
|
523
|
+
}}
|
|
524
|
+
imgSrc={marker}
|
|
525
|
+
/>
|
|
526
|
+
)}
|
|
522
527
|
|
|
523
528
|
<Button
|
|
524
|
-
sx={{zIndex: 1002, color: isFollowed ? "#bbb" : "#666", ...props.style}}
|
|
529
|
+
sx={{ zIndex: 1002, color: isFollowed ? "#bbb" : "#666", ...props.style }}
|
|
525
530
|
disabled={locationAccessDenied}
|
|
526
531
|
onClick={() => {
|
|
527
532
|
if (isFollowed) {
|
|
@@ -536,7 +541,7 @@ const MlFollowGps = (props) => {
|
|
|
536
541
|
}}
|
|
537
542
|
>
|
|
538
543
|
{" "}
|
|
539
|
-
<RoomIcon sx={{}}/>{" "}
|
|
544
|
+
<RoomIcon sx={{fontSize: props.style.fontSize}}/>{" "}
|
|
540
545
|
</Button>
|
|
541
546
|
</>
|
|
542
547
|
);
|
|
@@ -552,6 +557,7 @@ MlFollowGps.defaultProps = {
|
|
|
552
557
|
backgroundColor: "#414141",
|
|
553
558
|
borderRadius: "23%",
|
|
554
559
|
margin: 0.15,
|
|
560
|
+
fontSize: "1.3em",
|
|
555
561
|
":hover": {
|
|
556
562
|
backgroundColor: "#515151",
|
|
557
563
|
color: "#ececec",
|
|
@@ -577,17 +583,17 @@ export default MlFollowGps;
|
|
|
577
583
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
578
584
|
Code coverage generated by
|
|
579
585
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener">istanbul</a>
|
|
580
|
-
at
|
|
586
|
+
at Wed Dec 15 2021 17:14:00 GMT+0000 (Coordinated Universal Time)
|
|
581
587
|
</div>
|
|
582
588
|
</div>
|
|
583
|
-
<script src="
|
|
589
|
+
<script src="../../../prettify.js"></script>
|
|
584
590
|
<script>
|
|
585
591
|
window.onload = function () {
|
|
586
592
|
prettyPrint();
|
|
587
593
|
};
|
|
588
594
|
</script>
|
|
589
|
-
<script src="
|
|
590
|
-
<script src="
|
|
595
|
+
<script src="../../../sorter.js"></script>
|
|
596
|
+
<script src="../../../block-navigation.js"></script>
|
|
591
597
|
</body>
|
|
592
598
|
</html>
|
|
593
599
|
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
<html lang="en">
|
|
4
4
|
|
|
5
5
|
<head>
|
|
6
|
-
<title>Code coverage report for components/MlFollowGps</title>
|
|
6
|
+
<title>Code coverage report for src/components/MlFollowGps</title>
|
|
7
7
|
<meta charset="utf-8" />
|
|
8
|
-
<link rel="stylesheet" href="
|
|
9
|
-
<link rel="stylesheet" href="
|
|
10
|
-
<link rel="shortcut icon" type="image/x-icon" href="
|
|
8
|
+
<link rel="stylesheet" href="../../../prettify.css" />
|
|
9
|
+
<link rel="stylesheet" href="../../../base.css" />
|
|
10
|
+
<link rel="shortcut icon" type="image/x-icon" href="../../../favicon.png" />
|
|
11
11
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
12
12
|
<style type='text/css'>
|
|
13
13
|
.coverage-summary .sorter {
|
|
14
|
-
background-image: url(
|
|
14
|
+
background-image: url(../../../sort-arrow-sprite.png);
|
|
15
15
|
}
|
|
16
16
|
</style>
|
|
17
17
|
</head>
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
<body>
|
|
20
20
|
<div class='wrapper'>
|
|
21
21
|
<div class='pad1'>
|
|
22
|
-
<h1><a href="
|
|
22
|
+
<h1><a href="../../../index.html">All files</a> src/components/MlFollowGps</h1>
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
@@ -101,17 +101,17 @@
|
|
|
101
101
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
102
102
|
Code coverage generated by
|
|
103
103
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener">istanbul</a>
|
|
104
|
-
at
|
|
104
|
+
at Wed Dec 15 2021 17:14:00 GMT+0000 (Coordinated Universal Time)
|
|
105
105
|
</div>
|
|
106
106
|
</div>
|
|
107
|
-
<script src="
|
|
107
|
+
<script src="../../../prettify.js"></script>
|
|
108
108
|
<script>
|
|
109
109
|
window.onload = function () {
|
|
110
110
|
prettyPrint();
|
|
111
111
|
};
|
|
112
112
|
</script>
|
|
113
|
-
<script src="
|
|
114
|
-
<script src="
|
|
113
|
+
<script src="../../../sorter.js"></script>
|
|
114
|
+
<script src="../../../block-navigation.js"></script>
|
|
115
115
|
</body>
|
|
116
116
|
</html>
|
|
117
117
|
|