public interface GroundOverlay
| 限定符和类型 | 方法和说明 |
|---|---|
void |
remove()
移除
|
void |
setAlpha(float alpha)
设置透明度
|
void |
setAnchor(float anchorU,
float anchorV)
设置锚点, 只有 `position(LatLng)` 设置后才会生效
|
void |
setBitmap(BitmapDescriptor bitmapDescriptor)
设置展示的图片
|
void |
setLatLongBounds(LatLngBounds latLongBounds)
设置图片的矩形展示区域,不应与
GroundOverlayOptions.position(LatLng) 或 setPosition(LatLng) 混用 |
void |
setLevel(int level)
设置Marker的显示Level,level用于控制Marker与楼块,道路,POI的显示层级关系。
|
void |
setPosition(LatLng position)
|
void |
setVisibility(boolean visible)
设置是否可见
|
void |
setZindex(int zIndex)
设置层级
|
void |
setZoom(float zoom)
设置图片不缩放展示的地图级别,只有
GroundOverlayOptions.position(LatLng)}
或 setPosition(LatLng) 设置后才能修改 |
void setBitmap(BitmapDescriptor bitmapDescriptor)
bitmapDescriptor - 见 BitmapDescriptorFactoryvoid setLatLongBounds(LatLngBounds latLongBounds)
GroundOverlayOptions.position(LatLng) 或 setPosition(LatLng) 混用latLongBounds - void setPosition(LatLng position)
position - void setZoom(float zoom)
GroundOverlayOptions.position(LatLng)}
或 setPosition(LatLng) 设置后才能修改zoom - void setAnchor(float anchorU,
float anchorV)
anchorU - 取值为[0.0 ~ 1.0] 表示锚点从最左边到最右边的百分比anchorV - 取值为[0.0 ~ 1.0] 表示锚点从最上边到最下边的百分比void setAlpha(float alpha)
alpha - 取值范围:[0, 1]void setVisibility(boolean visible)
visible - true 可见;false 不可见void setZindex(int zIndex)
zIndex - 越大,展示的优先级越高void setLevel(int level)
OverlayLevel.OverlayLevelAboveLabelsPOI之上
相同Level内的显示层级关系通过setZindex(int)来控制,zIndex越大越靠上显示。
Level优先级高于zIndexvoid remove()