@maplibre/maplibre-react-native 11.0.0-beta.15 → 11.0.0-beta.16
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.
|
@@ -91,7 +91,6 @@ open class MLRNMapView(
|
|
|
91
91
|
OnMapReadyCallback,
|
|
92
92
|
MapLibreMap.OnMapClickListener,
|
|
93
93
|
MapLibreMap.OnMapLongClickListener,
|
|
94
|
-
MapView.OnCameraIsChangingListener,
|
|
95
94
|
MapView.OnCameraDidChangeListener,
|
|
96
95
|
MapView.OnWillStartLoadingMapListener,
|
|
97
96
|
MapView.OnDidFailLoadingMapListener,
|
|
@@ -347,7 +346,6 @@ open class MLRNMapView(
|
|
|
347
346
|
|
|
348
347
|
setLifecycleListeners()
|
|
349
348
|
|
|
350
|
-
addOnCameraIsChangingListener(this)
|
|
351
349
|
addOnCameraDidChangeListener(this)
|
|
352
350
|
addOnDidFailLoadingMapListener(this)
|
|
353
351
|
addOnDidFinishLoadingMapListener(this)
|
|
@@ -417,6 +415,10 @@ open class MLRNMapView(
|
|
|
417
415
|
handleMapChangedEvent("onRegionWillChange", true)
|
|
418
416
|
}
|
|
419
417
|
|
|
418
|
+
mapLibreMap.addOnCameraMoveListener {
|
|
419
|
+
handleMapChangedEvent("onRegionIsChanging", true)
|
|
420
|
+
}
|
|
421
|
+
|
|
420
422
|
mapLibreMap.addOnMoveListener(
|
|
421
423
|
object : MapLibreMap.OnMoveListener {
|
|
422
424
|
override fun onMoveBegin(detector: MoveGestureDetector) {
|
|
@@ -425,8 +427,7 @@ open class MLRNMapView(
|
|
|
425
427
|
}
|
|
426
428
|
|
|
427
429
|
override fun onMove(detector: MoveGestureDetector) {
|
|
428
|
-
|
|
429
|
-
handleMapChangedEvent("onRegionIsChanging", true)
|
|
430
|
+
// Handled by mapLibreMap.addOnCameraMoveListener
|
|
430
431
|
}
|
|
431
432
|
|
|
432
433
|
override fun onMoveEnd(detector: MoveGestureDetector) {
|
|
@@ -621,10 +622,6 @@ open class MLRNMapView(
|
|
|
621
622
|
cameraChangeTracker.isAnimating = animated
|
|
622
623
|
}
|
|
623
624
|
|
|
624
|
-
override fun onCameraIsChanging() {
|
|
625
|
-
handleMapChangedEvent("onRegionIsChanging", true)
|
|
626
|
-
}
|
|
627
|
-
|
|
628
625
|
override fun onWillStartLoadingMap() {
|
|
629
626
|
handleMapChangedEvent("onWillStartLoadingMap")
|
|
630
627
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maplibre/maplibre-react-native",
|
|
3
3
|
"description": "React Native library for creating maps with MapLibre Native for Android & iOS",
|
|
4
|
-
"version": "11.0.0-beta.
|
|
4
|
+
"version": "11.0.0-beta.16",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
7
7
|
"provenance": true
|