Loading...
Searching...
No Matches
NCLocationWindow.h
Go to the documentation of this file.
1#import "NCAnimationType.h"
2#import "NCCamera.h"
3#import "NCCameraCallback.h"
4#import "NCDebugFlag.h"
5#import "NCExport.h"
6#import "NCPoint.h"
7#import <Foundation/Foundation.h>
8#import <UIKit/UIKit.h>
11@class NCIconMapObject;
14@protocol NCCameraListener;
15@protocol NCInputListener;
16@protocol NCPickListener;
17
18
32DEFAULT_EXPORT_ATTRIBUTE
33@interface NCLocationWindow : NSObject
34
41- (void)setSublocationId:(int32_t)id;
42
50- (nonnull NCPoint *)screenPositionToMeters:(CGPoint)point;
51
60- (CGPoint)metersToScreenPosition:(nonnull NCPoint *)point
61 clipToViewport:(BOOL)clipToViewport;
62
70
78- (BOOL)removeCircleMapObject:(nullable NCCircleMapObject *)circleMapObject;
79
87
95- (BOOL)removeIconMapObject:(nullable NCIconMapObject *)iconMapObject;
96
104
112- (BOOL)removePolygonMapObject:(nullable NCPolygonMapObject *)polygonMapObject;
113
121
129- (BOOL)removePolylineMapObject:(nullable NCPolylineMapObject *)polylineMapObject;
130
138
146- (BOOL)removeDottedPolylineMapObject:(nullable NCDottedPolylineMapObject *)dottedPolylineMapObject;
147
154
162- (void)pickMapObjectAt:(CGPoint)point;
163
171- (void)pickMapFeatureAt:(CGPoint)point;
172
180- (void)addPickListener:(nullable id<NCPickListener>)listener;
181
188- (void)removePickListener:(nullable id<NCPickListener>)listener;
189
197- (void)addInputListener:(nullable id<NCInputListener>)listener;
198
205- (void)removeInputListener:(nullable id<NCInputListener>)listener;
206
214- (void)addCameraListener:(nullable id<NCCameraListener>)listener;
215
222- (void)removeCameraListener:(nullable id<NCCameraListener>)listener;
223
232- (void)flyTo:(nonnull NCCamera *)camera
233 duration:(int32_t)duration
234 callback:(nullable NCCameraCallback)callback;
235
243- (BOOL)selectMapFeature:(nonnull NSString *)featureId;
244
252- (BOOL)deselectMapFeature:(nonnull NSString *)featureId;
253
260
269- (void)applyFilter:(nonnull NSString *)filter
270 layer:(nonnull NSString *)layer;
271
279+ (void)setDebugFlag:(NCDebugFlag)flag
280 on:(BOOL)on;
281
289+ (BOOL)getDebugFlag:(NCDebugFlag)flag;
290
300- (void)moveTo:(nonnull NCCamera *)camera
301 duration:(int32_t)duration
302 animationType:(NCAnimationType)animationType
303 callback:(nullable NCCameraCallback)callback;
304
311@property (nonatomic) float zoomFactor;
312
318@property (nonatomic) float minZoomFactor;
319
325@property (nonatomic) float maxZoomFactor;
326
333@property (nonatomic) BOOL stickToBorder;
334
341@property (nonatomic, nonnull) NCCamera * camera;
342
348@property (nonatomic) BOOL rotateGestureEnabled;
349
355@property (nonatomic) BOOL tiltGesturesEnabled;
356
362@property (nonatomic) BOOL scrollGesturesEnabled;
363
369@property (nonatomic) BOOL zoomGesturesEnabled;
370
377@property (nonatomic) float pickRadius;
378
384@property (nonatomic, nonnull, readonly) NSArray<NSString *> * selectedMapFeatures;
385
386@end