flutter-mapbox-gl / maps

A Mapbox GL flutter package for creating custom maps
Other
1.04k stars 503 forks source link

Camera always returns to the set Latitude Longitude bounds #1188

Closed noorbakerally closed 1 year ago

noorbakerally commented 2 years ago

Below is an example how I am getting a new LatLngBound. The problem I am getting is that the Camera is stuck to this bound, whenever I scroll to some other location, it returns to this bound. Probably this is the default behaviour, but how i can prevent this, is how after settings the newLatLngBounds, allow the user to scroll to other places without always returning to the set bound?


mapController.animateCamera(
          CameraUpdate.newLatLngBounds(
              LatLngBounds(southwest: LatLng(minLatitude,minLongitude), northeast: LatLng(maxLatitude,maxLongitude)),
              top: 20,
              bottom: 20,
              right: 20,
              left: 20
          ),duration: Duration(seconds: DefaultSettings.animInitialRouteShow));
stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.