MapSnapshotter class

MapSnapshotter exposes functionality to capture static map images.

Constructors

MapSnapshotter({BinaryMessenger? binaryMessenger})
Constructor for MapSnapshotter. The binaryMessenger named argument is available for dependency injection. If it is left null, the default BinaryMessenger will be used which routes to the host platform.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

cancel() Future<void>
Cancel the current snapshot operation.
getElevation(Map<String?, Object?> arg_coordinate) Future<double?>
Get elevation for the given coordinate. Note: Elevation is only available for the visible region on the screen.
getSize() Future<Size>
Gets the size of the snapshot
isInTileMode() Future<bool>
Returns true if the snapshotter is in the tile mode.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setSize(Size arg_size) Future<void>
Sets the size of the snapshot
setTileMode(bool arg_set) Future<void>
Sets the snapshotter to the tile mode.
toString() String
A string representation of this object.
inherited

Operators

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

Constants

codec → const MessageCodec<Object?>