MapImage class abstract

Represents a drawable resource that can be used by a MapMarker, MapMarker3D or MapImageOverlay to be shown on the map.

Supported formats are listed in ImageFormat. SVG format allows custom fonts in text using font-family attribute by prior registration via AssetsManager.registerFont.

It is recommended to associate a resource with a single MapImage instance in order to enable resource sharing and reduce the amount of needed memory.

Constructors

MapImage.withFilePathAndWidthAndHeight(String filePath, int width, int height)
Creates a new map image from the provided path to the SVG Tiny or PNG image.
factory
MapImage.withImageDataImageFormatWidthAndHeight(Uint8List imageData, ImageFormat imageFormat, int width, int height)
Creates a new map image from the provided image data.
factory
MapImage.withPixelDataAndImageFormat(Uint8List pixelData, ImageFormat imageFormat)
Creates a new map image from the provided image data.
factory

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

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