CartoType iOS API 9.0-11-g64131709d
for development in Swift and Objective C for iOS and Mac OS
Loading...
Searching...
No Matches
CartoTypeLegend.h
Go to the documentation of this file.
1/*
2CartoTypeLegend.h
3Copyright 2015-2024 CartoType Ltd.
4See www.cartotype.com for more information.
5*/
6
7#ifndef CartoTypeLegend_h__
8#define CartoTypeLegend_h__
9
10#import <CartoType/CartoTypeBase.h>
11
16
18typedef NS_OPTIONS(uint32_t,CtLegendStyle)
19 {
21 CtLegendStyleFlagTitle = 1,
23 CtLegendStyleFlagScaleInTitle = 2,
25 CtLegendStyleFlagMapObjects = 4,
27 CtLegendStyleFlagScaleBar = 8,
29 CtLegendStyleStandard = CtLegendStyleFlagTitle | CtLegendStyleFlagScaleInTitle | CtLegendStyleFlagMapObjects | CtLegendStyleFlagScaleBar,
34 CtLegendStyleTurn = 16,
39 CtLegendStyleScale = 32,
41 CtLegendStyleEmpty = 0
42 };
43
44typedef CtLegendStyle CartoTypeLegendStyle;
45
46@class CtFramework; // forward declaration
47
56@interface CtLegend: NSObject
57
59-(id)initWithFramework:(CtFramework*)aFramework;
60
62-(id)initWithFramework:(CtFramework*)aFramework style:(CtLegendStyle)aStyle;
63
65-(void)dealloc;
66
68-(void)clear;
69
74-(void)addMapObjectLine:(CtMapObjectType)aType layer:(NSString*)aLayer freatureInfo:(CtFeatureInfo*)aFeatureInfo stringAttrib:(NSString*)aStringAttrib label:(NSString*)aLabel;
75
77-(void)addTextLine:(NSString*)aText;
78
83
85-(void)setMainStyleSheet:(NSString*)aData;
86
94-(void)setExtraStyleSheet:(NSString*)aData;
95
97-(void)setBackgroundColor:(CtColor)aColor;
98
100-(void)setBorderColor:(CtColor)aColor strokeWidth:(double)aStrokeWidth radius:(double)aRadius unit:(NSString*)aUnit;
101
103-(void)setMarginWidth:(double)aMarginWidth unit:(NSString*)aUnit;
104
106-(void)setMinLineHeight:(double)aLineHeight unit:(NSString*)aUnit;
107
109-(void)setLabelWrapWidth:(double)aWrapWidth unit:(NSString*)aUnit;
110
112-(void)setFontFamily:(NSString*)aFontFamily;
113
115-(void)setFontStyle:(uint32_t)aStyle;
116
118-(void)setFontSize:(double)aFontSize unit:(NSString*)aUnit;
119
121-(void)setTextColor:(CtColor)aTextColor;
122
124-(void)setDiagramColor:(CtColor)aDiagramColor;
125
127-(void)setAlignment:(CtAlign)aAlignment;
128
130-(void)setPolygonRotation:(double)aDegrees;
131
134
139-(void)setTurnInstruction:(NSString*)aText;
140
145-(NSString*)turnInstruction;
146
148-(void*)legend;
149
150@end
152@compatibility_alias CartoTypeLegend CtLegend;
153
154#endif
CtLegendStyle CartoTypeLegendStyle
Definition CartoTypeLegend.h:44
typedef NS_OPTIONS(uint32_t, CtLegendStyle)
Definition CartoTypeLegend.h:18
Definition CartoTypeBase.h:794
Definition CartoTypeFramework.h:71
Definition CartoTypeLegend.h:57
void addScaleLine()
bool hasTurnInstruction()
void clear()
NSString * turnInstruction()
void * legend()
void dealloc()