public class Overlay
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected CoreContentLayer |
contentLayer |
protected java.lang.String |
id |
protected boolean |
isVisible |
protected MapContext |
mapContext |
protected MapView |
mapView |
protected static float |
SHADOW_X_SKEW
在透视图里创建标记点阴影的X偏移量。
|
protected static float |
SHADOW_Y_SCALE
在透视图里创建标记点阴影的Y刻度值。
|
protected float |
zIndex |
Constructor and Description |
---|
Overlay() |
Modifier and Type | Method and Description |
---|---|
boolean |
checkInBounds() |
void |
destroy() |
void |
draw(android.graphics.Canvas canvas) |
protected void |
draw(android.graphics.Canvas canvas,
MapView mapView) |
boolean |
equalsRemote(IOverlayDelegate paramDelegate) |
java.lang.String |
getId() |
float |
getZIndex() |
int |
hashCodeRemote() |
void |
init(MapView mapView) |
boolean |
isVisible() |
void |
onEmptyTap(GeoPoint pt) |
boolean |
onLongPress(GeoPoint p,
android.view.MotionEvent event,
MapView mapView)
处理一个长按覆盖物事件。
|
void |
onRemoveOverlay()
当Overlay被成功移除时回调
|
boolean |
onTap(GeoPoint p,
MapView mapView)
处理一个点击事件。
|
boolean |
onTouchEvent(android.view.MotionEvent event,
MapView mapView)
处理一个触摸事件。
|
void |
remove() |
void |
setVisible(boolean paramBoolean) |
void |
setZIndex(float paramFloat) |
protected static final float SHADOW_X_SKEW
protected static final float SHADOW_Y_SCALE
protected boolean isVisible
protected float zIndex
protected MapContext mapContext
protected MapView mapView
protected CoreContentLayer contentLayer
protected java.lang.String id
public void init(MapView mapView)
public boolean onTouchEvent(android.view.MotionEvent event, MapView mapView)
event
- mapView
- public void onEmptyTap(GeoPoint pt)
public void onRemoveOverlay()
public boolean onLongPress(GeoPoint p, android.view.MotionEvent event, MapView mapView)
p
- event
- mapView
- public void remove()
public java.lang.String getId()
public void setZIndex(float paramFloat)
public float getZIndex()
public void setVisible(boolean paramBoolean)
public boolean isVisible()
public boolean equalsRemote(IOverlayDelegate paramDelegate)
public int hashCodeRemote()
public void draw(android.graphics.Canvas canvas)
protected void draw(android.graphics.Canvas canvas, MapView mapView)
canvas
- 画布mapView
- mapview对象shadow
- 是否是阴影public void destroy()
public boolean checkInBounds()