google_maps_flutter_platform_interface library

Classes

ArgumentCallbacks<T>
Mutable collection of ArgumentCallback instances, itself an ArgumentCallback.
BitmapDescriptor
Defines a bitmap image. For a marker, this class can be used to set the image of the marker icon. For a ground overlay, it can be used to set the image to place on the surface of the earth.
CameraIdleEvent
An event fired when the Camera of a mapId becomes idle.
CameraMoveEvent
An event fired while the Camera of a mapId moves.
CameraMoveStartedEvent
An event fired when the Camera of a mapId starts moving.
CameraPosition
The position of the map "camera", the view point from which the world is shown in the map view.
CameraTargetBounds
Bounds for the map camera target.
CameraUpdate
Defines a camera move, supporting absolute moves as well as moves relative the current position.
Cap
Cap that can be applied at the start or end vertex of a Polyline.
Circle
Draws a circle on the map.
CircleId
Uniquely identifies a Circle among GoogleMap circles.
CircleTapEvent
An event fired when a Circle is tapped.
CircleUpdates
Circle update events to be applied to the GoogleMap.
Cluster
A cluster containing multiple markers.
ClusterManager
ClusterManager manages marker clustering for set of Markers that have the same ClusterManagerId set.
ClusterManagerId
Uniquely identifies a ClusterManager among GoogleMap clusters.
ClusterManagerUpdates
ClusterManager update events to be applied to the GoogleMap.
ClusterTapEvent
An event fired when a cluster icon managed by ClusterManager is tapped.
GoogleMapsFlutterPlatform
The interface that platform-specific implementations of google_maps_flutter must extend.
GoogleMapsInspectorPlatform
The interface that platform-specific implementations of google_maps_flutter can extend to support state inpsection in tests.
InfoWindow
Text labels for a Marker info window.
InfoWindowTapEvent
An event fired when an InfoWindow is tapped.
LatLng
A pair of latitude and longitude coordinates, stored as degrees.
LatLngBounds
A latitude/longitude aligned rectangle.
MapConfiguration
Configuration options for the GoogleMaps user interface.
MapEvent<T>
Generic Event coming from the native side of Maps.
MapLongPressEvent
An event fired when a Map is long pressed.
MapObjects
A container object for all the types of maps objects.
MapsObject<T>
A common interface for maps types.
MapsObjectId<T>
Uniquely identifies object an among GoogleMap collections of a specific type.
MapsObjectUpdates<T extends MapsObject<T>>
Update specification for a set of objects.
MapTapEvent
An event fired when a Map is tapped.
MapWidgetConfiguration
A container object for configuration options when building a widget.
Marker
Marks a geographical location on the map.
MarkerDragEndEvent
An event fired when a Marker is dragged to a new LatLng.
MarkerDragEvent
An event fired when a Marker is being dragged to a new LatLng.
MarkerDragStartEvent
An event fired when a Marker is starting to be dragged to a new LatLng.
MarkerId
Uniquely identifies a Marker among GoogleMap markers.
MarkerTapEvent
An event fired when a Marker is tapped.
MarkerUpdates
Marker update events to be applied to the GoogleMap.
MethodChannelGoogleMapsFlutter
An implementation of GoogleMapsFlutterPlatform that uses MethodChannel to communicate with the native code.
MinMaxZoomPreference
Preferred bounds for map camera zoom level.
PatternItem
Item used in the stroke pattern for a Polyline.
Polygon
Draws a polygon through geographical locations on the map.
PolygonId
Uniquely identifies a Polygon among GoogleMap polygons.
PolygonTapEvent
An event fired when a Polygon is tapped.
PolygonUpdates
Polygon update events to be applied to the GoogleMap.
Polyline
Draws a line through geographical locations on the map.
PolylineId
Uniquely identifies a Polyline among GoogleMap polylines.
PolylineTapEvent
An event fired when a Polyline is tapped.
PolylineUpdates
Polyline update events to be applied to the GoogleMap.
ScreenCoordinate
Represents a point coordinate in the GoogleMap's view.
Tile
Contains information about a Tile that is returned by a TileProvider.
TileOverlay
A set of images which are displayed on top of the base map tiles.
TileOverlayId
Uniquely identifies a TileOverlay among GoogleMap tile overlays.
TileProvider
An interface for a class that provides the tile images for a TileOverlay.

Enums

JointType
Joint types for Polyline.
MapType
Type of map tiles to display.
WebGestureHandling
This setting controls how the API handles gestures on the map

Functions

keyByCircleId(Iterable<Circle> circles) Map<CircleId, Circle>
Converts an Iterable of Circles in a Map of CircleId -> Circle.
keyByClusterManagerId(Iterable<ClusterManager> clusterManagers) Map<ClusterManagerId, ClusterManager>
Converts an Iterable of Cluster Managers in a Map of ClusterManagerId -> Cluster.
keyByMarkerId(Iterable<Marker> markers) Map<MarkerId, Marker>
Converts an Iterable of Markers in a Map of MarkerId -> Marker.
keyByPolygonId(Iterable<Polygon> polygons) Map<PolygonId, Polygon>
Converts an Iterable of Polygons in a Map of PolygonId -> Polygon.
keyByPolylineId(Iterable<Polyline> polylines) Map<PolylineId, Polyline>
Converts an Iterable of Polylines in a Map of PolylineId -> Polyline.
keyTileOverlayId(Iterable<TileOverlay> tileOverlays) Map<TileOverlayId, TileOverlay>
Converts an Iterable of TileOverlay in a Map of TileOverlayId -> TileOverlay.
serializeCircleSet(Set<Circle> circles) Object
Converts a Set of Circles into something serializable in JSON.
serializeMarkerSet(Set<Marker> markers) Object
Converts a Set of Markers into something serializable in JSON.
serializePolygonSet(Set<Polygon> polygons) Object
Converts a Set of Polygons into something serializable in JSON.
serializePolylineSet(Set<Polyline> polylines) Object
Converts a Set of Polylines into something serializable in JSON.
serializeTileOverlaySet(Set<TileOverlay> tileOverlays) Object
Converts a Set of TileOverlays into something serializable in JSON.

Typedefs

ArgumentCallback<T> = void Function(T argument)
Callback function taking a single argument.
CameraPositionCallback = void Function(CameraPosition position)
Callback that receives updates to the camera position.

Exceptions / Errors

MapStyleException
Exception when a map style is invalid or was unable to be set.