MapSnapshotOptions class
Set of options for taking map snapshot with map snapshotter
.
Constructors
- MapSnapshotOptions({required Size size, required double pixelRatio, GlyphsRasterizationOptions? glyphsRasterizationOptions, bool? showsLogo, bool? showsAttribution})
Properties
- glyphsRasterizationOptions ↔ GlyphsRasterizationOptions?
-
Glyphs rasterization options to use for client-side text rendering.
By default,
GlyphsRasterizationOptions
will useNoGlyphsRasterizedLocally
mode.getter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
- pixelRatio ↔ double
-
Ratio between the number device-independent and screen pixels.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showsAttribution ↔ bool?
-
Flag that determines if attribution should be shown on the snapshot.
getter/setter pair
- showsLogo ↔ bool?
-
Flag that determines if the logo should be shown on the snapshot.
getter/setter pair
- size ↔ Size
-
Dimensions of the snapshot in
logical pixels
.getter/setter pair
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) → MapSnapshotOptions