MapImageIcon class

a class represent an icon useing image file.

Constructors

MapImageIcon.fromUrl({required String url, Point? anchor, Point? labelOrigin, Point? origin, Size? size, Size? scaledSize})
icon from the internet load the image from the given url

Properties

anchor Point?
The position at which to anchor an image in correspondence to the location of the marker on the map. By default, the anchor is located along the center point of the bottom of the image.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
labelOrigin Point?
The origin of the label relative to the top-left corner of the icon image, if a label is supplied by the marker. By default, the origin is located in the center point of the image.
finalinherited
origin Point?
The position of the image within a sprite, if any. By default, the origin is located at the top left corner of the image (0, 0).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scaledSize Size?
The size of the entire image after scaling, if any. Use this property to stretch/shrink an image or a sprite.
final
size Size?
The display size of the sprite or image. When using sprites, you must specify the sprite size. If the size is not provided, it will be set when the image loads.
final

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

Static Methods

iconFromAssets({required String path, Point? anchor, Point? labelOrigin, Point? origin, Size? size, Size? scaledSize}) Future<MapImageIcon>
return an icon from the assets.