Package org.oscim.core
Class MapPosition
java.lang.Object
org.oscim.core.MapPosition
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcopy(MapPosition other) floatdoubledoublefloatgetRoll()doublegetScale()floatgetTilt()doublegetX()doublegetY()doublegetZoom()intdoubleset(double x, double y, double scale, float bearing, float tilt) set(double x, double y, double scale, float bearing, float tilt, float roll) setBearing(float bearing) voidsetByBoundingBox(BoundingBox bbox, int viewWidth, int viewHeight) setPosition(double latitude, double longitude) setPosition(GeoPoint geoPoint) setRoll(float roll) setScale(double scale) setTilt(float tilt) setX(double x) setY(double y) setZoom(double zoom) Sets the fractional zoom.setZoomLevel(int zoomLevel) toString()
-
Field Details
-
x
public double xProjected position x 0..1 -
y
public double yProjected position y 0..1 -
scale
public double scaleAbsolute scale - use setScale() to modify -
bearing
public float bearingRotation angle -
tilt
public float tiltPerspective tilt -
roll
public float rollPerspective roll -
zoomLevel
public int zoomLevelZoom-level for current scale. - To be removed: FastMath.log2(scale) - use setZoomLevel() to modify
-
-
Constructor Details
-
MapPosition
public MapPosition() -
MapPosition
public MapPosition(double latitude, double longitude, double scale)
-
-
Method Details
-
getX
public double getX() -
setX
-
getY
public double getY() -
setY
-
getBearing
public float getBearing() -
setBearing
-
getRoll
public float getRoll() -
setRoll
-
getTilt
public float getTilt() -
setTilt
-
getScale
public double getScale() -
setScale
-
getZoom
public double getZoom()- Returns:
- the fractional zoom.
-
setZoom
Sets the fractional zoom. -
getZoomLevel
public int getZoomLevel() -
setZoomLevel
-
setPosition
-
setPosition
-
copy
-
set
-
set
-
getZoomScale
public double getZoomScale()- Returns:
- scale relative to zoom-level.
-
getGeoPoint
-
getLatitude
public double getLatitude() -
getLongitude
public double getLongitude() -
setByBoundingBox
-
toString
-