CartoType Android API 8.8-7-gb35e4dc71
for Java development on Android
|
Public Member Functions | |
native int | readFromXml (String aText) |
native String | toXml () |
Public Attributes | |
double | positionX = 0 |
double | positionY = 0 |
boolean | autoPosition = true |
double | heightMeters = 0 |
double | azimuthDegrees = 0 |
boolean | autoAzimuth = true |
double | declinationDegrees = 30 |
double | rotationDegrees = 0 |
double | fieldOfViewDegrees = 22.5 |
Parameters giving detailed control of the perspective view.
native int com.cartotype.PerspectiveParam.readFromXml | ( | String | aText | ) |
Reads a perspective parameter object from its XML form. Returns an error code (0 = success).
native String com.cartotype.PerspectiveParam.toXml | ( | ) |
Creates a string representing a perspective parameter object in XML.
boolean com.cartotype.PerspectiveParam.autoAzimuth = true |
If true, ignore azimuthDegrees and use the current map orientation.
boolean com.cartotype.PerspectiveParam.autoPosition = true |
If true, ignore positionX and positionY, and set the camera position so that the location in the center of the display is shown.
double com.cartotype.PerspectiveParam.azimuthDegrees = 0 |
The azimuth of the camera in degrees going clockwise, where 0 is N, 90 is E, etc.
double com.cartotype.PerspectiveParam.declinationDegrees = 30 |
The declination of the camera downward from the horizontal plane. Values are clamped to the range -90...90.
double com.cartotype.PerspectiveParam.fieldOfViewDegrees = 22.5 |
The camera's field of view in degrees.
double com.cartotype.PerspectiveParam.heightMeters = 0 |
The height of the camera above the terrain. The value 0 causes a default value to be used, which is the width of the display.
double com.cartotype.PerspectiveParam.positionX = 0 |
The X coordinate (longitude in degrees) of the position of the point on the terrain below the camera.
double com.cartotype.PerspectiveParam.positionY = 0 |
The Y coordinate (latitude in degrees) of the position of the point on the terrain below the camera.
double com.cartotype.PerspectiveParam.rotationDegrees = 0 |
The amount by which the camera is rotated about its axis, after applying the declination, in degrees going clockwise.