CartoType Android API 7.8.2, 2022-03-25
for Java development on Android
Public Member Functions | Public Attributes | List of all members
com.cartotype.ViewState Class Reference

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()
 

Detailed Description

The view state, which can be retrieved or set so that maps can be recreated.

Member Function Documentation

◆ readFromXml()

native int com.cartotype.ViewState.readFromXml ( String  aText)

Reads a view state from its XML form. Returns an error code (0 = success).

◆ toXml()

native String com.cartotype.ViewState.toXml ( )

Creates a string representing a view state in XML.

Member Data Documentation

◆ iHeightInPixels

int com.cartotype.ViewState.iHeightInPixels = 256

The display height in pixels.

◆ iPerspective

boolean com.cartotype.ViewState.iPerspective = false

True if perspective mode is on.

◆ iPerspectiveParam

PerspectiveParam com.cartotype.ViewState.iPerspectiveParam = new PerspectiveParam()

The parameters to be used for perspective mode; if null, default parameters are used.

◆ iRotationDegrees

double com.cartotype.ViewState.iRotationDegrees = 0

The clockwise rotation of the view in degrees.

◆ iScaleDenominator

double com.cartotype.ViewState.iScaleDenominator = 0

The denominator of the scale fraction; e.g., 50000 for 1:50000.

◆ iViewCenterDegreesX

double com.cartotype.ViewState.iViewCenterDegreesX = 0

The X coordinate (longitude) of the view center in degrees.

◆ iViewCenterDegreesY

double com.cartotype.ViewState.iViewCenterDegreesY = 0

The Y coordinate (latitude) of the view center in degrees.

◆ iWidthInPixels

int com.cartotype.ViewState.iWidthInPixels = 256

The display width in pixels.


The documentation for this class was generated from the following file: