MapOptions class final
Options for RuntimeHandle.createMap().
See mln_map_options in the
C API reference.
Constructors
- MapOptions({required LogicalExtent initialExtent, MapMode mapMode = const MapMode.fromRawValue(0), bool fastPforEnabled = false, RuntimeEventFlag? eventMask, bool? tileCacheEnabled})
-
const
Properties
- eventMask → RuntimeEventFlag?
-
The events that the map reports. Without it, the map reports them all.
final
- fastPforEnabled → bool
-
Whether the map decodes MapLibre Tiles (MLT) that use FastPFOR integer
encoding. Without it, such tiles fail to load.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- initialExtent → LogicalExtent
-
The map's first size, and its scale factor. The scale factor stays fixed
for the map's life, and every render session of the map renders at it.
final
- mapMode → MapMode
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tileCacheEnabled → bool?
-
Whether the map keeps tiles in memory after they leave the view, so they
show again without loading. Without it, the map keeps them.
final
Methods
-
copyWith(
{LogicalExtent? initialExtent, MapMode? mapMode, bool? fastPforEnabled, RuntimeEventFlag? eventMask, bool? tileCacheEnabled}) → MapOptions - A copy of this value with the given members replaced.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited