|
CartoType iOS API 9.2-12-g6c2dcf66f
for development in Swift and Objective C for iOS and Mac OS
|
#import <CartoTypeViewController.h>
Instance Methods | |
| (id) | - init:bounds: |
| (id) | - init |
| (id) | - initWithCoder: |
| (void) | - setFramework:bounds: |
| (void) | - onTap: |
| (void) | - onLongPress: |
A view controller class which draws a map using hardware graphics acceleration and supports the standard gestures to pan, zoom and rotate the map.
| - (id) init |
Creates a view controller with a valid MGLKView which doesn't draw anything.
| - (id) init: | (CtFramework *) | aFramework | |
| bounds: | (CGRect) | aBounds | |
Creates a view controller which uses a CtView object to draw the map. Takes ownership of the supplied framework object.
| - (id) initWithCoder: | (NSCoder *) | aDecoder |
Creates a view controller with a valid MGLKView which doesn't draw anything.
| - (void) onLongPress: | (CtPoint) | aPointInDegrees |
Handles a long press gesture at a specified point in degrees latitude and longitude. The base implementation does nothing, but you can implement this method in your derived class.
| - (void) onTap: | (CtPoint) | aPointInDegrees |
Handles a tap gesture at a specified point in degrees latitude and longitude. The base implementation does nothing, but you can implement this method in your derived class.
| - (void) setFramework: | (CtFramework *) | aFramework | |
| bounds: | (CGRect) | aBounds | |
Sets the framework and bounds of the view controller. The bounds are in logical pixels.