@mapcomponents/react-maplibre 0.1.43 → 0.1.44
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 +5 -0
- package/coverage/clover.xml +25 -26
- package/coverage/coverage-final.json +1 -1
- package/coverage/lcov-report/index.html +9 -9
- 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/MlCreatePdfButton/MlCreatePdfButton.tsx.html +1 -1
- package/coverage/lcov-report/src/components/MlCreatePdfButton/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/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/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/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 +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.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 +9 -9
- package/coverage/lcov-report/src/hooks/useLayer.ts.html +7 -10
- package/coverage/lcov-report/src/hooks/useMap.ts.html +1 -1
- package/coverage/lcov-report/src/hooks/useMapState.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 +1 -1
- package/coverage/lcov.info +35 -35
- package/dist/index.esm.js +1 -1
- package/package.json +1 -1
- package/src/hooks/useLayer.ts +1 -2
|
@@ -181,7 +181,7 @@ export { default as SimpleDataContext } from './contexts/SimpleDataContext';</pr
|
|
|
181
181
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
182
182
|
Code coverage generated by
|
|
183
183
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
184
|
-
at Tue May 10 2022
|
|
184
|
+
at Tue May 10 2022 15:12:51 GMT+0000 (Coordinated Universal Time)
|
|
185
185
|
</div>
|
|
186
186
|
<script src="../prettify.js"></script>
|
|
187
187
|
<script>
|
package/coverage/lcov.info
CHANGED
|
@@ -3006,9 +3006,9 @@ FN:59,(anonymous_1)
|
|
|
3006
3006
|
FN:108,(anonymous_2)
|
|
3007
3007
|
FN:123,(anonymous_3)
|
|
3008
3008
|
FN:130,(anonymous_4)
|
|
3009
|
-
FN:
|
|
3010
|
-
FN:
|
|
3011
|
-
FN:
|
|
3009
|
+
FN:159,(anonymous_5)
|
|
3010
|
+
FN:164,(anonymous_6)
|
|
3011
|
+
FN:165,(anonymous_7)
|
|
3012
3012
|
FNF:8
|
|
3013
3013
|
FNH:8
|
|
3014
3014
|
FNDA:60,useLayer
|
|
@@ -3053,30 +3053,29 @@ DA:124,28
|
|
|
3053
3053
|
DA:127,12
|
|
3054
3054
|
DA:130,60
|
|
3055
3055
|
DA:131,60
|
|
3056
|
-
DA:
|
|
3056
|
+
DA:135,32
|
|
3057
3057
|
DA:136,32
|
|
3058
|
-
DA:137,
|
|
3059
|
-
DA:
|
|
3058
|
+
DA:137,0
|
|
3059
|
+
DA:139,0
|
|
3060
3060
|
DA:140,0
|
|
3061
3061
|
DA:141,0
|
|
3062
|
-
DA:
|
|
3063
|
-
DA:
|
|
3062
|
+
DA:144,0
|
|
3063
|
+
DA:147,32
|
|
3064
3064
|
DA:148,32
|
|
3065
|
-
DA:149,
|
|
3065
|
+
DA:149,0
|
|
3066
3066
|
DA:150,0
|
|
3067
3067
|
DA:151,0
|
|
3068
3068
|
DA:152,0
|
|
3069
|
-
DA:
|
|
3070
|
-
DA:
|
|
3071
|
-
DA:160,
|
|
3069
|
+
DA:155,0
|
|
3070
|
+
DA:159,60
|
|
3071
|
+
DA:160,7
|
|
3072
3072
|
DA:161,7
|
|
3073
|
-
DA:
|
|
3074
|
-
DA:165,
|
|
3075
|
-
DA:166,
|
|
3076
|
-
DA:
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
LH:42
|
|
3073
|
+
DA:164,60
|
|
3074
|
+
DA:165,14
|
|
3075
|
+
DA:166,7
|
|
3076
|
+
DA:170,60
|
|
3077
|
+
LF:55
|
|
3078
|
+
LH:41
|
|
3080
3079
|
BRDA:56,0,0,60
|
|
3081
3080
|
BRDA:56,0,1,20
|
|
3082
3081
|
BRDA:56,1,0,20
|
|
@@ -3116,22 +3115,23 @@ BRDA:131,16,1,32
|
|
|
3116
3115
|
BRDA:131,17,0,60
|
|
3117
3116
|
BRDA:131,17,1,32
|
|
3118
3117
|
BRDA:131,17,2,32
|
|
3119
|
-
BRDA:
|
|
3120
|
-
BRDA:
|
|
3121
|
-
BRDA:
|
|
3122
|
-
BRDA:
|
|
3123
|
-
BRDA:
|
|
3124
|
-
BRDA:
|
|
3125
|
-
BRDA:
|
|
3126
|
-
BRDA:
|
|
3127
|
-
BRDA:
|
|
3128
|
-
BRDA:
|
|
3129
|
-
BRDA:
|
|
3130
|
-
BRDA:
|
|
3131
|
-
BRDA:
|
|
3132
|
-
BRDA:
|
|
3133
|
-
|
|
3134
|
-
|
|
3118
|
+
BRDA:131,17,3,32
|
|
3119
|
+
BRDA:136,18,0,0
|
|
3120
|
+
BRDA:136,18,1,32
|
|
3121
|
+
BRDA:136,19,0,32
|
|
3122
|
+
BRDA:136,19,1,16
|
|
3123
|
+
BRDA:140,20,0,0
|
|
3124
|
+
BRDA:140,20,1,0
|
|
3125
|
+
BRDA:140,21,0,0
|
|
3126
|
+
BRDA:140,21,1,0
|
|
3127
|
+
BRDA:148,22,0,0
|
|
3128
|
+
BRDA:148,22,1,32
|
|
3129
|
+
BRDA:151,23,0,0
|
|
3130
|
+
BRDA:151,23,1,0
|
|
3131
|
+
BRDA:151,24,0,0
|
|
3132
|
+
BRDA:151,24,1,0
|
|
3133
|
+
BRF:54
|
|
3134
|
+
BRH:37
|
|
3135
3135
|
end_of_record
|
|
3136
3136
|
TN:
|
|
3137
3137
|
SF:src/hooks/useMap.ts
|
package/dist/index.esm.js
CHANGED
|
@@ -12273,7 +12273,7 @@ function useLayer(props) {
|
|
|
12273
12273
|
}, [props.geojson, mapHook.map, props.options.type]);
|
|
12274
12274
|
useEffect(function () {
|
|
12275
12275
|
var _a, _b, _c, _d, _e;
|
|
12276
|
-
if (!mapHook.map || !((_c = (_b = (_a = mapHook.map) === null || _a === void 0 ? void 0 : _a.map) === null || _b === void 0 ? void 0 : _b.getLayer) === null || _c === void 0 ? void 0 : _c.call(_b, layerId.current)) || !initializedRef.current)
|
|
12276
|
+
if (!mapHook.map || !((_c = (_b = (_a = mapHook.map) === null || _a === void 0 ? void 0 : _a.map) === null || _b === void 0 ? void 0 : _b.getLayer) === null || _c === void 0 ? void 0 : _c.call(_b, layerId.current)) || !initializedRef.current || props.options.type !== layerTypeRef.current)
|
|
12277
12277
|
return;
|
|
12278
12278
|
var key;
|
|
12279
12279
|
var layoutString = JSON.stringify(props.options.layout);
|
package/package.json
CHANGED
package/src/hooks/useLayer.ts
CHANGED
|
@@ -128,8 +128,7 @@ function useLayer(props: useLayerProps): useLayerType {
|
|
|
128
128
|
}, [props.geojson, mapHook.map, props.options.type]);
|
|
129
129
|
|
|
130
130
|
useEffect(() => {
|
|
131
|
-
if (!mapHook.map || !mapHook.map?.map?.getLayer?.(layerId.current) || !initializedRef.current)
|
|
132
|
-
return;
|
|
131
|
+
if (!mapHook.map || !mapHook.map?.map?.getLayer?.(layerId.current) || !initializedRef.current || props.options.type !== layerTypeRef.current)return;
|
|
133
132
|
|
|
134
133
|
var key;
|
|
135
134
|
|