@@ -16,6 +16,7 @@ class PlatformMap extends StatefulWidget {
1616 this .padding,
1717 this .rotateGesturesEnabled = true ,
1818 this .scrollGesturesEnabled = true ,
19+ this .zoomControlsEnabled = true ,
1920 this .zoomGesturesEnabled = true ,
2021 this .tiltGestureEnabled = true ,
2122 this .myLocationEnabled = false ,
@@ -58,6 +59,12 @@ class PlatformMap extends StatefulWidget {
5859 /// True if the map view should respond to scroll gestures.
5960 final bool scrollGesturesEnabled;
6061
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+
6168 /// True if the map view should respond to zoom gestures.
6269 final bool zoomGesturesEnabled;
6370
@@ -189,6 +196,7 @@ class _PlatformMapState extends State<PlatformMap> {
189196 onCameraMoveStarted: widget.onCameraMoveStarted,
190197 tiltGesturesEnabled: widget.tiltGestureEnabled,
191198 rotateGesturesEnabled: widget.rotateGesturesEnabled,
199+ zoomControlsEnabled: widget.zoomControlsEnabled,
192200 zoomGesturesEnabled: widget.zoomGesturesEnabled,
193201 scrollGesturesEnabled: widget.scrollGesturesEnabled,
194202 onMapCreated: _onMapCreated,
0 commit comments