public final class MultiPoint extends Overlay
listener, mcLocation, mDrawItem, type
构造器和说明 |
---|
MultiPoint() |
限定符和类型 | 方法和说明 |
---|---|
void |
anchor(float anchorX,
float anchorY)
设置 MultiPoint 覆盖物的锚点比例,默认(0.5f, 0.5f)水平居中,垂直下对齐
|
float |
getAnchorX()
获取 MultiPoint 覆盖物水平方向锚点比例
|
float |
getAnchorY()
获取 MultiPoint 覆盖物垂直方向锚点比例
|
BitmapDescriptor |
getIcon()
获取 MultiPoint 覆盖物图标
|
MultiPointItem |
getMultiPointItem(int index) |
java.util.List<MultiPointItem> |
getMultiPointItems()
获取 MultiPoint 覆盖物数据集合
|
int |
getPointSizeHeight()
获取纹理点的高度
|
int |
getPointSizeWidth()
获取纹理点的宽度
|
boolean |
isClickable()
获取是否可点击
|
void |
setClickable(boolean isClickable)
设置MultiPoint是否可点击
|
void |
setIcon(BitmapDescriptor icon)
设置 MultiPoint 覆盖物的图标 (必填)
|
void |
setMultiPointItems(java.util.List<MultiPointItem> multiPointItems)
添加海量点数据(必填)
|
void |
setPointSize(int pointSizeWidth,
int pointSizeHeight)
纹理渲染大小,默认为icon图片大小
|
BmDrawItem |
toDrawItem() |
circleHoleInfo2BmGeo, getBmLayer, getDrawItem, getExtraInfo, getName, getOverlayLatLngBounds, getZIndex, holeInfo2BmGeo, isRemoved, isVisible, polygonHoleInfo2BmGeo, remove, setBmLayer, setDottedBitmapResource, setDrawItem, setExtraInfo, setVisible, setZIndex
public void setMultiPointItems(java.util.List<MultiPointItem> multiPointItems)
multiPointItems
- 海量点数据集合public void setIcon(BitmapDescriptor icon)
icon
- MultiPoint 覆盖物的图标public void setPointSize(int pointSizeWidth, int pointSizeHeight)
pointSizeWidth
- 纹理渲染宽度,不能小于或者等于0pointSizeHeight
- 纹理渲染高度,不能小于或者等于0public void anchor(float anchorX, float anchorY)
anchorX
- [0.0f , 1.0f], 否则不生效anchorY
- [0.0f , 1.0f], 否则不生效public java.util.List<MultiPointItem> getMultiPointItems()
public MultiPointItem getMultiPointItem(int index)
public BitmapDescriptor getIcon()
public float getAnchorX()
public float getAnchorY()
public int getPointSizeHeight()
public void setClickable(boolean isClickable)
isClickable
- MultiPoint是否可点击public boolean isClickable()
public int getPointSizeWidth()
public BmDrawItem toDrawItem()