Prevent grey areas when panning or zooming out map
This commit is contained in:
parent
6d757122f4
commit
72e358c77a
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue