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 | |
int | widthInPixels = 256 |
int | heightInPixels = 256 |
double | viewCenterDegreesX = 0 |
double | viewCenterDegreesY = 0 |
double | scaleDenominator = 0 |
double | rotationDegrees = 0 |
boolean | perspective = false |
PerspectiveParam | perspectiveParam = new PerspectiveParam() |
The view state, which can be retrieved or set so that maps can be recreated.
native int com.cartotype.ViewState.readFromXml | ( | String | aText | ) |
Reads a view state from its XML form. Returns an error code (0 = success).
native String com.cartotype.ViewState.toXml | ( | ) |
Creates a string representing a view state in XML.
int com.cartotype.ViewState.heightInPixels = 256 |
The display height in pixels.
boolean com.cartotype.ViewState.perspective = false |
True if perspective mode is on.
PerspectiveParam com.cartotype.ViewState.perspectiveParam = new PerspectiveParam() |
The parameters to be used for perspective mode; if null, default parameters are used.
double com.cartotype.ViewState.rotationDegrees = 0 |
The clockwise rotation of the view in degrees.
double com.cartotype.ViewState.scaleDenominator = 0 |
The denominator of the scale fraction; e.g., 50000 for 1:50000.
double com.cartotype.ViewState.viewCenterDegreesX = 0 |
The X coordinate (longitude) of the view center in degrees.
double com.cartotype.ViewState.viewCenterDegreesY = 0 |
The Y coordinate (latitude) of the view center in degrees.
int com.cartotype.ViewState.widthInPixels = 256 |
The display width in pixels.