目录

BitmapDescriptor

Defines a bitmap image. A bitmap image can be used as a Marker icon or for a GroundOverlay.

Constants

Constant

Type

Description

hueRed

double

Red.

hueOrange

double

Orange.

hueYellow

double

Yellow.

hueGreen

double

Green.

hueCyan

double

Cyan.

hueAzure

double

Azure.

hueBlue

double

Blue.

hueViolet

double

Violet.

hueMagenta

double

Magenta.

hueRose

double

Rose.

defaultMarker

BitmapDescriptor

Default marker.

Constructor Summary

Constructor

Description

BitmapDescriptor.defaultMarkerWithHue(double hue)

Creates BitmapDescriptor objects for default marker icons in different colors using different hue values.

BitmapDescriptor.fromBytes(Uint8List byteData)

Creates a BitmapDescriptor object from a Uint8List object.

BitmapDescriptor.fromAsset(String assetName, {String? package})

Creates a BitmapDescriptor object from an asset.

BitmapDescriptor.fromAssetImage(ImageConfiguration configuration, String assetName, {AssetBundle? bundle, String? package, bool mipmaps})

Creates a BitmapDescriptor object from an image asset.

Constructors

[h2]BitmapDescriptor.defaultMarkerWithHue

Creates BitmapDescriptor objects for default marker icons in different colors using different hue values. This class provides 10 hue values. You can call this constructor by passing a hue value.

Parameter

Type

Definition

hue

double

Hue value.

[h2]BitmapDescriptor.fromBytes

Creates a BitmapDescriptor object from a Uint8List object.

Parameter

Type

Definition

byteData

Uint8List

Byte data of an image in the internal storage.

[h2]BitmapDescriptor.fromAsset

Creates a BitmapDescriptor object from an asset.

Parameter

Type

Definition

assetName

String

Asset path in assets, including the image name.

package

String

Package name.

[h2]BitmapDescriptor.fromAssetImage

Creates a BitmapDescriptor object from an image asset.

Parameter

Type

Definition

configuration

ImageConfiguration

Image configuration.

assetName

String

Image path in assets, including the image name.

bundle

AssetBundle

AssetBundle object.

package

String

Package name.

mipmaps

bool

Mipmaps.