CartoType Android API 7.8.2, 2022-03-25
for Java development on Android
|
Public Member Functions | |
native int | readFromXml (String aText) |
native String | toXml () |
Public Attributes | |
int | iWidthInPixels = 256 |
int | iHeightInPixels = 256 |
double | iViewCenterDegreesX = 0 |
double | iViewCenterDegreesY = 0 |
double | iScaleDenominator = 0 |
double | iRotationDegrees = 0 |
boolean | iPerspective = false |
PerspectiveParam | iPerspectiveParam = 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.iHeightInPixels = 256 |
The display height in pixels.
boolean com.cartotype.ViewState.iPerspective = false |
True if perspective mode is on.
PerspectiveParam com.cartotype.ViewState.iPerspectiveParam = new PerspectiveParam() |
The parameters to be used for perspective mode; if null, default parameters are used.
double com.cartotype.ViewState.iRotationDegrees = 0 |
The clockwise rotation of the view in degrees.
double com.cartotype.ViewState.iScaleDenominator = 0 |
The denominator of the scale fraction; e.g., 50000 for 1:50000.
double com.cartotype.ViewState.iViewCenterDegreesX = 0 |
The X coordinate (longitude) of the view center in degrees.
double com.cartotype.ViewState.iViewCenterDegreesY = 0 |
The Y coordinate (latitude) of the view center in degrees.
int com.cartotype.ViewState.iWidthInPixels = 256 |
The display width in pixels.