PlatformMap constructor
const
PlatformMap({
- Key? key,
- required CameraPosition initialCameraPosition,
- MapCreatedCallback? onMapCreated,
- Set<
Factory< gestureRecognizers = const <Factory<OneSequenceGestureRecognizer>>{},OneSequenceGestureRecognizer> > - bool compassEnabled = true,
- MapType mapType = MapType.normal,
- MinMaxZoomPreference minMaxZoomPreference = MinMaxZoomPreference.unbounded,
- bool rotateGesturesEnabled = true,
- bool scrollGesturesEnabled = true,
- bool zoomControlsEnabled = true,
- bool zoomGesturesEnabled = true,
- bool tiltGesturesEnabled = true,
- bool myLocationEnabled = false,
- bool myLocationButtonEnabled = false,
- EdgeInsets padding = const EdgeInsets.all(0),
- bool trafficEnabled = false,
- Set<
Marker> markers = const <Marker>{}, - Set<
Polygon> polygons = const <Polygon>{}, - Set<
Polyline> polylines = const <Polyline>{}, - Set<
Circle> circles = const <Circle>{}, - VoidCallback? onCameraMoveStarted,
- CameraPositionCallback? onCameraMove,
- VoidCallback? onCameraIdle,
- ArgumentCallback<
LatLng> ? onTap, - ArgumentCallback<
LatLng> ? onLongPress,
Implementation
const PlatformMap({
Key? key,
required this.initialCameraPosition,
this.onMapCreated,
this.gestureRecognizers = const <Factory<OneSequenceGestureRecognizer>>{},
this.compassEnabled = true,
this.mapType = MapType.normal,
this.minMaxZoomPreference = MinMaxZoomPreference.unbounded,
this.rotateGesturesEnabled = true,
this.scrollGesturesEnabled = true,
this.zoomControlsEnabled = true,
this.zoomGesturesEnabled = true,
this.tiltGesturesEnabled = true,
this.myLocationEnabled = false,
this.myLocationButtonEnabled = false,
this.padding = const EdgeInsets.all(0),
this.trafficEnabled = false,
this.markers = const <Marker>{},
this.polygons = const <Polygon>{},
this.polylines = const <Polyline>{},
this.circles = const <Circle>{},
this.onCameraMoveStarted,
this.onCameraMove,
this.onCameraIdle,
this.onTap,
this.onLongPress,
}) : super(key: key);