MapOperations class abstract

Interface of setting up map operations including:

  • Markers
  • Directions
  • Polygons
  • Camera position
  • Map Style
Implemented types
Implementers

Constructors

MapOperations()

Properties

center FutureOr<GeoCoord>
Gets center coordinates of the map.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addCircle(String id, GeoCoord center, double radius, {ValueChanged<String> onTap, Color strokeColor = const Color(0x000000), double strokeOpacity = 0.8, double strokeWidth = 1, Color fillColor = const Color(0x000000), double fillOpacity = 0.35}) → void
Adds a circle to the map by given id, center and radius.
inherited
addDirection(dynamic origin, dynamic destination, {String startLabel, String startIcon, String startInfo, String endLabel, String endIcon, String endInfo}) → void
Adds a direction to the map by given origin and destination coordinates.
inherited
addMarker(Marker marker) → void
Adds a marker to the map by given position.
inherited
addMarkerRaw(GeoCoord position, {String label, String icon, String info, String infoSnippet, ValueChanged<String> onTap, VoidCallback onInfoWindowTap}) → void
Adds a marker to the map by given position.
inherited
addPolygon(String id, Iterable<GeoCoord> points, {ValueChanged<String> onTap, Color strokeColor = const Color(0x000000), double strokeOpacity = 0.8, double strokeWidth = 1, Color fillColor = const Color(0x000000), double fillOpacity = 0.35}) → void
Adds a polygon to the map by given id and points.
inherited
changeMapStyle({bool waitUntilReady = true}) → void
clearCircles() → void
Removes all circles from the map.
inherited
clearDirections() → void
Removes all directions from the map.
inherited
clearMarkers() → void
Removes all markers from the map.
inherited
clearPolygons() → void
Removes all polygones from the map.
inherited
editCircle(String id, GeoCoord center, double radius, {ValueChanged<String> onTap, Color strokeColor = const Color(0x000000), double strokeOpacity = 0.8, double strokeWidth = 1, Color fillColor = const Color(0x000000), double fillOpacity = 0.35}) → void
Removes and then adds a circles to the map by given id, center and radius.
inherited
editPolygon(String id, Iterable<GeoCoord> points, {ValueChanged<String> onTap, Color strokeColor = const Color(0x000000), double strokeOpacity = 0.8, double strokeWeight = 1, Color fillColor = const Color(0x000000), double fillOpacity = 0.35}) → void
Removes and then adds a polygon to the map by given id and points.
inherited
moveCamera(GeoCoord latLng, {bool animated = true, bool waitUntilReady = true, required double zoom}) → void
Moves camera to the new coordinates.
moveCameraBounds(GeoCoordBounds newBounds, {double padding = 0, bool animated = true, bool waitUntilReady = true}) → void
Moves camera to the new bounds.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeCircle(String id) → void
Removes a circle from the map by given id.
inherited
removeDirection(dynamic origin, dynamic destination) → void
Removes a direction from the map by given origin and destination coordinates.
inherited
removeMarker(GeoCoord position) → void
Removes a marker from the map by given position.
inherited
removePolygon(String id) → void
Removes a polygon from the map by given id.
inherited
toString() String
A string representation of this object.
inherited
zoomCamera(double zoom, {bool animated = true, bool waitUntilReady = true}) → void
Sets new camera zoom.

Operators

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