MapConfiguration constructor

const MapConfiguration({
  1. WebCameraControlPosition? webCameraControlPosition,
  2. bool? webCameraControlEnabled,
  3. WebGestureHandling? webGestureHandling,
  4. bool? compassEnabled,
  5. bool? mapToolbarEnabled,
  6. CameraTargetBounds? cameraTargetBounds,
  7. MapType? mapType,
  8. MinMaxZoomPreference? minMaxZoomPreference,
  9. bool? rotateGesturesEnabled,
  10. bool? scrollGesturesEnabled,
  11. bool? tiltGesturesEnabled,
  12. bool? fortyFiveDegreeImageryEnabled,
  13. bool? trackCameraPosition,
  14. bool? zoomControlsEnabled,
  15. bool? zoomGesturesEnabled,
  16. bool? liteModeEnabled,
  17. bool? myLocationEnabled,
  18. bool? myLocationButtonEnabled,
  19. EdgeInsets? padding,
  20. bool? indoorViewEnabled,
  21. bool? trafficEnabled,
  22. bool? buildingsEnabled,
  23. String? mapId,
  24. @Deprecated('cloudMapId is deprecated. Use mapId instead.') String? cloudMapId,
  25. String? style,
  26. MarkerType? markerType,
})

Creates a new configuration instance with the given options.

Any options that aren't passed will be null, which allows this to serve as either a full configuration selection, or an update to an existing configuration where only non-null values are updated.

Implementation

const MapConfiguration({
  this.webCameraControlPosition,
  this.webCameraControlEnabled,
  this.webGestureHandling,
  this.compassEnabled,
  this.mapToolbarEnabled,
  this.cameraTargetBounds,
  this.mapType,
  this.minMaxZoomPreference,
  this.rotateGesturesEnabled,
  this.scrollGesturesEnabled,
  this.tiltGesturesEnabled,
  this.fortyFiveDegreeImageryEnabled,
  this.trackCameraPosition,
  this.zoomControlsEnabled,
  this.zoomGesturesEnabled,
  this.liteModeEnabled,
  this.myLocationEnabled,
  this.myLocationButtonEnabled,
  this.padding,
  this.indoorViewEnabled,
  this.trafficEnabled,
  this.buildingsEnabled,
  String? mapId,
  @Deprecated('cloudMapId is deprecated. Use mapId instead.')
  String? cloudMapId,
  this.style,
  this.markerType,
}) : mapId = mapId ?? cloudMapId;