BitmapDescriptor class

Defines a bitmap image. For a marker, this class can be used to set the image of the marker icon. For a ground overlay, it can be used to set the image to place on the surface of the earth.

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() → dynamic
Convert the object to a Json format.
toString() String
Returns a string representation of this object.
inherited

Operators

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

Static Methods

defaultMarkerWithHue(double hue) BitmapDescriptor
Creates a BitmapDescriptor that refers to a colorization of the default marker image. For convenience, there is a predefined set of hue values. See e.g. hueYellow.
fromAsset(String assetName, {String package}) BitmapDescriptor
Creates a BitmapDescriptor using the name of a bitmap image in the assets directory. [...]
@Deprecated("Use fromAssetImage instead")
fromAssetImage(ImageConfiguration configuration, String assetName, {AssetBundle bundle, String package, bool mipmaps: true}) Future<BitmapDescriptor>
Creates a BitmapDescriptor from an asset image. [...]
fromBytes(Uint8List byteData) BitmapDescriptor
Creates a BitmapDescriptor using an array of bytes that must be encoded as PNG.

Constants

defaultMarker → const BitmapDescriptor
Creates a BitmapDescriptor that refers to the default marker image.
const BitmapDescriptor._(const <dynamic>['defaultMarker'])
hueAzure → const double
Convenience hue value representing azure.
210.0
hueBlue → const double
Convenience hue value representing blue.
240.0
hueCyan → const double
Convenience hue value representing cyan.
180.0
hueGreen → const double
Convenience hue value representing green.
120.0
hueMagenta → const double
Convenience hue value representing magenta.
300.0
hueOrange → const double
Convenience hue value representing orange.
30.0
hueRed → const double
Convenience hue value representing red.
0.0
hueRose → const double
Convenience hue value representing rose.
330.0
hueViolet → const double
Convenience hue value representing violet.
270.0
hueYellow → const double
Convenience hue value representing yellow.
60.0