Loading...
Searching...
No Matches
NCLocationWindow.h
Go to the documentation of this file.
1#import "NCAnimationType.h"
2#import "NCBoundingBox.h"
3#import "NCCamera.h"
4#import "NCCameraCallback.h"
5#import "NCDebugFlag.h"
6#import "NCExport.h"
7#import "NCPoint.h"
8#import <Foundation/Foundation.h>
9#import <UIKit/UIKit.h>
12@class NCIconMapObject;
15@protocol NCCameraListener;
16@protocol NCInputListener;
17@protocol NCPickListener;
18@protocol NCSublocationChangeListener;
19
20
34DEFAULT_EXPORT_ATTRIBUTE
35@interface NCLocationWindow : NSObject
36
51- (void)setSublocationId:(int32_t)id;
52
66- (nullable NSNumber *)getSublocationId;
67
82- (nonnull NCCamera *)getEnclosingCamera:(nonnull NCBoundingBox *)boundingBox;
83
99- (nonnull NCPoint *)screenPositionToMeters:(CGPoint)point;
100
117- (CGPoint)metersToScreenPosition:(nonnull NCPoint *)point
118 clipToViewport:(BOOL)clipToViewport;
119
135
151- (BOOL)removeCircleMapObject:(nullable NCCircleMapObject *)circleMapObject;
152
168
184- (BOOL)removeIconMapObject:(nullable NCIconMapObject *)iconMapObject;
185
201
217- (BOOL)removePolygonMapObject:(nullable NCPolygonMapObject *)polygonMapObject;
218
234
250- (BOOL)removePolylineMapObject:(nullable NCPolylineMapObject *)polylineMapObject;
251
267
283- (BOOL)removeDottedPolylineMapObject:(nullable NCDottedPolylineMapObject *)dottedPolylineMapObject;
284
299
315- (void)pickMapObjectAt:(CGPoint)point;
316
332- (void)pickMapFeatureAt:(CGPoint)point;
333
349- (void)addPickListener:(nullable id<NCPickListener>)listener;
350
365- (void)removePickListener:(nullable id<NCPickListener>)listener;
366
382- (void)addInputListener:(nullable id<NCInputListener>)listener;
383
398- (void)removeInputListener:(nullable id<NCInputListener>)listener;
399
415- (void)addCameraListener:(nullable id<NCCameraListener>)listener;
416
431- (void)removeCameraListener:(nullable id<NCCameraListener>)listener;
432
447- (void)addSublocationChangeListener:(nullable id<NCSublocationChangeListener>)listener;
448
463- (void)removeSublocationChangeListener:(nullable id<NCSublocationChangeListener>)listener;
464
481- (void)flyTo:(nonnull NCCamera *)camera
482 duration:(int32_t)duration
483 callback:(nullable NCCameraCallback)callback;
484
502- (void)moveTo:(nonnull NCCamera *)camera
503 duration:(int32_t)duration
504 animationType:(NCAnimationType)animationType
505 callback:(nullable NCCameraCallback)callback;
506
522- (BOOL)selectMapFeature:(nonnull NSString *)featureId;
523
539- (BOOL)deselectMapFeature:(nonnull NSString *)featureId;
540
555
563- (void)applyFilter:(nonnull NSString *)filter
564 layer:(nonnull NSString *)layer;
565
573+ (void)setDebugFlag:(NCDebugFlag)flag
574 on:(BOOL)on;
575
583+ (BOOL)getDebugFlag:(NCDebugFlag)flag;
584
599@property (nonatomic) float zoomFactor;
600
614@property (nonatomic) float minZoomFactor;
615
629@property (nonatomic) float maxZoomFactor;
630
645@property (nonatomic) BOOL stickToBorder;
646
661@property (nonatomic, nonnull) NCCamera * camera;
662
676@property (nonatomic) BOOL rotateGestureEnabled;
677
691@property (nonatomic) BOOL tiltGesturesEnabled;
692
706@property (nonatomic) BOOL scrollGesturesEnabled;
707
721@property (nonatomic) BOOL zoomGesturesEnabled;
722
737@property (nonatomic) float pickRadius;
738
752@property (nonatomic, nonnull, readonly) NSArray<NSString *> * selectedMapFeatures;
753
754@end