CartoType iOS API 9.0-11-g64131709d
for development in Swift and Objective C for iOS and Mac OS
Loading...
Searching...
No Matches
CtViewController Class Reference

#include <CartoTypeViewController.h>

Inheritance diagram for CtViewController:

Instance Methods

(id) - init:bounds:
 
(id) - init
 
(id) - initWithCoder:
 
(void) - setFramework:bounds:
 
(void) - onTap:
 
(void) - onLongPress:
 

Detailed Description

A view controller class which draws a map using hardware graphics acceleration and supports the standard gestures to pan, zoom and rotate the map.

Method Documentation

◆ init

- (id) init

Creates a view controller with a valid MGLKView which doesn't draw anything.

◆ init:bounds:

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

◆ initWithCoder:

- (id) initWithCoder: (NSCoder *) aDecoder

Creates a view controller with a valid MGLKView which doesn't draw anything.

◆ onLongPress:

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

◆ onTap:

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

◆ setFramework:bounds:

- (void) setFramework: (CtFramework *) aFramework
bounds: (CGRect) aBounds 

Sets the framework and bounds of the view controller. The bounds are in logical pixels.


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