MapOptions class

Describes the map option values.

Constructors

MapOptions({ContextMode? contextMode, ConstrainMode? constrainMode, ViewportMode? viewportMode, NorthOrientation? orientation, bool? crossSourceCollisions, Size? size, required double pixelRatio, GlyphsRasterizationOptions? glyphsRasterizationOptions})

Properties

constrainMode ConstrainMode?
The map constrain mode. This can be used to limit the map to wrap around the globe horizontally. By default, it is set to HeightOnly.
read / write
contextMode ContextMode?
The map context mode. This can be used to optimizations if we know that the drawing context is not shared with other code.
read / write
crossSourceCollisions bool?
Specify whether to enable cross-source symbol collision detection or not. By default, it is set to true.
read / write
glyphsRasterizationOptions GlyphsRasterizationOptions?
Glyphs rasterization options to use for client-side text rendering.
read / write
hashCode int
The hash code for this object.
read-onlyinherited
orientation NorthOrientation?
The orientation of the Map. By default, it is set to Upwards.
read / write
pixelRatio double
The custom pixel ratio. By default, it is set to 1.0
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
size Size?
The size to resize the map object and renderer backend. The size is given in logical pixel units. macOS and iOS platforms use device-independent pixel units, while other platforms, such as Android, use screen pixel units.
read / write
viewportMode ViewportMode?
The viewport mode. This can be used to flip the vertical orientation of the map as some devices may use inverted orientation.
read / write

Methods

encode() Object
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

decode(Object result) MapOptions