@mapcomponents/react-maplibre 0.1.25 → 0.1.29
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 +78 -7
- package/coverage/clover.xml +463 -486
- package/coverage/coverage-final.json +21 -20
- package/coverage/lcov-report/index.html +94 -79
- package/coverage/lcov-report/src/components/MapLibreMap/MapLibreMap.js.html +22 -22
- package/coverage/lcov-report/src/components/MapLibreMap/index.html +1 -1
- package/coverage/lcov-report/src/components/MlCreatePdfButton/MlCreatePdfButton.js.html +11 -11
- package/coverage/lcov-report/src/components/MlCreatePdfButton/index.html +11 -11
- 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 +4 -4
- package/coverage/lcov-report/src/components/MlFillExtrusionLayer/index.html +1 -1
- package/coverage/lcov-report/src/components/MlFollowGps/MlFollowGps.js.html +234 -36
- package/coverage/lcov-report/src/components/MlFollowGps/index.html +19 -19
- package/coverage/lcov-report/src/components/MlGPXViewer/MlGPXViewer.js.html +129 -165
- package/coverage/lcov-report/src/components/MlGPXViewer/gpxConverter.js.html +8 -8
- package/coverage/lcov-report/src/components/MlGPXViewer/index.html +20 -20
- package/coverage/lcov-report/src/components/MlGeoJsonLayer/MlGeoJsonLayer.js.html +45 -297
- package/coverage/lcov-report/src/components/MlGeoJsonLayer/index.html +19 -19
- 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 +2 -2
- package/coverage/lcov-report/src/components/MlLayer/index.html +1 -1
- package/coverage/lcov-report/src/components/MlLayerMagnify/MlLayerMagnify.js.html +4 -4
- package/coverage/lcov-report/src/components/MlLayerMagnify/index.html +1 -1
- package/coverage/lcov-report/src/components/MlLayerSwipe/MlLayerSwipe.js.html +3 -3
- 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 +38 -104
- package/coverage/lcov-report/src/components/MlNavigationCompass/index.html +19 -19
- package/coverage/lcov-report/src/components/MlNavigationTools/MlNavigationTools.js.html +40 -139
- package/coverage/lcov-report/src/components/MlNavigationTools/index.html +15 -15
- package/coverage/lcov-report/src/components/MlOsmLayer/MlOsmLayer.js.html +32 -155
- package/coverage/lcov-report/src/components/MlOsmLayer/index.html +19 -19
- package/coverage/lcov-report/src/components/MlScaleReference/MlScaleReference.js.html +39 -198
- package/coverage/lcov-report/src/components/MlScaleReference/index.html +9 -9
- 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 +4 -4
- 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.js.html +580 -0
- package/coverage/lcov-report/src/components/MlTransitionGeoJsonLayer/index.html +116 -0
- 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 +3 -3
- 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 +8 -11
- 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 +6 -6
- package/coverage/lcov-report/src/hooks/useMap.js.html +38 -26
- package/coverage/lcov-report/src/hooks/useMapState.js.html +47 -38
- package/coverage/lcov-report/src/hooks/useWms.js.html +2 -2
- 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 +827 -872
- package/dist/index.esm.js +281 -490
- package/dist/index.esm.js.map +1 -1
- package/jsdoc.json +3 -3
- package/package.json +13 -10
- package/src/components/MapLibreMap/lib/MapLibreGlWrapper.js +6 -2
- package/src/components/MapLibreMap/lib/MapLibreGlWrapper.test.js +3 -3
- package/src/components/MlFeatureEditor/MlFeatureEditor.test.js +2 -2
- package/src/components/MlFollowGps/MlFollowGps.js +85 -19
- package/src/components/MlGPXViewer/MlGPXViewer.js +69 -81
- package/src/components/MlGeoJsonLayer/MlGeoJsonLayer.js +6 -90
- package/src/components/MlGeoJsonLayer/MlGeoJsonLayer.stories.js +4 -22
- package/src/components/MlGeoJsonLayer/util/getDefaultPaintPropsByType.js +2 -2
- package/src/components/MlNavigationCompass/MlNavigationCompass.js +17 -39
- package/src/components/MlNavigationCompass/MlNavigationCompass.test.js +3 -3
- package/src/components/MlNavigationTools/MlNavigationTools.js +30 -63
- package/src/components/MlOsmLayer/MlOsmLayer.js +15 -56
- package/src/components/MlOsmLayer/MlOsmLayer.stories.js +21 -10
- package/src/components/MlOsmLayer/MlOsmLayer.test.js +4 -4
- package/src/components/MlScaleReference/MlScaleReference.js +29 -82
- package/src/components/MlShareMapState/MlShareMapState.stories.js +1 -3
- package/src/components/MlThreeJsLayer/lib/GLTFLoader.js +2369 -2591
- package/src/components/MlTransitionGeoJsonLayer/MlTransitionGeoJsonLayer.doc.de.md +3 -0
- package/src/components/MlTransitionGeoJsonLayer/MlTransitionGeoJsonLayer.js +165 -0
- package/src/components/MlTransitionGeoJsonLayer/MlTransitionGeoJsonLayer.meta.json +15 -0
- package/src/components/MlTransitionGeoJsonLayer/MlTransitionGeoJsonLayer.stories.js +52 -0
- package/src/components/MlTransitionGeoJsonLayer/MlTransitionGeoJsonLayer.test.js +20 -0
- package/src/components/MlTransitionGeoJsonLayer/assets/sample_1.json +26 -0
- package/src/components/MlTransitionGeoJsonLayer/assets/sample_2.json +22 -0
- package/src/components/MlTransitionGeoJsonLayer/assets/sample_polygon_1.json +33 -0
- package/src/components/{MlGeoJsonLayer → MlTransitionGeoJsonLayer}/util/transitionFunctions.js +63 -97
- package/src/components/MlWmsLayer/MlWmsLayer.js +1 -2
- package/src/decorators/MapContextDecorator.js +5 -0
- package/src/decorators/MultiMapContextDecorator.js +6 -0
- package/src/hooks/useMap.js +8 -4
- package/src/hooks/useMapState.js +4 -1
- package/src/hooks/useWms.js +1 -1
- package/dist/b556faa3bc6829d2.png +0 -0
- package/src/components/MlFollowGps/assets/marker.png +0 -0
- package/src/decorators/EmptyMapContextDecorator.js +0 -25
- package/src/decorators/MapContext3DDecorator.js +0 -39
- package/src/decorators/MapContextDashboardDecorator.js +0 -19
- package/src/decorators/MapContextKlokantechBasicDecorator.js +0 -39
package/CHANGELOG.md
CHANGED
|
@@ -1,27 +1,98 @@
|
|
|
1
1
|
# Change Log
|
|
2
|
-
|
|
3
2
|
|
|
4
|
-
## [
|
|
5
|
-
|
|
3
|
+
## [v0.1.29] - 2022-02-20
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
- 26dc071: exclude maplibre-gl from transpilation using ! webpack import syntax to prevent "Uncaught ReferenceError" bug
|
|
7
|
+
|
|
8
|
+
## [v0.1.28] - 2022-02-20
|
|
9
|
+
|
|
6
10
|
### Added
|
|
11
|
+
- 486b7a2: add device orientation indicator to MlFollowGps component
|
|
7
12
|
### Changed
|
|
13
|
+
- aba9483: upgrade maplibre-gl to v2.1.6
|
|
14
|
+
- 2f5d769: add MlNavigationtools to all storybook demos by integrating it into storybook decorators
|
|
15
|
+
- ae871c0: migrate MlScaleReference to useMap hook
|
|
16
|
+
- a322419: migrate MlNavigationTools to useMap hook
|
|
17
|
+
- 241c28d: migrate MlNavigationCompass to useMap hook
|
|
18
|
+
- 1de0269: migrate MlOsmLayer to useMap hook
|
|
19
|
+
- 83694e5: migrate MlGPXViewer to useMap hook
|
|
20
|
+
- f1e7c3d: upgrade @mui dependencies
|
|
21
|
+
- 1c873d9: upgrade three, xmldom & jspdf dependencies
|
|
22
|
+
- 2890587: Remove all LineString transition logic from MlGeoJsonLayer to MlTransitionGeoJsonLayer
|
|
23
|
+
|
|
24
|
+
### Fixed
|
|
25
|
+
- 2890587: Merge pull request #5 from mapcomponents/feature/add-mltransitiongeojsonlayer
|
|
26
|
+
|
|
27
|
+
## [v0.1.27] - 2022-02-05
|
|
8
28
|
|
|
9
29
|
### Fixed
|
|
30
|
+
- 743b8ed: set includeBaseLayers filter in useMap hool to true to make waiting for base layers possible
|
|
31
|
+
|
|
32
|
+
### Changed
|
|
33
|
+
- da55245: make the registration of an onlayerchange event handler by the useMap hook dependent on its waitForLayer prop
|
|
34
|
+
|
|
35
|
+
## [v0.1.26] - 2022-02-02
|
|
36
|
+
|
|
37
|
+
### Fixed
|
|
38
|
+
|
|
39
|
+
- adjust MlFollowGps position marker style & add flyTo instead of setCenter for new Gps positions
|
|
40
|
+
- fix useWms hook retrieval of WMS GetMap URL
|
|
41
|
+
|
|
42
|
+
## [v0.1.25] - 2022-01-31
|
|
43
|
+
|
|
44
|
+
### Fixed
|
|
45
|
+
|
|
46
|
+
- fix MlFollowGps needsRedraw bug; refactor MlFollowGps
|
|
47
|
+
|
|
48
|
+
## [v0.1.24] - 2022-01-23
|
|
10
49
|
|
|
11
|
-
|
|
50
|
+
### Fixed
|
|
51
|
+
|
|
52
|
+
- fix MlVectorTileLayer sourceId
|
|
53
|
+
|
|
54
|
+
## [v0.1.23] - 2022-01-23
|
|
55
|
+
|
|
56
|
+
### Changed
|
|
57
|
+
|
|
58
|
+
- migrate MlVectorTileLayer to useMap hook & provide full control over layer & source id
|
|
59
|
+
|
|
60
|
+
## [v0.1.22] - 2022-01-23
|
|
61
|
+
|
|
62
|
+
### Changed
|
|
63
|
+
|
|
64
|
+
- make MlVectorTileLayer props.layers[].layout properties update dynamically
|
|
65
|
+
|
|
66
|
+
## [v0.1.21] - 2022-01-21
|
|
67
|
+
|
|
68
|
+
### Fixed
|
|
69
|
+
|
|
70
|
+
- migrate MlVectorTileLayer to useMap hook & provide full control over layer & source id
|
|
71
|
+
|
|
72
|
+
## [v0.1.20] - 2022-01-17
|
|
73
|
+
|
|
74
|
+
### Changed
|
|
75
|
+
- migrate MlWmsLayer to use useMap hook instead of mapContext
|
|
76
|
+
|
|
77
|
+
### Fixed
|
|
78
|
+
- adjust MapLibreGlWrapper to fire layerchange events more efficiently
|
|
79
|
+
- MlShareMapState: prevent pushing new history states if props.active is false
|
|
80
|
+
- fix MlWmsLayer & tests
|
|
81
|
+
- fix MlVectorTileLayer visible property
|
|
82
|
+
- fix MlGeoJsonLayer props.onHover, props.onClick, props.onLeave
|
|
12
83
|
|
|
13
84
|
### Added
|
|
14
85
|
- add props.sourceOptions to MlVectorTileLayer
|
|
15
|
-
## [
|
|
86
|
+
## [v0.1.19] - 2022-01-09
|
|
16
87
|
|
|
17
88
|
### Added
|
|
18
89
|
- add props.options to MlGeoJsonLayer
|
|
19
|
-
## [
|
|
90
|
+
## [v0.1.18] - 2022-01-09
|
|
20
91
|
|
|
21
92
|
### Added
|
|
22
93
|
- add props.defaultPaintOverrides to MlGeoJsonLayer
|
|
23
94
|
|
|
24
|
-
## [
|
|
95
|
+
## [v0.1.17] - 2022-01-09
|
|
25
96
|
|
|
26
97
|
### Added
|
|
27
98
|
- add implicit layer-type (props.type) casting for MlGeoJsonLayer
|