From deb5bdb4179ab3ad701e452cc72c524438b824c3 Mon Sep 17 00:00:00 2001 From: Nick Ray Date: Sun, 7 Jun 2020 19:50:34 -0600 Subject: [PATCH] Fix `onCameraIdle` callback not being invoked It looks like this invokation was accidentally removed in ebef5dbaede55e6f1ccfca496f5b04589245ac53 which prevents the firing of `onCameraIdle` (if the client passes this option). This commit adds this functionality back in. --- lib/src/controller.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/src/controller.dart b/lib/src/controller.dart index 1f0b7b582..d6fa90325 100644 --- a/lib/src/controller.dart +++ b/lib/src/controller.dart @@ -83,6 +83,9 @@ class MapboxMapController extends ChangeNotifier { MapboxGlPlatform.instance.onCameraIdlePlatform.add((_) { _isCameraMoving = false; + if (onCameraIdle != null) { + onCameraIdle(); + } notifyListeners(); });