Prevent grey areas when panning or zooming out map

This commit is contained in:
ashilkn 2023-06-10 12:35:21 +05:30
parent 6d757122f4
commit 72e358c77a

View file

@ -64,6 +64,10 @@ class _MapViewState extends State<MapView> {
minZoom: widget.minZoom,
maxZoom: widget.maxZoom,
enableMultiFingerGestureRace: true,
maxBounds: LatLngBounds(
LatLng(-90, -180),
LatLng(90, 180),
),
onPositionChanged: (position, hasGesture) {
if (position.bounds != null) {
if (!_isDebouncing) {