public final class MultiPointOption extends OverlayOptions
构造器和说明 |
---|
MultiPointOption() |
限定符和类型 | 方法和说明 |
---|---|
float |
getAnchorX()
获取 MultiPoint 覆盖物水平方向锚点比例
|
float |
getAnchorY()
获取 MultiPoint 覆盖物垂直方向锚点比例
|
BitmapDescriptor |
getIcon()
获取 MultiPoint 覆盖物图标
|
java.util.List<MultiPointItem> |
getMultiPointItems()
获取 MultiPoint 覆盖物数据集合
|
int |
getPointSizeHeight()
获取 MultiPoint 覆盖物纹理点的高度
|
int |
getPointSizeWidth()
获取 MultiPoint 覆盖物纹理点的宽度
|
boolean |
isVisible()
获取MultiPoint 覆盖物可见性
|
MultiPointOption |
setAnchor(float anchorX,
float anchorY)
设置 MultiPoint 覆盖物的锚点比例,默认(0.5f, 0.5f)水平居中,垂直下对齐
|
MultiPointOption |
setClickable(boolean isClickable)
设置MultiPoint是否可点击
|
MultiPointOption |
setIcon(BitmapDescriptor icon)
设置 MultiPoint 覆盖物的图标 (必填)
|
MultiPointOption |
setMultiPointItems(java.util.List<MultiPointItem> multiPointItems)
添加海量点数据集合(必填)
|
MultiPointOption |
setPointSize(int pointSizeWidth,
int pointSizeHeight)
纹理渲染大小,默认为icon图片大小
|
MultiPointOption |
visible(boolean visible)
设置MultiPoint 覆盖物可见性,默认 true 显示
|
public MultiPointOption setMultiPointItems(java.util.List<MultiPointItem> multiPointItems)
multiPointItems
- 海量点数据集合public MultiPointOption setIcon(BitmapDescriptor icon)
icon
- 覆盖物的图标public MultiPointOption setPointSize(int pointSizeWidth, int pointSizeHeight)
pointSizeWidth
- 纹理渲染宽度,不能小于或者等于0pointSizeHeight
- 纹理渲染高度,不能小于或者等于0public MultiPointOption setAnchor(float anchorX, float anchorY)
anchorX
- [0.0f , 1.0f], 否则不生效anchorY
- [0.0f , 1.0f], 否则不生效public java.util.List<MultiPointItem> getMultiPointItems()
public BitmapDescriptor getIcon()
public float getAnchorX()
public float getAnchorY()
public int getPointSizeHeight()
public int getPointSizeWidth()
public MultiPointOption visible(boolean visible)
visible
- 覆盖物可见性public boolean isVisible()
public MultiPointOption setClickable(boolean isClickable)
isClickable
- MultiPoint是否可点击