@mapcomponents/react-maplibre 0.1.26 → 0.1.27
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 +6 -0
- package/coverage/clover.xml +50 -50
- package/coverage/coverage-final.json +2 -2
- package/coverage/lcov-report/index.html +5 -5
- 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 +1 -1
- package/coverage/lcov-report/src/components/MlGeoJsonLayer/index.html +1 -1
- 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 +6 -6
- package/coverage/lcov-report/src/hooks/useMap.js.html +15 -6
- package/coverage/lcov-report/src/hooks/useMapState.js.html +21 -12
- 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 +78 -76
- package/dist/index.esm.js +10 -4
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/hooks/useMap.js +5 -2
- package/src/hooks/useMapState.js +3 -0
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">
|
|
33
|
+
<span class="strong">40.9% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>
|
|
35
|
+
<span class='fraction'>9/22</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
@@ -214,7 +214,10 @@
|
|
|
214
214
|
<a name='L149'></a><a href='#L149'>149</a>
|
|
215
215
|
<a name='L150'></a><a href='#L150'>150</a>
|
|
216
216
|
<a name='L151'></a><a href='#L151'>151</a>
|
|
217
|
-
<a name='L152'></a><a href='#L152'>152</a
|
|
217
|
+
<a name='L152'></a><a href='#L152'>152</a>
|
|
218
|
+
<a name='L153'></a><a href='#L153'>153</a>
|
|
219
|
+
<a name='L154'></a><a href='#L154'>154</a>
|
|
220
|
+
<a name='L155'></a><a href='#L155'>155</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
218
221
|
<span class="cline-any cline-neutral"> </span>
|
|
219
222
|
<span class="cline-any cline-neutral"> </span>
|
|
220
223
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -265,11 +268,11 @@
|
|
|
265
268
|
<span class="cline-any cline-neutral"> </span>
|
|
266
269
|
<span class="cline-any cline-neutral"> </span>
|
|
267
270
|
<span class="cline-any cline-yes">73x</span>
|
|
268
|
-
<span class="cline-any cline-yes">
|
|
269
|
-
<span class="cline-any cline-yes">
|
|
270
|
-
<span class="cline-any cline-yes">
|
|
271
|
-
<span class="cline-any cline-yes">
|
|
272
|
-
<span class="cline-any cline-yes">
|
|
271
|
+
<span class="cline-any cline-yes">4x</span>
|
|
272
|
+
<span class="cline-any cline-yes">4x</span>
|
|
273
|
+
<span class="cline-any cline-yes">4x</span>
|
|
274
|
+
<span class="cline-any cline-yes">4x</span>
|
|
275
|
+
<span class="cline-any cline-yes">4x</span>
|
|
273
276
|
<span class="cline-any cline-neutral"> </span>
|
|
274
277
|
<span class="cline-any cline-neutral"> </span>
|
|
275
278
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -277,6 +280,7 @@
|
|
|
277
280
|
<span class="cline-any cline-yes">22x</span>
|
|
278
281
|
<span class="cline-any cline-neutral"> </span>
|
|
279
282
|
<span class="cline-any cline-yes">22x</span>
|
|
283
|
+
<span class="cline-any cline-neutral"> </span>
|
|
280
284
|
<span class="cline-any cline-yes">10x</span>
|
|
281
285
|
<span class="cline-any cline-yes">10x</span>
|
|
282
286
|
<span class="cline-any cline-yes">10x</span>
|
|
@@ -286,7 +290,7 @@
|
|
|
286
290
|
<span class="cline-any cline-neutral"> </span>
|
|
287
291
|
<span class="cline-any cline-neutral"> </span>
|
|
288
292
|
<span class="cline-any cline-yes">73x</span>
|
|
289
|
-
<span class="cline-any cline-yes">
|
|
293
|
+
<span class="cline-any cline-yes">65x</span>
|
|
290
294
|
<span class="cline-any cline-neutral"> </span>
|
|
291
295
|
<span class="cline-any cline-neutral"> </span>
|
|
292
296
|
<span class="cline-any cline-yes">22x</span>
|
|
@@ -295,6 +299,7 @@
|
|
|
295
299
|
<span class="cline-any cline-yes">22x</span>
|
|
296
300
|
<span class="cline-any cline-no"> </span>
|
|
297
301
|
<span class="cline-any cline-neutral"> </span>
|
|
302
|
+
<span class="cline-any cline-neutral"> </span>
|
|
298
303
|
<span class="cline-any cline-no"> </span>
|
|
299
304
|
<span class="cline-any cline-neutral"> </span>
|
|
300
305
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -306,10 +311,11 @@
|
|
|
306
311
|
<span class="cline-any cline-neutral"> </span>
|
|
307
312
|
<span class="cline-any cline-neutral"> </span>
|
|
308
313
|
<span class="cline-any cline-neutral"> </span>
|
|
309
|
-
<span class="cline-any cline-yes">22x</span>
|
|
310
|
-
<span class="cline-any cline-yes">22x</span>
|
|
311
314
|
<span class="cline-any cline-neutral"> </span>
|
|
312
315
|
<span class="cline-any cline-yes">22x</span>
|
|
316
|
+
<span class="cline-any cline-yes">4x</span>
|
|
317
|
+
<span class="cline-any cline-neutral"> </span>
|
|
318
|
+
<span class="cline-any cline-yes">4x</span>
|
|
313
319
|
<span class="cline-any cline-neutral"> </span>
|
|
314
320
|
<span class="cline-any cline-neutral"> </span>
|
|
315
321
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -428,6 +434,7 @@ function useMapState(props) {
|
|
|
428
434
|
let _componentId = componentId.current;
|
|
429
435
|
|
|
430
436
|
return () => {
|
|
437
|
+
// cleanup all event listeners
|
|
431
438
|
if (mapRef.current) {
|
|
432
439
|
mapRef.current.cleanup(_componentId);
|
|
433
440
|
mapRef.current = undefined;
|
|
@@ -446,6 +453,7 @@ function useMapState(props) {
|
|
|
446
453
|
<span class="missing-if-branch" title="if path not taken" >I</span>if (props?.watch?.viewport) {
|
|
447
454
|
<span class="cstat-no" title="statement not covered" > setViewport(mapRef.current.wrapper.viewportState);</span>
|
|
448
455
|
|
|
456
|
+
// register viewportchange event handler
|
|
449
457
|
<span class="cstat-no" title="statement not covered" > mapRef.current.wrapper.on(</span>
|
|
450
458
|
"viewportchange",
|
|
451
459
|
<span class="fstat-no" title="function not covered" > ()</span> => {
|
|
@@ -457,6 +465,7 @@ function useMapState(props) {
|
|
|
457
465
|
);
|
|
458
466
|
}
|
|
459
467
|
|
|
468
|
+
// register layerchange event handler
|
|
460
469
|
if (props?.watch?.layers) {
|
|
461
470
|
refreshLayerState();
|
|
462
471
|
|
|
@@ -523,7 +532,7 @@ export default useMapState;
|
|
|
523
532
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
524
533
|
Code coverage generated by
|
|
525
534
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
526
|
-
at
|
|
535
|
+
at Sat Feb 05 2022 08:34:23 GMT+0000 (Coordinated Universal Time)
|
|
527
536
|
</div>
|
|
528
537
|
<script src="../../prettify.js"></script>
|
|
529
538
|
<script>
|
|
@@ -343,7 +343,7 @@ export default useWms;
|
|
|
343
343
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
344
344
|
Code coverage generated by
|
|
345
345
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
346
|
-
at
|
|
346
|
+
at Sat Feb 05 2022 08:34:23 GMT+0000 (Coordinated Universal Time)
|
|
347
347
|
</div>
|
|
348
348
|
<script src="../../prettify.js"></script>
|
|
349
349
|
<script>
|
|
@@ -151,7 +151,7 @@ export default i18n;</pre></td></tr></table></pre>
|
|
|
151
151
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
152
152
|
Code coverage generated by
|
|
153
153
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
154
|
-
at
|
|
154
|
+
at Sat Feb 05 2022 08:34:23 GMT+0000 (Coordinated Universal Time)
|
|
155
155
|
</div>
|
|
156
156
|
<script src="../prettify.js"></script>
|
|
157
157
|
<script>
|
|
@@ -101,7 +101,7 @@
|
|
|
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 noreferrer">istanbul</a>
|
|
104
|
-
at
|
|
104
|
+
at Sat Feb 05 2022 08:34:23 GMT+0000 (Coordinated Universal Time)
|
|
105
105
|
</div>
|
|
106
106
|
<script src="../prettify.js"></script>
|
|
107
107
|
<script>
|
|
@@ -79,7 +79,7 @@ export default english;</pre></td></tr></table></pre>
|
|
|
79
79
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
80
80
|
Code coverage generated by
|
|
81
81
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
82
|
-
at
|
|
82
|
+
at Sat Feb 05 2022 08:34:23 GMT+0000 (Coordinated Universal Time)
|
|
83
83
|
</div>
|
|
84
84
|
<script src="../../prettify.js"></script>
|
|
85
85
|
<script>
|
|
@@ -79,7 +79,7 @@ export default german;</pre></td></tr></table></pre>
|
|
|
79
79
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
80
80
|
Code coverage generated by
|
|
81
81
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
82
|
-
at
|
|
82
|
+
at Sat Feb 05 2022 08:34:23 GMT+0000 (Coordinated Universal Time)
|
|
83
83
|
</div>
|
|
84
84
|
<script src="../../prettify.js"></script>
|
|
85
85
|
<script>
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
117
117
|
Code coverage generated by
|
|
118
118
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
119
|
-
at
|
|
119
|
+
at Sat Feb 05 2022 08:34:23 GMT+0000 (Coordinated Universal Time)
|
|
120
120
|
</div>
|
|
121
121
|
<script src="../../prettify.js"></script>
|
|
122
122
|
<script>
|
package/coverage/lcov.info
CHANGED
|
@@ -3132,60 +3132,62 @@ end_of_record
|
|
|
3132
3132
|
TN:
|
|
3133
3133
|
SF:src/hooks/useMap.js
|
|
3134
3134
|
FN:6,useMap
|
|
3135
|
-
FN:
|
|
3136
|
-
FN:
|
|
3137
|
-
FN:
|
|
3138
|
-
FN:
|
|
3135
|
+
FN:29,(anonymous_1)
|
|
3136
|
+
FN:32,(anonymous_2)
|
|
3137
|
+
FN:42,(anonymous_3)
|
|
3138
|
+
FN:49,(anonymous_4)
|
|
3139
3139
|
FNF:5
|
|
3140
3140
|
FNH:4
|
|
3141
3141
|
FNDA:57,useMap
|
|
3142
3142
|
FNDA:18,(anonymous_1)
|
|
3143
3143
|
FNDA:8,(anonymous_2)
|
|
3144
|
-
FNDA:
|
|
3144
|
+
FNDA:36,(anonymous_3)
|
|
3145
3145
|
FNDA:0,(anonymous_4)
|
|
3146
3146
|
DA:8,57
|
|
3147
3147
|
DA:10,57
|
|
3148
|
-
DA:19,57
|
|
3149
|
-
DA:20,57
|
|
3150
3148
|
DA:22,57
|
|
3151
|
-
DA:
|
|
3152
|
-
DA:
|
|
3153
|
-
DA:27,
|
|
3154
|
-
DA:29,
|
|
3155
|
-
DA:30,
|
|
3156
|
-
DA:
|
|
3157
|
-
DA:
|
|
3149
|
+
DA:23,57
|
|
3150
|
+
DA:25,57
|
|
3151
|
+
DA:27,57
|
|
3152
|
+
DA:29,57
|
|
3153
|
+
DA:30,18
|
|
3154
|
+
DA:32,18
|
|
3155
|
+
DA:33,8
|
|
3158
3156
|
DA:34,8
|
|
3159
3157
|
DA:35,8
|
|
3160
|
-
DA:
|
|
3161
|
-
DA:
|
|
3162
|
-
DA:
|
|
3163
|
-
DA:
|
|
3164
|
-
DA:46,
|
|
3158
|
+
DA:37,8
|
|
3159
|
+
DA:38,8
|
|
3160
|
+
DA:42,57
|
|
3161
|
+
DA:43,36
|
|
3162
|
+
DA:46,18
|
|
3165
3163
|
DA:47,0
|
|
3166
|
-
DA:
|
|
3164
|
+
DA:49,0
|
|
3165
|
+
DA:50,0
|
|
3167
3166
|
DA:51,0
|
|
3168
|
-
DA:
|
|
3169
|
-
DA:
|
|
3170
|
-
DA:
|
|
3171
|
-
DA:
|
|
3172
|
-
DA:62,
|
|
3167
|
+
DA:54,0
|
|
3168
|
+
DA:55,0
|
|
3169
|
+
DA:60,18
|
|
3170
|
+
DA:61,18
|
|
3171
|
+
DA:62,18
|
|
3172
|
+
DA:65,57
|
|
3173
3173
|
LF:27
|
|
3174
3174
|
LH:21
|
|
3175
|
-
BRDA:
|
|
3176
|
-
BRDA:
|
|
3177
|
-
BRDA:
|
|
3178
|
-
BRDA:
|
|
3179
|
-
BRDA:
|
|
3180
|
-
BRDA:
|
|
3181
|
-
BRDA:43,3,0,
|
|
3175
|
+
BRDA:14,0,0,0
|
|
3176
|
+
BRDA:14,0,1,57
|
|
3177
|
+
BRDA:33,1,0,8
|
|
3178
|
+
BRDA:33,1,1,0
|
|
3179
|
+
BRDA:43,2,0,18
|
|
3180
|
+
BRDA:43,2,1,18
|
|
3181
|
+
BRDA:43,3,0,36
|
|
3182
3182
|
BRDA:43,3,1,18
|
|
3183
|
-
BRDA:
|
|
3184
|
-
BRDA:
|
|
3185
|
-
BRDA:
|
|
3186
|
-
BRDA:
|
|
3187
|
-
|
|
3188
|
-
|
|
3183
|
+
BRDA:46,4,0,0
|
|
3184
|
+
BRDA:46,4,1,18
|
|
3185
|
+
BRDA:50,5,0,0
|
|
3186
|
+
BRDA:50,5,1,0
|
|
3187
|
+
BRDA:54,6,0,0
|
|
3188
|
+
BRDA:54,6,1,0
|
|
3189
|
+
BRF:14
|
|
3190
|
+
BRH:7
|
|
3189
3191
|
end_of_record
|
|
3190
3192
|
TN:
|
|
3191
3193
|
SF:src/hooks/useMapState.js
|
|
@@ -3194,16 +3196,16 @@ FN:33,(anonymous_1)
|
|
|
3194
3196
|
FN:51,(anonymous_2)
|
|
3195
3197
|
FN:60,(anonymous_3)
|
|
3196
3198
|
FN:63,(anonymous_4)
|
|
3197
|
-
FN:
|
|
3198
|
-
FN:
|
|
3199
|
+
FN:73,(anonymous_5)
|
|
3200
|
+
FN:86,(anonymous_6)
|
|
3199
3201
|
FNF:7
|
|
3200
3202
|
FNH:5
|
|
3201
3203
|
FNDA:73,useMapState
|
|
3202
3204
|
FNDA:0,(anonymous_1)
|
|
3203
|
-
FNDA:
|
|
3205
|
+
FNDA:4,(anonymous_2)
|
|
3204
3206
|
FNDA:22,(anonymous_3)
|
|
3205
3207
|
FNDA:10,(anonymous_4)
|
|
3206
|
-
FNDA:
|
|
3208
|
+
FNDA:65,(anonymous_5)
|
|
3207
3209
|
FNDA:0,(anonymous_6)
|
|
3208
3210
|
DA:13,73
|
|
3209
3211
|
DA:15,73
|
|
@@ -3222,33 +3224,33 @@ DA:40,0
|
|
|
3222
3224
|
DA:42,0
|
|
3223
3225
|
DA:46,0
|
|
3224
3226
|
DA:51,73
|
|
3225
|
-
DA:52,
|
|
3226
|
-
DA:53,
|
|
3227
|
-
DA:54,
|
|
3228
|
-
DA:55,
|
|
3229
|
-
DA:56,
|
|
3227
|
+
DA:52,4
|
|
3228
|
+
DA:53,4
|
|
3229
|
+
DA:54,4
|
|
3230
|
+
DA:55,4
|
|
3231
|
+
DA:56,4
|
|
3230
3232
|
DA:60,73
|
|
3231
3233
|
DA:61,22
|
|
3232
3234
|
DA:63,22
|
|
3233
|
-
DA:64,10
|
|
3234
3235
|
DA:65,10
|
|
3235
3236
|
DA:66,10
|
|
3236
|
-
DA:
|
|
3237
|
-
DA:
|
|
3238
|
-
DA:73,
|
|
3239
|
-
DA:
|
|
3237
|
+
DA:67,10
|
|
3238
|
+
DA:69,10
|
|
3239
|
+
DA:73,73
|
|
3240
|
+
DA:74,65
|
|
3240
3241
|
DA:77,22
|
|
3241
|
-
DA:
|
|
3242
|
-
DA:80,
|
|
3243
|
-
DA:
|
|
3244
|
-
DA:
|
|
3245
|
-
DA:
|
|
3246
|
-
DA:
|
|
3247
|
-
DA:94,22
|
|
3242
|
+
DA:78,22
|
|
3243
|
+
DA:80,22
|
|
3244
|
+
DA:81,0
|
|
3245
|
+
DA:84,0
|
|
3246
|
+
DA:87,0
|
|
3247
|
+
DA:88,0
|
|
3248
3248
|
DA:96,22
|
|
3249
|
-
DA:
|
|
3250
|
-
DA:
|
|
3251
|
-
DA:
|
|
3249
|
+
DA:97,4
|
|
3250
|
+
DA:99,4
|
|
3251
|
+
DA:111,73
|
|
3252
|
+
DA:117,6
|
|
3253
|
+
DA:129,6
|
|
3252
3254
|
LF:44
|
|
3253
3255
|
LH:33
|
|
3254
3256
|
BRDA:34,0,0,0
|
|
@@ -3259,22 +3261,22 @@ BRDA:38,2,0,0
|
|
|
3259
3261
|
BRDA:38,2,1,0
|
|
3260
3262
|
BRDA:39,3,0,0
|
|
3261
3263
|
BRDA:39,3,1,0
|
|
3262
|
-
BRDA:54,4,0,
|
|
3264
|
+
BRDA:54,4,0,4
|
|
3263
3265
|
BRDA:54,4,1,0
|
|
3264
|
-
BRDA:
|
|
3265
|
-
BRDA:
|
|
3266
|
-
BRDA:
|
|
3267
|
-
BRDA:
|
|
3268
|
-
BRDA:
|
|
3269
|
-
BRDA:
|
|
3270
|
-
BRDA:
|
|
3271
|
-
BRDA:
|
|
3272
|
-
BRDA:
|
|
3273
|
-
BRDA:
|
|
3274
|
-
BRDA:
|
|
3275
|
-
BRDA:
|
|
3266
|
+
BRDA:65,5,0,10
|
|
3267
|
+
BRDA:65,5,1,0
|
|
3268
|
+
BRDA:74,6,0,43
|
|
3269
|
+
BRDA:74,6,1,22
|
|
3270
|
+
BRDA:74,7,0,65
|
|
3271
|
+
BRDA:74,7,1,43
|
|
3272
|
+
BRDA:80,8,0,0
|
|
3273
|
+
BRDA:80,8,1,22
|
|
3274
|
+
BRDA:87,9,0,0
|
|
3275
|
+
BRDA:87,9,1,0
|
|
3276
|
+
BRDA:96,10,0,4
|
|
3277
|
+
BRDA:96,10,1,18
|
|
3276
3278
|
BRF:22
|
|
3277
|
-
BRH:
|
|
3279
|
+
BRH:9
|
|
3278
3280
|
end_of_record
|
|
3279
3281
|
TN:
|
|
3280
3282
|
SF:src/hooks/useWms.js
|
package/dist/index.esm.js
CHANGED
|
@@ -910,6 +910,7 @@ function useMapState(props) {
|
|
|
910
910
|
useEffect(function () {
|
|
911
911
|
var _componentId = componentId.current;
|
|
912
912
|
return function () {
|
|
913
|
+
// cleanup all event listeners
|
|
913
914
|
if (mapRef.current) {
|
|
914
915
|
mapRef.current.cleanup(_componentId);
|
|
915
916
|
mapRef.current = undefined;
|
|
@@ -928,7 +929,8 @@ function useMapState(props) {
|
|
|
928
929
|
mapRef.current = mapContext.getMap(props.mapId);
|
|
929
930
|
|
|
930
931
|
if (props !== null && props !== void 0 && (_props$watch = props.watch) !== null && _props$watch !== void 0 && _props$watch.viewport) {
|
|
931
|
-
setViewport(mapRef.current.wrapper.viewportState);
|
|
932
|
+
setViewport(mapRef.current.wrapper.viewportState); // register viewportchange event handler
|
|
933
|
+
|
|
932
934
|
mapRef.current.wrapper.on("viewportchange", function () {
|
|
933
935
|
var _mapRef$current;
|
|
934
936
|
|
|
@@ -938,7 +940,8 @@ function useMapState(props) {
|
|
|
938
940
|
setViewport((_mapRef$current2 = mapRef.current) === null || _mapRef$current2 === void 0 ? void 0 : _mapRef$current2.wrapper.viewportState);
|
|
939
941
|
}
|
|
940
942
|
}, componentId.current);
|
|
941
|
-
}
|
|
943
|
+
} // register layerchange event handler
|
|
944
|
+
|
|
942
945
|
|
|
943
946
|
if (props !== null && props !== void 0 && (_props$watch2 = props.watch) !== null && _props$watch2 !== void 0 && _props$watch2.layers) {
|
|
944
947
|
var _props$filter3, _props$filter4;
|
|
@@ -1001,15 +1004,18 @@ function useMap(props) {
|
|
|
1001
1004
|
mapId: props.mapId,
|
|
1002
1005
|
watch: {
|
|
1003
1006
|
viewport: false,
|
|
1004
|
-
layers: true,
|
|
1007
|
+
layers: props.waitForLayer ? true : false,
|
|
1005
1008
|
sources: false
|
|
1009
|
+
},
|
|
1010
|
+
filter: {
|
|
1011
|
+
includeBaseLayers: true
|
|
1006
1012
|
}
|
|
1007
1013
|
});
|
|
1008
1014
|
var initializedRef = useRef(false);
|
|
1009
1015
|
var mapRef = useRef(undefined);
|
|
1010
1016
|
var componentId = useRef(v4());
|
|
1011
1017
|
|
|
1012
|
-
var _useState = useState(
|
|
1018
|
+
var _useState = useState(false),
|
|
1013
1019
|
_useState2 = _slicedToArray(_useState, 2),
|
|
1014
1020
|
mapIsReady = _useState2[0],
|
|
1015
1021
|
setMapIsReady = _useState2[1];
|