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"
8#import "NCPoint.h"
9#import <Foundation/Foundation.h>
10#import <UIKit/UIKit.h>
13@class NCIconMapObject;
16@protocol NCBuildingListener;
17@protocol NCCameraListener;
18@protocol NCInputListener;
19@protocol NCPickListener;
20@protocol NCSublocationChangeListener;
21
22
36DEFAULT_EXPORT_ATTRIBUTE
37@interface NCLocationWindow : NSObject
38
53- (void)setSublocationId:(int32_t)id;
54
68- (nullable NSNumber *)getSublocationId;
69
84- (nonnull NCCamera *)getEnclosingCamera:(nonnull NCBoundingBox *)boundingBox;
85
101- (nonnull NCPoint *)screenPositionToMeters:(CGPoint)point;
102
119- (CGPoint)metersToScreenPosition:(nonnull NCPoint *)point
120 clipToViewport:(BOOL)clipToViewport;
121
137
153- (BOOL)removeCircleMapObject:(nullable NCCircleMapObject *)circleMapObject;
154
170
186- (BOOL)removeIconMapObject:(nullable NCIconMapObject *)iconMapObject;
187
203
219- (BOOL)removePolygonMapObject:(nullable NCPolygonMapObject *)polygonMapObject;
220
236
252- (BOOL)removePolylineMapObject:(nullable NCPolylineMapObject *)polylineMapObject;
253
269
285- (BOOL)removeDottedPolylineMapObject:(nullable NCDottedPolylineMapObject *)dottedPolylineMapObject;
286
301
317- (void)pickMapObjectAt:(CGPoint)point;
318
334- (void)pickMapFeatureAt:(CGPoint)point;
335
351- (void)addPickListener:(nullable id<NCPickListener>)listener;
352
367- (void)removePickListener:(nullable id<NCPickListener>)listener;
368
384- (void)addInputListener:(nullable id<NCInputListener>)listener;
385
400- (void)removeInputListener:(nullable id<NCInputListener>)listener;
401
417- (void)addCameraListener:(nullable id<NCCameraListener>)listener;
418
433- (void)removeCameraListener:(nullable id<NCCameraListener>)listener;
434
449- (void)addSublocationChangeListener:(nullable id<NCSublocationChangeListener>)listener;
450
465- (void)removeSublocationChangeListener:(nullable id<NCSublocationChangeListener>)listener;
466
481- (void)addBuildingListener:(nullable id<NCBuildingListener>)listener;
482
497- (void)removeBuildingListener:(nullable id<NCBuildingListener>)listener;
498
515- (void)flyTo:(nonnull NCCamera *)camera
516 duration:(int32_t)duration
517 callback:(nullable NCCameraCallback)callback;
518
536- (void)moveTo:(nonnull NCCamera *)camera
537 duration:(int32_t)duration
538 animationType:(NCAnimationType)animationType
539 callback:(nullable NCCameraCallback)callback;
540
556- (BOOL)selectMapFeature:(nonnull NSString *)featureId;
557
573- (BOOL)deselectMapFeature:(nonnull NSString *)featureId;
574
589
605- (void)applyLayerFilter:(nonnull NSString *)layer
606 conditions:(nonnull NSArray<NCMapFilterCondition *> *)conditions;
607
623+ (void)setDebugFlag:(NCDebugFlag)flag
624 on:(BOOL)on;
625
641+ (BOOL)getDebugFlag:(NCDebugFlag)flag;
642
657@property (nonatomic) float zoomFactor;
658
672@property (nonatomic) float minZoomFactor;
673
687@property (nonatomic) float maxZoomFactor;
688
703@property (nonatomic) BOOL stickToBorder;
704
719@property (nonatomic, nonnull) NCCamera * camera;
720
734@property (nonatomic) BOOL rotateGestureEnabled;
735
749@property (nonatomic) BOOL tiltGesturesEnabled;
750
764@property (nonatomic) BOOL scrollGesturesEnabled;
765
779@property (nonatomic) BOOL zoomGesturesEnabled;
780
795@property (nonatomic) float pickRadius;
796
810@property (nonatomic, nonnull, readonly) NSArray<NSString *> * selectedMapFeatures;
811
812@end