flutter-mapbox-gl / maps

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

BoundingBox issue in Map when draw route of start and end location. #1174

Closed bitelligent closed 1 year ago

bitelligent commented 2 years ago

Is there any way to fit the map polyline route within the boundingBox.

I am using this method but its not working properly in my flutter app.

_mapboxMapController?.animateCamera(CameraUpdate.newLatLngBounds(
        LatLngBounds(
            northeast: pickupLocation?.coordinates ?? const LatLng(0, 0),
            southwest: destinationLocation?.coordinates ?? const LatLng(0, 0)),
        left: 50,
        right: 50,
        top: kToolbarHeight + 20,
        bottom: 20));
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.