CartoType iOS API 7.8.2, 2022-03-25
for development in Swift and Objective C for iOS and Mac OS
|
#import <CartoTypeBase.h>
Instance Methods | |
(CTResult) | - readFromXml: |
(NSString *) | - toXml |
(CartoTypePerspectiveParam *) | - getPerspectiveParam |
(void) | - setPerspectiveParam: |
(void *) | - getViewState |
Properties | |
int | widthInPixels |
int | heightInPixels |
CartoTypePoint | viewCenterDegrees |
double | scaleDenominator |
double | rotationDegrees |
bool | perspective |
The view state, which can be retrieved or set so that maps can be recreated.
- (CartoTypePerspectiveParam *) getPerspectiveParam |
Gets a copy of the parameters to be used for perspective mode.
- (void *) getViewState |
(for internal use) Gets a pointer to the underlying C++ object.
- (CTResult) readFromXml: | (NSString *) | aText |
Reads a view state from its XML form.
- (void) setPerspectiveParam: | (CartoTypePerspectiveParam *) | aPerspectiveParam |
Sets the parameters to be used for perspective mode.
- (NSString *) toXml |
Creates a string representing a view state in XML.
|
readwritenonatomicassign |
The display height in pixels.
|
readwritenonatomicassign |
True if perspective mode is on.
|
readwritenonatomicassign |
The clockwise rotation of the view in degrees.
|
readwritenonatomicassign |
The denominator of the scale fraction; e.g., 50000 for 1:50000.
|
readwritenonatomicassign |
The view center in map coordinates.
|
readwritenonatomicassign |
The display width in pixels.