MapOptions class

Allows you to provide your map's starting properties for zoom, rotation and center. Zoom, pan boundary and interactivity constraints can be specified here too.

Callbacks for onTap, onLongPress and onPositionChanged can be registered here.

Through crs the Coordinate Reference System can be defined, it defaults to Epsg3857.

Checks if a coordinate is outside of the map's defined boundaries.

Constructors

MapOptions({Crs crs = const Epsg3857(), LatLng center, double zoom = 13.0, double rotation = 0.0, double minZoom, double maxZoom, bool debug = false, bool interactive = true, TapCallback onTap, LongPressCallback onLongPress, PositionCallback onPositionChanged, List<MapPlugin> plugins = const [], LatLng swPanBoundary, LatLng nePanBoundary})

Properties

center LatLng
read / write
crs Crs
final
debug bool
final
hashCode int
The hash code for this object. [...]
read-only, inherited
interactive bool
final
maxZoom double
final
minZoom double
final
nePanBoundary LatLng
read / write
onLongPress LongPressCallback
final
onPositionChanged PositionCallback
final
onTap TapCallback
final
plugins List<MapPlugin>
final
rotation double
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
swPanBoundary LatLng
read / write
zoom double
final

Methods

isOutOfBounds(LatLng center) bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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