MapsIndoors iOS SDK V3
Loading...
Searching...
No Matches
MPLocationDisplayRule.h
Go to the documentation of this file.
1//
2// MPDisplayRule.h
3// MapsIndoors SDK for iOS
4//
5// Created by Daniel Nielsen on 7/30/13.
6// Copyright (c) 2017 MapsPeople A/S. All rights reserved.
7//
8
9#import <Foundation/Foundation.h>
10#import <UIKit/UIKit.h>
11#import "MPJSONModel.h"
12#import "MPLocation.h"
13
14
15@class MPLocation;
16
17
21@interface MPLocationDisplayRule : MPJSONModel
22
26@property (nonatomic, strong, nullable) NSString<Ignore>* name;
27
31@property (nonatomic, strong, nullable) NSNumber* zOn;
32
36@property (nonatomic, strong, nullable) NSNumber* zOff;
37
41@property (nonatomic, strong, nullable) NSString* iconPath;
42
46@property (nonatomic, strong, nullable) NSString* label;
47
51@property (nonatomic, strong, nullable) UIColor<Optional>* highlightOutlineColor;
52
56@property (nonatomic) UIColor<Optional>* _Nullable highlightFillColor;
57
61@property (nonatomic) NSNumber<Optional>* _Nullable highlightStrokeWidth;
62
66@property (nonatomic, strong, nullable) UIImage<Ignore>* icon;
67
71@property (assign, nonatomic) BOOL showLabel;
72
76@property (assign, nonatomic) BOOL showIcon;
77
81@property (assign, nonatomic) BOOL showOutline;
82
86@property (assign, nonatomic) BOOL visible;
87
91@property (assign, nonatomic) CGSize iconSize;
92
98@property (nonatomic, assign) NSUInteger labelMaxWidth;
99
105- (BOOL)show:(CGFloat)zLevel;
106
111- (nullable NSString*)getLabelContent:(nonnull MPLocation*)location;
112
116- (void)fetchIcon: (nonnull NSString*) basePathOrBundle;
117
124- (nullable instancetype)initWithName:(nullable NSString*) name AndZoomLevelOn: (CGFloat) zOn AndShowLabel:(BOOL) doShowLabel;
125
132- (nullable instancetype)initWithName:(nullable NSString*) name AndIcon: (nullable UIImage*) icon AndZoomLevelOn: (CGFloat) zOn;
133
141- (nullable instancetype)initWithName:(nullable NSString*) name AndIcon: (nullable UIImage*) icon AndZoomLevelOn: (CGFloat) zOn AndShowLabel:(BOOL) doShowLabel;
142
150- (nullable instancetype)initWithName:(nullable NSString*) name AndIconURL: (nullable NSString*) iconURL AndZoomLevelOn: (CGFloat) zOn AndShowLabel:(BOOL) doShowLabel;
151
152
153#pragma mark - POI overlap resolution related properties (POI Grouping, clustering)
154
160@property (nonatomic, strong, nullable) NSString<Optional>* clusteringId;
161
166@property (nonatomic) NSInteger displayRank;
167
168
169#pragma mark - Polygon support
170
174@property (nonatomic) BOOL showPolygon;
175
179@property (nonatomic, strong, nullable) NSNumber* zOnPolygon; // nullable float
180
184@property (nonatomic, strong, nullable) NSNumber* zOffPolygon; // nullable float
185
189@property (nonatomic, strong, nullable) NSNumber* polygonStrokeWidth; // nullable float
190
194@property (nonatomic, strong, nullable) UIColor* polygonStrokeColor;
195
199@property (nonatomic, strong, nullable) UIColor* polygonFillColor;
200
201#pragma mark - 2D Model support
202
203@property (nonatomic, strong, nullable, readonly) NSNumber* model2DBearing;
204@property (nonatomic, strong, nullable, readonly) NSNumber* model2DHeightMeters;
205@property (nonatomic, strong, nullable, readonly) NSString* model2DModel;
206@property (nonatomic, assign, readonly) BOOL model2DVisible;
207@property (nonatomic, strong, nullable, readonly) NSNumber* model2DWidthMeters;
208@property (nonatomic, strong, nullable, readonly) NSNumber* model2DZoomFrom;
209@property (nonatomic, strong, nullable, readonly) NSNumber* model2DZoomTo;
210
211@end
Definition MPLocationDisplayRule.h:22
NSNumber * zOnPolygon
Definition MPLocationDisplayRule.h:179
BOOL showOutline
Definition MPLocationDisplayRule.h:81
UIImage< Ignore > * icon
Definition MPLocationDisplayRule.h:66
UIColor< Optional > * highlightOutlineColor
Definition MPLocationDisplayRule.h:51
BOOL visible
Definition MPLocationDisplayRule.h:86
NSNumber * polygonStrokeWidth
Definition MPLocationDisplayRule.h:189
CGSize iconSize
Definition MPLocationDisplayRule.h:91
NSString * iconPath
Definition MPLocationDisplayRule.h:41
NSNumber * zOffPolygon
Definition MPLocationDisplayRule.h:184
NSString * model2DModel
Definition MPLocationDisplayRule.h:205
NSNumber * model2DZoomFrom
Definition MPLocationDisplayRule.h:208
NSNumber * model2DHeightMeters
Definition MPLocationDisplayRule.h:204
UIColor< Optional > *_Nullable highlightFillColor
Definition MPLocationDisplayRule.h:56
NSString * label
Definition MPLocationDisplayRule.h:46
NSUInteger labelMaxWidth
Definition MPLocationDisplayRule.h:98
NSNumber * model2DWidthMeters
Definition MPLocationDisplayRule.h:207
BOOL showPolygon
Definition MPLocationDisplayRule.h:174
NSInteger displayRank
Definition MPLocationDisplayRule.h:166
NSString< Ignore > * name
Definition MPLocationDisplayRule.h:26
BOOL showLabel
Definition MPLocationDisplayRule.h:71
UIColor * polygonFillColor
Definition MPLocationDisplayRule.h:199
NSNumber * model2DBearing
Definition MPLocationDisplayRule.h:203
NSString< Optional > * clusteringId
Definition MPLocationDisplayRule.h:160
NSNumber * model2DZoomTo
Definition MPLocationDisplayRule.h:209
BOOL showIcon
Definition MPLocationDisplayRule.h:76
NSNumber< Optional > *_Nullable highlightStrokeWidth
Definition MPLocationDisplayRule.h:61
UIColor * polygonStrokeColor
Definition MPLocationDisplayRule.h:194
BOOL model2DVisible
Definition MPLocationDisplayRule.h:206
NSNumber * zOn
Definition MPLocationDisplayRule.h:31
NSNumber * zOff
Definition MPLocationDisplayRule.h:36
Definition MPLocation.h:38