public class MapTargetBubble
extends AbstractLayer
Modifier and Type | Class and Description |
---|---|
static interface |
MapTargetBubble.OnCrosshairColorChangedListener |
static interface |
MapTargetBubble.OnLocationChangedListener |
static interface |
MapTargetBubble.OnScaleChangedListener |
Constructor and Description |
---|
MapTargetBubble(MapView mapView,
int x,
int y,
int width,
int height,
double mapScale) |
MapTargetBubble(MapView mapView,
java.util.List<? extends Layer> layers,
int x,
int y,
int width,
int height,
double mapScale) |
MapTargetBubble(MapView mapView,
java.util.List<? extends Layer> layers,
Polygon viewport,
double mapScale,
boolean coordExtraction) |
public MapTargetBubble(MapView mapView, int x, int y, int width, int height, double mapScale)
public MapTargetBubble(MapView mapView, java.util.List<? extends Layer> layers, int x, int y, int width, int height, double mapScale)
public MapTargetBubble(MapView mapView, java.util.List<? extends Layer> layers, Polygon viewport, double mapScale, boolean coordExtraction)
public boolean isCoordExtractionBubble()
public Polygon getViewport()
public void shiftLocation(double latShift, double lngShift)
public void setLocation(double latitude, double longitude)
public java.util.List<Layer> getLayers()
public Globe getGlobe()
public CrosshairLayer getCrosshair()
public double getLatitude()
public double getLongitude()
public int getX()
public int getY()
public int getWidth()
public int getHeight()
public double getMapScale()
public void setMapScale(double scale)
scale
- the scale to setpublic int getCrosshairColor()
public void setCrosshairColor(int color)
color
- the crosshair changedpublic void addOnLocationChangedListener(MapTargetBubble.OnLocationChangedListener l)
public void removeOnLocationChangedListener(MapTargetBubble.OnLocationChangedListener l)
protected void onLocationChanged()
public void addOnScaleChangedListener(MapTargetBubble.OnScaleChangedListener l)
public void removeOnScaleChangedListener(MapTargetBubble.OnScaleChangedListener l)
protected void onScaleChanged()
public void addOnCrosshairColorChangedListener(MapTargetBubble.OnCrosshairColorChangedListener l)
public void removeOnCrosshairColorChangedListener(MapTargetBubble.OnCrosshairColorChangedListener l)
protected void onCrosshairColorChanged()