CartoType iOS API 8.8-13-g03c6f7017
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: | (CartoTypeFramework *) | aFramework | |
bounds: | (CGRect) | aBounds | |
Creates a view controller which uses a CartoTypeView 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: | (CartoTypePoint) | 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: | (CartoTypePoint) | 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: | (CartoTypeFramework *) | aFramework | |
bounds: | (CGRect) | aBounds | |
Sets the framework and bounds of the view controller. The bounds are in logical pixels.