Atlas constructor
Atlas({
- Key? key,
- required CameraPosition initialCameraPosition,
- Set<
Marker> ? markers, - Set<
Callout> ? callouts, - Set<
Circle> ? circles, - Set<
Polygon> ? polygons, - Set<
Polyline> ? polylines, - Set<
Cluster> ? clusters, - TrackPlayback? trackPlayback,
- bool? showMyLocation,
- bool? showMyLocationButton,
- bool? followMyLocation,
- MapType? mapType,
- bool? showTraffic,
- MapLanguage? mapLanguage,
- ArgumentCallback<
LatLng> ? onTap, - ArgumentCallback<
Poi> ? onPoiTap, - ArgumentCallback<
LatLng> ? onLongPress, - ArgumentCallback<
AtlasController> ? onMapCreated, - ArgumentCallback<
CameraPosition> ? onCameraPositionChanged, - ArgumentCallback<
LatLng> ? onLocationChanged, - VoidCallback? onPan,
- DeviceLocation? deviceLocation,
- String? deviceLocationIconAsset,
- String? country,
- bool? setPoliticalViews,
- double? zoom,
- double? minZoom,
- double? maxZoom,
- ArgumentCallback<
Polyline> ? onPolylineTap,
Implementation
Atlas({
Key? key,
required this.initialCameraPosition,
Set<Marker>? markers,
Set<Callout>? callouts,
Set<Circle>? circles,
Set<Polygon>? polygons,
Set<Polyline>? polylines,
Set<Cluster>? clusters,
TrackPlayback? trackPlayback,
bool? showMyLocation,
bool? showMyLocationButton,
bool? followMyLocation,
MapType? mapType,
bool? showTraffic,
MapLanguage? mapLanguage,
this.onTap,
this.onPoiTap,
this.onLongPress,
this.onMapCreated,
this.onCameraPositionChanged,
this.onLocationChanged,
this.onPan,
this.deviceLocation,
this.deviceLocationIconAsset,
this.country,
this.setPoliticalViews,
this.zoom,
this.minZoom,
this.maxZoom,
this.onPolylineTap
}) : markers = markers ?? Set<Marker>(),
callouts = callouts ?? Set<Callout>(),
circles = circles ?? Set<Circle>(),
polygons = polygons ?? Set<Polygon>(),
polylines = polylines ?? Set<Polyline>(),
clusters = clusters ?? Set<Cluster>(),
trackPlayback = trackPlayback,
showMyLocation = showMyLocation ?? false,
showMyLocationButton = showMyLocationButton ?? false,
followMyLocation = followMyLocation ?? false,
mapType = mapType ?? MapType.normal,
showTraffic = showTraffic ?? false,
mapLanguage = mapLanguage ?? MapLanguage.enUs,
super(key: key);