目录

BitmapDescriptor

定义Bitmap图片。Bitmap图片可用作Marker或用于GroundOverlay。

Constants

常量

类型

描述

hueRed

double

红色。

hueOrange

double

橙色。

hueYellow

double

黄色。

hueGreen

double

绿色。

hueCyan

double

青色。

hueAzure

double

天蓝色。

hueBlue

double

蓝色。

hueViolet

double

紫色。

hueMagenta

double

紫红色。

hueRose

double

玫瑰色。

defaultMarker

BitmapDescriptor

默认标记。

Constructor Summary

构造函数

描述

BitmapDescriptor.defaultMarkerWithHue(double hue)

为不同颜色不同色调的默认标记图标创建BitmapDescriptor对象。

BitmapDescriptor.fromBytes(Uint8List byteData)

基于Uint8List创建BitmapDescriptor对象。

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

基于素材创建BitmapDescriptor对象。

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

基于图片素材创建BitmapDescriptor对象。

Constructors

[h2]BitmapDescriptor.defaultMarkerWithHue

为不同颜色不同色调的默认标记图标创建BitmapDescriptor对象。该类提供10个色调值。您可以传入色调值来调用此构造函数。

参数

类型

定义

hue

double

色调值。

[h2]BitmapDescriptor.fromBytes

基于Uint8List创建BitmapDescriptor对象。

参数

类型

定义

byteData

Uint8List

内部存储中图像的字节数据。

[h2]BitmapDescriptor.fromAsset

基于素材创建BitmapDescriptor对象。

参数

类型

定义

assetName

String

素材在assets中的路径,包含图像名称。

package

String

包名称。

[h2]BitmapDescriptor.fromAssetImage

基于图片素材创建BitmapDescriptor对象。

参数

类型

定义

configuration

ImageConfiguration

图像配置。

assetName

String

图像在assets中的路径,包含图像名称。

bundle

AssetBundle

AssetBundle对象。

package

String

包名称。

mipmaps

bool

Mipmap图。