MapViewBase

public class MapViewBase extends View

Fields

mListeners

protected List<MapViewEventListener> mListeners

mMap

protected MapDrawable mMap

Constructors

MapViewBase

public MapViewBase(Context context, MapDrawable map)

Methods

addListener

public void addListener(MapViewEventListener listener)

addLocalTMSLayer

public void addLocalTMSLayer(Uri uri)

addLocalVectorLayer

public void addLocalVectorLayer(Uri uri)

addLocalVectorLayerWithForm

public void addLocalVectorLayerWithForm(Uri uri)

addNGWLayer

public void addNGWLayer()

addRemoteLayer

public void addRemoteLayer()

canZoomIn

public boolean canZoomIn()

canZoomOut

public boolean canZoomOut()

getLayerById

public ILayer getLayerById(int id)

getLayersByType

public List<ILayer> getLayersByType(int types)

getMap

public MapDrawable getMap()

getMapCenter

public final GeoPoint getMapCenter()

getMaxZoom

public final float getMaxZoom()

getMinZoom

public final float getMinZoom()

getVectorLayersByType

public List<ILayer> getVectorLayersByType(int types)

getZoomLevel

public final float getZoomLevel()

onDetachedFromWindow

protected void onDetachedFromWindow()

onDraw

protected void onDraw(Canvas canvas)

onLayout

protected void onLayout(boolean changed, int left, int top, int right, int bottom)

onSizeChanged

protected void onSizeChanged(int w, int h, int oldw, int oldh)

onVisibilityChanged

protected void onVisibilityChanged(View changedView, int visibility)

onWindowVisibilityChanged

protected void onWindowVisibilityChanged(int visibility)

removeListener

public void removeListener(MapViewEventListener listener)

screenToMap

public GeoEnvelope screenToMap(GeoEnvelope envelope)

setKeepScreenOnByPref

protected void setKeepScreenOnByPref()

setZoomAndCenter

public void setZoomAndCenter(float zoom, GeoPoint center)

zoomIn

public void zoomIn()

zoomOut

public void zoomOut()

zoomToExtent

public void zoomToExtent(GeoEnvelope envelope)