CartoType iOS API 8.10-3-g0075538f6
for development in Swift and Objective C for iOS and Mac OS
CartoTypeFramework.h
Go to the documentation of this file.
1/*
2CartoTypeFramework.h
3Copyright 2013-2024 CartoType Ltd.
4See www.cartotype.com for more information.
5*/
6
7#import <CartoType/CartoTypeBase.h>
8#import <CartoType/CartoTypeRouter.h>
9#import <CartoType/CartoTypeResultCode.h>
10#import <CartoType/CartoTypeFrameworkParam.h>
11#import <CartoType/CartoTypeLegend.h>
12#import <QuartzCore/QuartzCore.h>
13
36@protocol CartoTypeFindAsyncProtocol <NSObject>
38 -(void)handler:(NSMutableArray<CartoTypeMapObject*>*)aObjectArray;
39@end
40
44 -(void)handler:(NSMutableArray<CartoTypeMapObjectGroup*>*)aObjectGroupArray;
45@end
46
50 -(void)handler:(CTResult)aResult route:(CartoTypeRoute*)aRoute;
51@end
52
58@interface CartoTypeFramework: NSObject
59
72-(id)initWithMap:(NSString*)aMapFileName andStyle:(NSString*)aStyleSheetFileName andFont:(NSString*)aFontFileName andWidth:(int)aWidth andHeight:(int)aHeight;
73
77-(id)initWithParam:(CartoTypeFrameworkParam*)aParam;
78
82-(void*)framework;
83
85-(id)copy;
86
88-(CTResult)configure:(NSString*)aConfigFileName;
89
91+(NSString*)description;
92
94+(NSString*)version;
95
97+(NSString*)build;
98
100-(CTResult)license:(NSString*)aKey;
101
108-(CTResult)setProviderParam:(NSString*)aKey value:(NSString*)aValue;
109
111@property (nonatomic) NSString* licensee;
112
114@property (nonatomic) NSString* expiryDate;
115
117@property (nonatomic) NSString* appBuildDate;
118
120@property (nonatomic) NSString* copyright;
121
123-(void)setCopyrightNotice;
124
126-(void)setCopyrightNotice:(NSString*)aCopyright;
127
129-(void)setLegend:(CartoTypeLegend*)aLegend width:(double)aWidth unit:(NSString*)aUnit extendedPosition:(CartoTypeExtendedNoticePosition*)aPosition;
130
132-(void)setLegend:(CartoTypeLegend*)aLegend width:(double)aWidth unit:(NSString*)aUnit position:(CartoTypeNoticePosition)aPosition;
133
135@property (nonatomic) bool legendEnabled;
136
138-(void)setScaleBar:(double)aWidth widthUnit:(NSString*)aWidthUnit extendedPosition:(CartoTypeExtendedNoticePosition*)aPosition;
139
141-(void)setScaleBar:(double)aWidth widthUnit:(NSString*)aWidthUnit position:(CartoTypeNoticePosition)aPosition;
142
144@property (nonatomic) bool scaleBarEnabled;
145
147-(CTResult)setTurnInstructions:(bool)aAbbreviate width:(double)aWidth widthUnit:(NSString*)aWidthUnit extendedPosition:(CartoTypeExtendedNoticePosition*)aPosition textSize:(double)aTextSize textSizeUnit:(NSString*)aTextSizeUnit;
148
150-(CTResult)setTurnInstructions:(bool)aAbbreviate width:(double)aWidth widthUnit:(NSString*)aWidthUnit position:(CartoTypeNoticePosition)aPosition textSize:(double)aTextSize textSizeUnit:(NSString*)aTextSizeUnit;
151
153@property (nonatomic) bool turnInstructionsEnabled;
154
161-(void)setTurnInstructionText:(NSString*)aText;
162
167-(NSString*)turnInstructionText;
168
173-(void)drawNoticesAutomatically:(bool)aEnable;
174
176@property (nonatomic) bool hasNotices;
177
183
189-(CTResult)loadMap:(NSString*)aMapFileName;
190
195-(CTResult)unloadMapByHandle:(uint32_t)aHandle;
196
198-(CTResult)createWritableMapOfType:(CartoTypeWritableMapType)aType;
199
206-(CTResult)saveMap:(uint32_t)aHandle fileName:(NSString*)aFileName fileType:(CartoTypeFileType)aFileType;
207
215-(CTResult)readMap:(uint32_t)aHandle fileName:(NSString*)aFileName fileType:(CartoTypeFileType)aFileType;
216
222-(NSData*)saveMap:(uint32_t)aHandle param:(CartoTypeFindParam*)aFindParam;
223
228-(CTResult)readMap:(uint32_t)aHandle data:(NSData*)aData;
229
236-(CTResult)writeMapImage:(NSString*)aFileName fileType:(CartoTypeFileType)aFileType compress:(bool)aCompress;
237
239-(bool)mapIsEmpty:(uint32_t)aHandle;
240
242-(void)enableMap:(uint32_t)aHandle;
243
245-(void)disableMap:(uint32_t)aHandle;
246
248@property (nonatomic) uint32_t lastMapHandle;
249
251@property (nonatomic) uint32_t mainMapHandle;
252
254@property (nonatomic) uint32_t memoryMapHandle;
255
257@property (nonatomic) size_t mapCount;
258
260-(CartoTypeMapMetaData*)mapMetaData:(uint32_t)aIndex;
261
267-(CTResult)loadFont:(NSString*)aFontFileName;
268
274-(CTResult)setStyleSheet:(NSString*)aStyleSheetFileName;
275
281
286-(CTResult)setMapWidth:(int)aWidth andHeight:(int)aHeight;
287
289@property (nonatomic) double resolutionDpi;
290
292@property (nonatomic) double scaleDenominator;
293
295@property (nonatomic) double scaleDenominatorInView;
296
301-(double)scaleDenominatorFromZoomLevel:(double)aZoomLevel forImageSize:(int)aImageSizeInPixels;
302
307-(double)zoomLevelFromScaleDenominator:(double)aScaleDenominator forImageSize:(int)aImageSizeInPixels;
308
310-(double)distanceInMetersFrom:(CartoTypePoint)aStart to:(CartoTypePoint)aEnd coordType:(CartoTypeCoordType)aCoordType;
311
313@property (nonatomic) bool perspective;
314
317
319@property (nonatomic) bool draw3DBuildings;
320
322@property (nonatomic) bool animateTransitions;
323
325@property (nonatomic) double labelFPS;
326
328@property (nonatomic) bool fixedLabels;
329
331@property (nonatomic) double labelUpAngle;
332
334-(CTResult)zoom:(double)aZoomFactor;
335
343-(CTResult)zoomAt:(double)aZoomFactor x:(double)aX y:(double)aY coordType:(CartoTypeCoordType)aCoordType;
344
346-(CTResult)rotate:(double)aAngle;
347
349-(CTResult)rotateAt:(double)aAngle x:(double)aX y:(double)aY coordType:(CartoTypeCoordType)aCoordType;
350
352-(CTResult)setRotationAt:(double)aAngle x:(double)aX y:(double)aY coordType:(CartoTypeCoordType)aCoordType;
353
355@property (nonatomic) double rotation;
356
358-(CTResult)panX:(int)aDx andY:(int)aDy;
359
361-(CTResult)panFrom:(CartoTypePoint)aFrom fromCoordType:(CartoTypeCoordType)aFromCoordType to:(CartoTypePoint)aTo toCoordType:(CartoTypeCoordType) aToCoordType;
362
367-(CTResult)setViewCenter:(CartoTypePoint)aCenter coordType:(CartoTypeCoordType)aCoordType;
368
379-(CTResult)setView:(CartoTypeRect)aView coordType:(CartoTypeCoordType)aCoordType margin:(int)aMarginInPixels minScale:(int)aMinScaleDenominator;
380
382-(CTResult)setView:(CartoTypeGeometry*)aGeometry margin:(int)aMarginInPixels minScale:(int)aMinScaleDenominator;
383
389-(CTResult)setViewToRoute:(int)aRouteIndex margin:(int)aMarginInPixels minScale:(int)aMinScaleDenominator;
390
393
403-(CTResult)setViewLimitsToMinScale:(double)aMinScaleDenominator maxScale:(double)aMaxScaleDenominator panArea:(CartoTypeGeometry*)aPanArea;
404
406-(CTResult)setViewObject:(CartoTypeMapObject*)aMapObject margin:(int)aMarginInPixels minScale:(int)aMinScaleDenominator;
407
409-(CTResult)setViewObjects:(NSArray<CartoTypeMapObject*>*)aObjectArray margin:(int)aMarginInPixels minScale:(int)aMinScaleDenominator;
410
412-(CTResult)getView:(CartoTypeRect*)aView coordType:(CartoTypeCoordType)aCoordType;
413
415@property (nonatomic) CartoTypeViewState* viewState;
416
418-(CTResult)getMapExtent:(CartoTypeRect*)aExtent coordType:(CartoTypeCoordType)aCoordType;
419
421@property (nonatomic) NSString* projectionAsProj4Param;
422
424-(CTResult)insertMapObject:(CartoTypeMapObjectParam*)aParam;
425
443-(CartoTypeIdAndResult)insertPushPin:(CartoTypePoint)aPoint coordType:(CartoTypeCoordType)aCoordType stringAttrib:(NSString*)aStringAttrib color:(NSString*)aColor iconChar:(int)aIconCharacter id:(uint64_t)aId;
444
454-(CartoTypeIdAndResult)insertCopyOfMapObject:(CartoTypeMapObject*)aObject map:(uint32_t)aMapHandle layerName:(NSString*)aLayerName radius:(double)aRadius radiusCoordType:(CartoTypeCoordType)aRadiusCoordType id:(uint64_t)aId replace:(bool)aReplace;
455
461-(uint64_t)deleteObjectsFromMap:(uint32_t)aMapHandle fromID:(uint64_t)aStartID toID:(uint64_t)aEndId withCondition:(NSString*)aCondition;
462
464-(CartoTypeMapObject*)loadMapObjectFromMap:(uint32_t)aMapHandle withID:(uint64_t)aObjectId;
465
474-(CTResult)readGpx:(uint32_t)aMapHandle file:(NSString*)aFileName;
475
484-(CartoTypeGeometry*)range:(CartoTypeRouteProfile*)aProfile point:(CartoTypePoint)aPoint coordType:(CartoTypeCoordType)aCoordType timeOrDistance:(double)aTimeOrDistance isTime:(bool)aIsTime;
485
492-(CartoTypeTimeAndDistanceMatrix*)timeAndDistanceMatrix:(CartoTypePointSet*)aFrom to:(CartoTypePointSet*)aTo;
493
505-(bool)mutuallyAccessible:(NSMutableArray<NSNumber*>*)aPointArray coordType:(CartoTypeCoordType)aCoordType groupArray:(NSMutableArray<NSNumber*>*)aGroupArray;
506
508-(void)enableLayer:(NSString*)aLayerName;
509
511-(void)disableLayer:(NSString*)aLayerName;
512
514-(bool)layerIsEnabled:(NSString*)aLayerName;
515
517-(NSMutableArray<NSString*>*)layerNames;
518
520-(CTResult)convertCoords:(CartoTypeGeometry*)aGeometry to:(CartoTypeCoordType)aToCoordType;
521
523-(CartoTypePointAndResult)convertPoint:(CartoTypePoint)aPoint from:(CartoTypeCoordType)aFromCoordType to:(CartoTypeCoordType)aToCoordType;
524
526@property (nonatomic) NSString* dataSetName;
527
529-(double)pixelsToMeters:(double)aPixels;
530
532-(double)metersToPixels:(double)aMeters;
533
539-(CTResult)editSetWritableMap:(uint32_t)aMapHandle;
540
542-(CTResult)editNewLineObject:(CartoTypePoint)aDisplayPoint;
543
545-(CTResult)editNewPolygonObject:(CartoTypePoint)aDisplayPoint;
546
548-(CTResult)editMoveCurrentPoint:(CartoTypePoint)aDisplayPoint;
549
552
555
558
563-(CTResult)editSelectNearestPoint:(CartoTypePoint)aDisplayPoint radius:(double)aRadiusInMillimeters;
564
570-(CartoTypeIdAndResult)editInsertCurrentObjectInLayer:(NSString*)aLayer id:(uint64_t)aId replace:(bool)aReplace;
571
573-(CTResult)editSetCurrentObjectStringAttribute:(NSString*)aKey value:(NSString*)aValue;
574
576-(CTResult)editSetCurrentObjectFeatureInfo:(CartoTypeFeatureInfo*)aFeatureInfo;
577
584
586-(CGImageRef)mapBitmap;
587
589-(CGImageRef)memoryDataBaseMapBitmap;
590
592-(void)enableDrawingMemoryDataBase:(bool)aEnable;
593
600-(CGImageRef)tileBitmapWithSize:(int)aSize andZoom:(int)aZoom andX:(int)aX andY:(int)aY;
601
609-(bool)clipBackgroundToMapBounds:(bool)aEnable;
610
624-(int)setTileOverSizeZoomLevels:(int)aLevels;
625
641-(CTResult)loadIcon:(NSString*)aFileName id:(NSString*)aId hotSpot:(CartoTypePoint)aHotSpot labelPos:(CartoTypePoint)aLabelPos labelMaxlength:(int)aLabelMaxLength;
642
652-(CTResult)find:(NSMutableArray<CartoTypeMapObject*>*)aObjectArray withParam:(CartoTypeFindParam*)aFindParam;
653
660-(CTResult)findAsync:(id<CartoTypeFindAsyncProtocol>)aCallback param:(CartoTypeFindParam*)aFindParam override:(bool)aOverride;
661
671-(NSMutableArray<CartoTypeMapObjectGroup*>*)findGroups:(CartoTypeFindParam*)aFindParam;
672
684-(CTResult)findAsyncGroups:(id<CartoTypeFindAsyncGroupProtocol>)aCallback param:(CartoTypeFindParam*)aFindParam override:(bool)aOverride;
685
690-(CTResult)findNearby:(NSMutableArray<CartoTypeMapObject*>*)aObjectArray featureType:(CartoTypeFeatureType)aFeatureType text:(NSString*)aText location:(CartoTypeGeometry*)aLocation;
691
701-(CTResult)find:(NSMutableArray<CartoTypeMapObject*>*)aObjectArray maxItems:(int)aMaxItems address:(CartoTypeAddress*)aAddress fuzzy:(bool)aFuzzy;
702
709-(CTResult)findAddressAsync:(id<CartoTypeFindAsyncProtocol>)aCallback maxItems:(int)aMaxItems address:(CartoTypeAddress*)aAddress fuzzy:(bool)aFuzzy override:(bool)aOverride;
710
717-(CTResult)findInDisplay:(NSMutableArray<CartoTypeMapObject*>*)aObjectArray maxItems:(int)aMaxItems point:(CartoTypePoint)aPoint radius:(double)aRadius;
718
720-(CTResult)findInLayer:(NSMutableArray<CartoTypeMapObject*>*)aObjectArray maxItems:(int)aMaxItems layer:(NSString*)aLayer clip:(CartoTypeRect)aClip coordType:(CartoTypeCoordType)aCoordType;
721
727-(CTResult)findPolygonsContainingPath:(NSMutableArray<CartoTypeMapObject*>*)aObjectArray path:(CartoTypeGeometry*)aPath findParam:(CartoTypeFindParam*)aFindParam;
728
734-(CTResult)findPointsInPath:(NSMutableArray<CartoTypeMapObject*>*)aObjectArray path:(CartoTypeGeometry*)aPath findParam:(CartoTypeFindParam*)aFindParam;
735
742-(NSString*)geoCodeSummary:(CartoTypeMapObject*)aMapObject;
743
750-(NSString*)geoCodeSummary:(CartoTypePoint)aPoint coordType:(CartoTypeCoordType)aCoordType;
751
757-(CTResult)getAddress:(CartoTypeAddress*)aAddress mapObject:(CartoTypeMapObject*)aMapObject;
758
763-(CTResult)getAddressFast:(CartoTypeAddress*)aAddress mapObject:(CartoTypeMapObject*)aMapObject;
764
770-(CTResult)getAddress:(CartoTypeAddress*)aAddress point:(CartoTypePoint)aPoint coordType:(CartoTypeCoordType)aCoordType;
771
779-(double)height:(CartoTypePoint)aPoint coordType:(CartoTypeCoordType)aCoordType;
780
791-(NSMutableArray<NSNumber*>*)heights:(CartoTypeGeometry*)aGeometry;
792
794-(void)setStyleSheetVariable:(NSString*)aName toString:(NSString*)aValue;
795
797-(void)setStyleSheetVariable:(NSString*)aName toInt:(int)aValue;
798
800@property (nonatomic) bool nightMode;
801
812
817@property (nonatomic) NSMutableArray<CartoTypeBlendStyle*>* blendStyleSet;
818
828
842
847-(CTResult)startNavigationFrom:(CartoTypePoint)aStart startCoordType:(CartoTypeCoordType)aStartCoordType to:(CartoTypePoint)aEnd endCoordType:(CartoTypeCoordType)aEndCoordType;
848
852-(CTResult)startNavigation:(CartoTypeRouteCoordSet*)aCoordSet;
853
858-(CTResult)startNavigationDeferred:(CartoTypeRouteCoordSet*)aCoordSet;
859
865-(void)endNavigation;
866
868-(CartoTypeRoute*)createRoute:(CTResult*)aResult profile:(CartoTypeRouteProfile*)aProfile coordSet:(CartoTypeRouteCoordSet*)aCoordSet;
869
876-(CTResult)createRouteAsync:(id<CartoTypeCreateRouteAsyncProtocol>)aCallback profile:(CartoTypeRouteProfile*)aProfile coordSet:(CartoTypeRouteCoordSet*)aCoordSet override:(bool)aOverride;
877
886-(CartoTypeRoute*)createRouteFromXml:(CTResult*)aResult profile:(CartoTypeRouteProfile*)aProfile fileNameOrData:(NSString*)aFileNameOrData;
887
899-(CartoTypeRoute*)createBestRoute:(CTResult*)aResult profile:(CartoTypeRouteProfile*)aProfile coordSet:(CartoTypeRouteCoordSet*)aCoordSet startfixed:(bool)aStartFixed endfixed:(bool)aEndFixed iterations:(int)aIterations;
900
908-(CTResult)createBestRouteAsync:(id<CartoTypeCreateRouteAsyncProtocol>)aCallback profile:(CartoTypeRouteProfile*)aProfile coordSet:(CartoTypeRouteCoordSet*)aCoordSet startfixed:(bool)aStartFixed endfixed:(bool)aEndFixed iterations:(int)aIterations override:(bool)aOverride;
909
915@property (nonatomic) bool navigationEnabled;
916
926
936-(CTResult)setMainProfile:(CartoTypeRouteProfile*)aProfile;
937
942-(CTResult)setMainProfileType:(CartoTypeRouteProfileType)aProfileType;
943
948-(CartoTypeRouteProfile*)profile:(int)aIndex;
949
955@property (nonatomic) int builtInProfileCount;
956
962-(CartoTypeRouteProfile*)builtInProfile:(int)aIndex;
963
969-(CTResult)setBuiltInProfile:(int)aIndex;
970
980-(CTResult)addProfile:(CartoTypeRouteProfile*)aProfile;
981
986+(void)createProfile:(CartoTypeRouteProfile*)aProfile type:(CartoTypeRouteProfileType)aProfileType;
987
989+(CTResult)readProfileFromXmlFile:(CartoTypeRouteProfile*)aProfile filename:(NSString*)aFileName;
990
992+(CTResult)readProfileFromXmlString:(CartoTypeRouteProfile*)aProfile filename:(NSString*)aString;
993
995+(CTResult)writeProfileAsXmlFile:(CartoTypeRouteProfile*)aProfile filename:(NSString*)aFileName;
996
998+(NSString*)writeProfileAsXmlString:(CartoTypeRouteProfile*)aProfile;
999
1011-(CTResult)chooseRoute:(int)aRouteIndex;
1012
1017@property (nonatomic) bool navigating;
1018
1020@property (nonatomic) CartoTypePoint routeStart;
1021
1023@property (nonatomic) CartoTypePoint routeEnd;
1024
1029-(CTResult)displayRoute:(bool)aEnable;
1030
1032@property (nonatomic) CartoTypeRoute* route;
1033
1035-(CartoTypeRoute*)routeByIndex:(int)aIndex;
1036
1039
1041@property (nonatomic) int routeCount;
1042
1056-(CTResult)readRouteFromXml:(NSString*)aFileNameOrData replace:(bool)aReplace;
1057
1059-(NSString*)routeInstructions:(CartoTypeRoute*)aRoute;
1060
1072-(CTResult)useRoute:(CartoTypeRoute*)aRoute replace:(bool)aReplace;
1073
1080
1083
1085-(CTResult)writeRouteAsXml:(CartoTypeRoute*)aRoute file:(NSString*)aFileName fileType:(CartoTypeFileType)aFileType;
1086
1088-(NSString*)writeRouteAsXmlString:(CartoTypeRoute*)aRoute fileType:(CartoTypeFileType)aFileType;
1089
1129-(CTResult)navigate:(CartoTypeNavigationData*)aNavData;
1130
1136@property (nonatomic) CartoTypeTurn* firstTurn;
1137
1143@property (nonatomic) CartoTypeTurn* secondTurn;
1144
1151@property (nonatomic) CartoTypeTurn* continuationTurn;
1152
1155
1157@property (nonatomic) int navigationMinimumFixDistance;
1158
1160@property (nonatomic) int navigationTimeOffRouteTolerance;
1161
1163@property (nonatomic) int navigationDistanceOffRouteTolerance;
1164
1167
1176
1194-(uint32_t)setNearbyObjectWarning:(uint32_t)aId layer:(NSString*)aLayer condition:(NSString*)aCondition maxDistance:(double)aMaxDistance maxObjectCount:(int)aMaxObjectCount;
1195
1210-(uint32_t)setVehicleTypeWarning:(double)aMaxDistance maxObjectCount:(int)aMaxObjectCount;
1211
1213-(bool)deleteNearbyObjectWarning:(uint32_t)aId;
1214
1217
1219-(NSMutableArray<CartoTypeMapObject*>*)copyNearbyObjects;
1220
1222@property (nonatomic) double distanceToDestination;
1223
1225@property (nonatomic) double estimatedTimeToDestination;
1226
1235-(CTResult)findNearestRoad:(CartoTypeNearestRoadInfo*)aInfo point:(CartoTypePoint)aPoint coordType:(CartoTypeCoordType)aCoordType headingInDegrees:(double)aHeadingInDegrees displayPosition:(bool)aDisplayPosition;
1236
1245-(CTResult)displayPositionOnNearestRoad:(CartoTypeNavigationData*)aNavData nearestRoadInfo:(CartoTypeNearestRoadInfo*)aInfo;
1246
1252-(void)setVehiclePosOffsetX:(double)aXOffset andY:(double)aYOffset;
1253
1255@property (nonatomic) CartoTypeFollowMode followMode;
1256
1258-(CTResult)getNavigationPosition:(CartoTypePoint*)aPoint coordType:(CartoTypeCoordType)aCoordType;
1259
1265@property (nonatomic) NSString* locale;
1266
1268@property (nonatomic) bool metricUnits;
1269
1271-(NSString*)distanceToString:(double)aDistanceInMeters abbreviate:(bool)aAbbreviate;
1272
1274-(NSString*)timeToString:(double)aTimeInSeconds;
1275
1282-(NSString*)setCase:(NSString*)aString case:(CartoTypeLetterCase)aCase;
1283
1299-(CartoTypeIdAndResult)addTrafficInfo:(uint64_t)aId trafficInfo:(CartoTypeTrafficInfo*)aTrafficInfo locationRef:(CartoTypeLocationRef*)aLocationRef;
1300
1319-(CartoTypeIdAndResult)addPolygonSpeedLimit:(uint64_t)aId polygon:(CartoTypeGeometry*)aPolygon speed:(double)aSpeed vehicleTypes:(uint32_t)aVehicleTypes;
1320
1343-(CartoTypeIdAndResult)addLineSpeedLimit:(uint64_t)aId line:(CartoTypeGeometry*)aLine speed:(double)aSpeed vehicleTypes:(uint32_t)aVehicleTypes;
1344
1366-(CartoTypeIdAndResult)addClosedLineSpeedLimit:(uint64_t)aId line:(CartoTypeGeometry*)aLine speed:(double)aSpeed vehicleTypes:(uint32_t)aVehicleTypes;
1367
1376-(CartoTypeIdAndResult)addForbiddenArea:(uint64_t)aId polygon:(CartoTypeGeometry*)aPolygon;
1377
1385-(CTResult)deleteTrafficInfo:(uint64_t)aId;
1386
1388-(void)clearTrafficInfo;
1389
1393@property (nonatomic) bool trafficInfoEnabled;
1394
1400-(void)startTracking;
1401
1403-(void)endTracking;
1404
1406-(void)deleteTrack;
1407
1409-(bool)tracking;
1410
1412@property (nonatomic) bool displayTrack;
1413
1418@property (nonatomic) CartoTypeGeometry* track;
1419
1421@property (nonatomic) double trackLengthInMeters;
1422
1424-(CTResult)writeTrackAsXml:(NSString*)aFileName;
1425
1427@property (nonatomic) NSString* trackAsXmlString;
1428
1435-(CartoTypeAreaLengthAndResult)areaAndLength:(CartoTypeGeometry*)aGeometry;
1436
1443-(CartoTypeAreaLengthAndResult)contourAreaAndLength:(CartoTypeGeometry*)aGeometry contourIndex:(int)aContourIndex;
1444
1453+(double)azimuthInDegreesFrom:(CartoTypePoint)aStart to:(CartoTypePoint)aEnd;
1454
1456+(CartoTypePoint)pointAtAzimuthFrom:(CartoTypePoint)aPoint dir:(double)aDir distance:(double)aDistanceInMeters;
1457
1462+(double)greatCircleDistanceInMetersFrom:(CartoTypePoint)aStart to:(CartoTypePoint)aEnd;
1463
1465+(NSData*)readUrl:(NSString*)aUrl;
1466
1480+(NSString*)setAttributeInString:(NSString*)aString withKey:(NSString*)aKey andValue:(NSString*)aValue;
1481
1483+(CartoTypeColor)makeColorR:(int)aR G:(int)aG B:(int)aB A:(int)aA;
1484
1486+(CartoTypeColor)makeColor:(NSString*)aColor;
1487
1489+(CartoTypeColor)setColor:(CartoTypeColor)aColor A:(int)aAlpha;
1490
1492+(NSString*)errorString:(uint32_t)aCode;
1493
1498+(NSString*)readFromUrl:(NSString*)aUrl postData:(NSString*)aPostData;
1499
1500@end
1501
1503@interface CartoTypeMapRenderer: NSObject
1504
1511-(id)init:(CartoTypeFramework*)aFramework;
1512
1514-(void)draw;
1515
1516@end
CartoTypeLetterCase
Definition: CartoTypeBase.h:1208
CartoTypeWritableMapType
Definition: CartoTypeBase.h:1094
CartoTypeFeatureType
Definition: CartoTypeBase.h:363
uint32_t CartoTypeColor
Definition: CartoTypeBase.h:230
CartoTypeCoordType
Definition: CartoTypeBase.h:216
CartoTypeNoticePosition
Definition: CartoTypeBase.h:1103
CartoTypeFileType
Definition: CartoTypeBase.h:52
uint32_t CTResult
Definition: CartoTypeResultCode.h:362
CartoTypeRouteProfileType
Definition: CartoTypeRouter.h:22
CartoTypeNavigationState
Definition: CartoTypeRouter.h:423
CartoTypeRouterType
Definition: CartoTypeRouter.h:171
CartoTypeFollowMode
Definition: CartoTypeRouter.h:451
Definition: CartoTypeBase.h:300
Definition: CartoTypeBase.h:1136
Definition: CartoTypeBase.h:731
Definition: CartoTypeBase.h:1053
Definition: CartoTypeFramework.h:59
NSString * locale
Definition: CartoTypeFramework.h:1265
NSMutableArray< CartoTypeBlendStyle * > * blendStyleSet
Definition: CartoTypeFramework.h:817
NSString * appBuildDate
Definition: CartoTypeFramework.h:117
bool scaleBarEnabled
Definition: CartoTypeFramework.h:144
double trackLengthInMeters
Definition: CartoTypeFramework.h:1421
CartoTypeAreaLengthAndResult editGetCurrentObjectAreaAndLength()
int navigationTimeOffRouteTolerance
Definition: CartoTypeFramework.h:1160
CartoTypeFollowMode followMode
Definition: CartoTypeFramework.h:1255
uint32_t memoryMapHandle
Definition: CartoTypeFramework.h:254
CartoTypeTurn * continuationTurn
Definition: CartoTypeFramework.h:1151
CartoTypeTurn * firstTurn
Definition: CartoTypeFramework.h:1136
CTResult editAddCurrentPoint()
int builtInProfileCount
Definition: CartoTypeFramework.h:955
double scaleDenominatorInView
Definition: CartoTypeFramework.h:295
CartoTypeRoute * route
Definition: CartoTypeFramework.h:1032
bool clearNearbyObjectWarnings()
CTResult loadNavigationData()
bool nightMode
Definition: CartoTypeFramework.h:800
CartoTypeGeometry * track
Definition: CartoTypeFramework.h:1418
uint32_t lastMapHandle
Definition: CartoTypeFramework.h:248
bool navigating
Definition: CartoTypeFramework.h:1017
CGImageRef memoryDataBaseMapBitmap()
double rotation
Definition: CartoTypeFramework.h:355
bool fixedLabels
Definition: CartoTypeFramework.h:328
NSString * projectionAsProj4Param
Definition: CartoTypeFramework.h:421
double labelFPS
Definition: CartoTypeFramework.h:325
CartoTypeNavigatorParam * navigatorParam
Definition: CartoTypeFramework.h:1166
int navigationDistanceOffRouteTolerance
Definition: CartoTypeFramework.h:1163
CTResult deleteRoutes()
bool perspective
Definition: CartoTypeFramework.h:313
CartoTypeViewState * viewState
Definition: CartoTypeFramework.h:415
bool draw3DBuildings
Definition: CartoTypeFramework.h:319
CartoTypePerspectiveParam * perspectiveParam
Definition: CartoTypeFramework.h:316
CTResult reverseRoutes()
NSString * turnInstructionText()
NSMutableArray< NSString * > * layerNames()
CartoTypePositionedBitmap * noticeBitmap()
bool hasNotices
Definition: CartoTypeFramework.h:176
NSString * licensee
Definition: CartoTypeFramework.h:111
int routeCount
Definition: CartoTypeFramework.h:1041
NSString * description()
bool turnInstructionsEnabled
Definition: CartoTypeFramework.h:153
CartoTypeLocationMatchParam * locationMatchParam
Definition: CartoTypeFramework.h:1175
bool navigationEnabled
Definition: CartoTypeFramework.h:915
CartoTypeColor nightModeColor
Definition: CartoTypeFramework.h:811
bool legendEnabled
Definition: CartoTypeFramework.h:135
NSString * build()
bool trafficInfoEnabled
Definition: CartoTypeFramework.h:1393
uint32_t mainMapHandle
Definition: CartoTypeFramework.h:251
NSString * dataSetName
Definition: CartoTypeFramework.h:526
NSString * expiryDate
Definition: CartoTypeFramework.h:114
double estimatedTimeToDestination
Definition: CartoTypeFramework.h:1225
NSString * copyright
Definition: CartoTypeFramework.h:120
CTResult setViewToWholeMap()
CartoTypePoint routeEnd
Definition: CartoTypeFramework.h:1023
int navigationMinimumFixDistance
Definition: CartoTypeFramework.h:1157
double labelUpAngle
Definition: CartoTypeFramework.h:331
CTResult editDeleteCurrentObject()
NSString * trackAsXmlString
Definition: CartoTypeFramework.h:1427
bool displayTrack
Definition: CartoTypeFramework.h:1412
CartoTypeRouteSegment * currentRouteSegment
Definition: CartoTypeFramework.h:1038
CGImageRef mapBitmap()
double resolutionDpi
Definition: CartoTypeFramework.h:289
CTResult reloadStyleSheet()
CartoTypeRouterType actualRouterType
Definition: CartoTypeFramework.h:841
CTResult editDeleteCurrentPoint()
CartoTypeNavigationState navigationState
Definition: CartoTypeFramework.h:1154
double distanceToDestination
Definition: CartoTypeFramework.h:1222
bool animateTransitions
Definition: CartoTypeFramework.h:322
double scaleDenominator
Definition: CartoTypeFramework.h:292
bool metricUnits
Definition: CartoTypeFramework.h:1268
NSMutableArray< CartoTypeMapObject * > * copyNearbyObjects()
CartoTypeTurn * secondTurn
Definition: CartoTypeFramework.h:1143
CartoTypePoint routeStart
Definition: CartoTypeFramework.h:1020
CartoTypeRouterType preferredRouterType
Definition: CartoTypeFramework.h:827
NSString * version()
size_t mapCount
Definition: CartoTypeFramework.h:257
Definition: CartoTypeFrameworkParam.h:22
Definition: CartoTypeBase.h:962
Definition: CartoTypeLegend.h:42
Definition: CartoTypeRouter.h:317
Definition: CartoTypeBase.h:1295
Definition: CartoTypeBase.h:900
Definition: CartoTypeBase.h:831
Definition: CartoTypeBase.h:1344
Definition: CartoTypeFramework.h:1504
Definition: CartoTypeRouter.h:639
Definition: CartoTypeRouter.h:288
Definition: CartoTypeBase.h:1156
Definition: CartoTypeRouter.h:373
Definition: CartoTypeBase.h:1144
Definition: CartoTypeRouter.h:359
Definition: CartoTypeRouter.h:533
Definition: CartoTypeRouter.h:40
Definition: CartoTypeRouter.h:491
Definition: CartoTypeRouter.h:656
Definition: CartoTypeRouter.h:245
Definition: CartoTypeBase.h:1182
Definition: CartoTypeFramework.h:48
Definition: CartoTypeFramework.h:42
Definition: CartoTypeFramework.h:36
Definition: CartoTypeBase.h:205
Definition: CartoTypeBase.h:196
Definition: CartoTypeRouter.h:622
Definition: CartoTypeRouter.h:400
Definition: CartoTypeBase.h:168
Definition: CartoTypeBase.h:146
Definition: CartoTypeBase.h:155
Definition: CartoTypeRouter.h:583