Defines a bitmap image. A bitmap image can be used as a Marker icon or for a GroundOverlay.
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 | Description |
|---|---|
Creates BitmapDescriptor objects for default marker icons in different colors using different hue values. | |
Creates a BitmapDescriptor object from a Uint8List object. | |
BitmapDescriptor.fromAsset(String assetName, {String? package}) | Creates a BitmapDescriptor object from an asset. |
Creates a BitmapDescriptor object from an image asset. |
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. |
Creates a BitmapDescriptor object from a Uint8List object.
Parameter | Type | Definition |
|---|---|---|
byteData | Uint8List | Byte data of an image in the internal storage. |
Creates a BitmapDescriptor object from an asset.
Parameter | Type | Definition |
|---|---|---|
assetName | String | Asset path in assets, including the image name. |
package | String | Package name. |
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. |