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)removeFlatIconMapObject:(nullable NCFlatIconMapObject *)flatIconMapObject;
113
121
129- (BOOL)removePolygonMapObject:(nullable NCPolygonMapObject *)polygonMapObject;
130
138
146- (BOOL)removePolylineMapObject:(nullable NCPolylineMapObject *)polylineMapObject;
147
154
162- (void)pickMapObjectAt:(CGPoint)point;
163
171- (void)pickMapFeatureAt:(CGPoint)point;
172
181- (void)addPickListener:(nullable id<NCPickListener>)listener;
182
189- (void)removePickListener:(nullable id<NCPickListener>)listener;
190
199- (void)addInputListener:(nullable id<NCInputListener>)listener;
200
207- (void)removeInputListener:(nullable id<NCInputListener>)listener;
208
217- (void)addCameraListener:(nullable id<NCCameraListener>)listener;
218
225- (void)removeCameraListener:(nullable id<NCCameraListener>)listener;
226
236- (void)flyTo:(nonnull NCCamera *)camera
237 duration:(int32_t)duration
238 callback:(nullable NCCameraCallback)callback;
239
249- (BOOL)selectMapFeature:(nonnull NSString *)featureId;
250
260- (BOOL)deselectMapFeature:(nonnull NSString *)featureId;
261
268
272- (void)applyFilter:(nonnull NSString *)filter
273 layer:(nonnull NSString *)layer;
274
275+ (void)setDebugFlag:(NCDebugFlag)flag
276 on:(BOOL)on;
277
278+ (BOOL)getDebugFlag:(NCDebugFlag)flag;
279
293- (void)moveTo:(nonnull NCCamera *)camera
294 duration:(int32_t)duration
295 animationType:(NCAnimationType)animationType
296 callback:(nullable NCCameraCallback)callback;
297
304@property (nonatomic) float zoomFactor;
305
311@property (nonatomic) float minZoomFactor;
312
318@property (nonatomic) float maxZoomFactor;
319
326@property (nonatomic) BOOL stickToBorder;
327
333@property (nonatomic, nonnull) NCCamera * camera;
334
340@property (nonatomic) BOOL rotateGestureEnabled;
341
347@property (nonatomic) BOOL tiltGesturesEnabled;
348
354@property (nonatomic) BOOL scrollGesturesEnabled;
355
361@property (nonatomic) BOOL zoomGesturesEnabled;
362
368@property (nonatomic) float pickRadius;
369
375@property (nonatomic, nonnull, readonly) NSArray<NSString *> * selectedMapFeatures;
376
377@end