GoogleMapViewController class Map View

Map View Controller class to handle map view events.

Implementers

Constructors

GoogleMapViewController(int _viewId)
Basic constructor.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
settings NavigationViewUISettings
Settings for the user interface of the map.
final

Methods

addCircles(List<CircleOptions> options) Future<List<Circle?>>
Add circles to the map view.
addMarkers(List<MarkerOptions> markerOptions) Future<List<Marker?>>
Add markers to the map view.
addPolygons(List<PolygonOptions> polygonOptions) Future<List<Polygon?>>
Add polygons to the map view.
addPolylines(List<PolylineOptions> polylineOptions) Future<List<Polyline?>>
Add polylines to the map view.
animateCamera(CameraUpdate cameraUpdate, {Duration? duration, AnimationFinishedCallback? onFinished}) Future<void>
Animates the movement of the camera from the current position to the position defined in the cameraUpdate.
clear() Future<void>
Remove all markers, polylines, polygons, overlays, etc from the map view.
clearCircles() Future<void>
Remove all circles from the map view.
clearMarkers() Future<void>
Remove all markers from the map view.
clearPolygons() Future<void>
Remove all polygons from the map view.
clearPolylines() Future<void>
Remove all polylines from the map view.
followMyLocation(CameraPerspective perspective, {double? zoomLevel}) Future<void>
Ask the camera to follow the user's location.
getCameraPosition() Future<CameraPosition>
Gets the current position of the camera.
getCircles() Future<List<Circle?>>
Gets all circles from the map view.
getMapColorScheme() Future<MapColorScheme>
Gets the current map color scheme from the map view.
getMapType() Future<MapType>
This method returns the current map type of the Google Maps view instance.
getMarkers() Future<List<Marker?>>
Retrieves all markers that have been added to the map view.
getMaxZoomPreference() Future<double>
Returns the maximum zoom level preference from the map view. If maximum zoom preference is not set previously, returns maximum possible zoom level for the current map type.
getMinZoomPreference() Future<double>
Returns the minimum zoom level preference from the map view. If minimum zoom preference is not set previously, returns minimum possible zoom level for the current map type.
getMyLocation() Future<LatLng?>
Gets user's current location.
getPadding() Future<EdgeInsets>
getPolygons() Future<List<Polygon?>>
Retrieves all polygons that have been added to the map view.
getPolylines() Future<List<Polyline?>>
Retrieves all polylines that have been added to the map view.
getViewId() int
Getter for view ID.
getVisibleRegion() Future<LatLngBounds>
Gets the current visible map region or camera bounds.
isBuildingsEnabled() Future<bool>
Checks if the 3D buildings layer is enabled.
isMyLocationEnabled() Future<bool>
Gets whether the my location is enabled or disabled.
isRecenterButtonEnabled() Future<bool>
Checks if the recenter button is enabled.
moveCamera(CameraUpdate cameraUpdate) Future<void>
Moves the camera from the current position to the position defined in the cameraUpdate.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeCircles(List<Circle> circles) Future<void>
Remove circles from the map view.
removeMarkers(List<Marker> markers) Future<void>
Remove markers from the map view.
removePolygons(List<Polygon> polygons) Future<void>
Remove polygons from the map view.
removePolylines(List<Polyline> polylines) Future<void>
Remove polylines from the map view.
resetMinMaxZoomPreference() Future<void>
Removes any previously specified upper and lower zoom bounds.
setBuildingsEnabled(bool enabled) Future<void>
Enable or disable the 3D buildings layer.
setMapColorScheme(MapColorScheme mapColorScheme) Future<void>
Sets the map color scheme for the map view.
setMapStyle(String? styleJson) Future<void>
Sets the styling of the base map using a string containing JSON. Null value will reset the base map to default style. If styleJson is invalid throws MapStyleException.
setMapType({required MapType mapType}) Future<void>
Changes the type of the map being displayed on the Google Maps view.
setMaxZoomPreference(double maxZoomPreference) Future<void>
Sets a preferred upper bound for the camera zoom.
setMinZoomPreference(double minZoomPreference) Future<void>
Sets a preferred lower bound for the camera zoom.
setMyLocationEnabled(bool enabled) Future<void>
Change status of my location enabled.
setPadding(EdgeInsets padding) Future<void>
Set padding for the map view.
setRecenterButtonEnabled(bool enabled) Future<void>
Enable or disable the recenter button.
toString() String
A string representation of this object.
inherited
updateCircles(List<Circle> circles) Future<List<Circle?>>
Update circles to the map view.
updateMarkers(List<Marker> markers) Future<List<Marker?>>
Update markers to the map view.
updatePolygons(List<Polygon> polygons) Future<List<Polygon?>>
Update polygons to the map view.
updatePolylines(List<Polyline> polylines) Future<List<Polyline?>>
Update polylines to the map view.

Operators

operator ==(Object other) bool
The equality operator.
inherited