public class PointsOverlay extends Overlay
Overlay.Layer, Overlay.StrokeStyle| 构造器和说明 |
|---|
PointsOverlay(int textSizeLevel,
boolean checkCollision,
int textColor,
int textOutlineColor)
创建多个点的图层
|
PointsOverlay(int textSizeLevel,
boolean checkCollision,
int textColor,
int textOutlineColor,
float minShowZoomLevel,
float maxShowZoomLevel)
创建多个点的图层
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
clearPoints()
清除图层上所有的点
|
void |
setPoint(android.graphics.Point point,
int iconId,
java.lang.String text)
添加一个点
|
void |
setPoints(android.graphics.Point[] points,
java.lang.String[] texts,
int[] iconId)
在地图上同时添加多个点,注意points,texts,iconId三个数组长度应该保持一致
|
getBoundingBox, getBoundingBoxNds, getColor, getIndex, getLayer, getZLevel, hitTest, hitTestNds, relese, setColor, setLayer, setSelected, setZLevelgetCalloutStyle, getPosition, getPositionNds, getSubtitle, getTag, getTitle, isClickable, isHidden, isSelected, setCalloutStyle, setClickable, setHidden, setPosition, setPositionNds, setSubtitle, setTag, setTitle, showCalloutpublic PointsOverlay(int textSizeLevel,
boolean checkCollision,
int textColor,
int textOutlineColor)
textSizeLevel - 文字相对大小,一般为MapRenderer.TextSizeLevel#mediumcheckCollision - 是否进行碰撞检测,如果开启且检测到碰撞的话,低优先级的会不显示textColor - 文字颜色textOutlineColor - 文字边框颜色public PointsOverlay(int textSizeLevel,
boolean checkCollision,
int textColor,
int textOutlineColor,
float minShowZoomLevel,
float maxShowZoomLevel)
textSizeLevel - 文字相对大小,一般为MapRenderer.TextSizeLevel#mediumcheckCollision - 是否进行碰撞检测,如果开启且检测到碰撞的话,低优先级的会不显示textColor - 文字颜色textOutlineColor - 文字边框颜色minShowZoomLevel - 最小显示zoomLevel,当地图zoomLevel小于此值时图层不显示,默认值:
Short.MIN_VALUEmaxShowZoomLevel - 最大显示zoomLevel,当地图zoomLevel大于此值时图层不显示,默认值:
Short.MAX_VALUEpublic void setPoint(android.graphics.Point point,
int iconId,
java.lang.String text)
point - 位置iconId - 图标ID,可以是资源包中的文件或者根据
MapRenderer.registerCustomIcon(android.graphics.Bitmap)
和MapRenderer.registerCustomIcon(String)得到的IDtext - 文字内容public void setPoints(android.graphics.Point[] points,
java.lang.String[] texts,
int[] iconId)
points - 位置texts - 文本内容iconId - 图标ID,可以是资源包中的文件或者根据
MapRenderer.registerCustomIcon(android.graphics.Bitmap)
和MapRenderer.registerCustomIcon(String)得到的IDpublic void clearPoints()
©Mapbar Engine Team;All Rights Reserved