public class MapView
extends GLMapSurfaceView
| Modifier and Type | Class and Description |
|---|---|
static class |
MapView.RasterMode |
static class |
MapView.RenderMode |
static class |
MapView.TouchMode |
| Constructor and Description |
|---|
MapView(android.content.Context context) |
MapView(android.content.Context context,
android.util.AttributeSet attrs) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAnnotation(Annotation annotation) |
OverlayId |
addOverLay(Overlay overlay) |
float |
calculateZoom(ArrayList<Annotation> annotations,
Annotation centerAnno) |
void |
followVehicle(boolean follow) |
android.location.Location |
getCameraLocation() |
android.location.Location |
getLocationForScreenPoint(android.graphics.Point point) |
byte[] |
getSnapShot(int x,
int y,
int width,
int height) |
MapView.TouchMode |
getTouchMode() |
boolean |
getUseMetricUnits() |
float |
getZoomLevel() |
void |
hideAnnotation(Annotation annotation) |
boolean |
isNightMode() |
void |
lookAt(ArrayList<Annotation> annotations) |
void |
lookAt(double north,
double west,
double south,
double east) |
void |
lookAt(android.location.Location location) |
void |
removeAllAnnotation() |
void |
removeAnnotation(Annotation annotation) |
void |
removeOverLay(OverlayId ids) |
void |
setDisplaySpeedTraps(boolean enable) |
void |
setDisplayTraffic(boolean enable) |
void |
setDisplayTrafficCameras(boolean enable) |
void |
setDisplayTrafficIncidents(boolean enable) |
void |
setDisplayVehicle(boolean enable) |
void |
setNightMode(boolean nightMode) |
void |
setRasterMode(MapView.RasterMode mode) |
void |
setRenderMode(MapView.RenderMode mode) |
void |
setTouchMode(MapView.TouchMode mode) |
void |
setUseMetricUnits(Boolean useMetric) |
void |
setVehicle2D(Annotation annotation) |
void |
setVehicle3D(String modelName) |
void |
setVehiclePosition(android.location.Location l) |
void |
setZoomLevel(float zoom,
boolean needTransition) |
void |
showAnnotation(Annotation annotation) |
void |
showCopyRight(int x,
int y,
int pixelWidth,
int pixelHeight) |
void |
updateAnnotationLocation(Annotation annotation) |
public MapView(android.content.Context context)
public MapView(android.content.Context context,
android.util.AttributeSet attrs)
public android.location.Location getCameraLocation()
public android.location.Location getLocationForScreenPoint(android.graphics.Point point)
public void removeAnnotation(Annotation annotation)
public void addAnnotation(Annotation annotation)
public void updateAnnotationLocation(Annotation annotation)
public void showAnnotation(Annotation annotation)
public void hideAnnotation(Annotation annotation)
public void setNightMode(boolean nightMode)
public boolean isNightMode()
public void setRasterMode(MapView.RasterMode mode)
public void lookAt(ArrayList<Annotation> annotations)
public float calculateZoom(ArrayList<Annotation> annotations, Annotation centerAnno)
public void lookAt(android.location.Location location)
public void lookAt(double north,
double west,
double south,
double east)
public void setDisplayTraffic(boolean enable)
public void setDisplayTrafficIncidents(boolean enable)
public void setDisplayTrafficCameras(boolean enable)
public void setDisplaySpeedTraps(boolean enable)
public void setDisplayVehicle(boolean enable)
public void followVehicle(boolean follow)
public void setVehicle2D(Annotation annotation)
public void setVehicle3D(String modelName)
public void setVehiclePosition(android.location.Location l)
public void setRenderMode(MapView.RenderMode mode)
public void removeAllAnnotation()
public void removeOverLay(OverlayId ids)
public byte[] getSnapShot(int x,
int y,
int width,
int height)
public void setTouchMode(MapView.TouchMode mode)
public MapView.TouchMode getTouchMode()
public void setUseMetricUnits(Boolean useMetric)
public boolean getUseMetricUnits()
public float getZoomLevel()
public void setZoomLevel(float zoom,
boolean needTransition)
public void showCopyRight(int x,
int y,
int pixelWidth,
int pixelHeight)