@@ -16,6 +16,7 @@ class PlatformMap extends StatefulWidget {
16
16
this .padding,
17
17
this .rotateGesturesEnabled = true ,
18
18
this .scrollGesturesEnabled = true ,
19
+ this .zoomControlsEnabled = true ,
19
20
this .zoomGesturesEnabled = true ,
20
21
this .tiltGestureEnabled = true ,
21
22
this .myLocationEnabled = false ,
@@ -58,6 +59,12 @@ class PlatformMap extends StatefulWidget {
58
59
/// True if the map view should respond to scroll gestures.
59
60
final bool scrollGesturesEnabled;
60
61
62
+ /// True if the map view should show zoom controls. This includes two buttons
63
+ /// to zoom in and zoom out. The default value is to show zoom controls.
64
+ ///
65
+ /// This is only supported on Android. And this field is silently ignored on iOS.
66
+ final bool zoomControlsEnabled;
67
+
61
68
/// True if the map view should respond to zoom gestures.
62
69
final bool zoomGesturesEnabled;
63
70
@@ -189,6 +196,7 @@ class _PlatformMapState extends State<PlatformMap> {
189
196
onCameraMoveStarted: widget.onCameraMoveStarted,
190
197
tiltGesturesEnabled: widget.tiltGestureEnabled,
191
198
rotateGesturesEnabled: widget.rotateGesturesEnabled,
199
+ zoomControlsEnabled: widget.zoomControlsEnabled,
192
200
zoomGesturesEnabled: widget.zoomGesturesEnabled,
193
201
scrollGesturesEnabled: widget.scrollGesturesEnabled,
194
202
onMapCreated: _onMapCreated,
0 commit comments