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>
14@class NCIconMapObject;
15@class NCModelMapObject;
18@protocol NCBuildingListener;
19@protocol NCCameraListener;
20@protocol NCInputListener;
21@protocol NCPickListener;
22@protocol NCSublocationChangeListener;
23
24
38DEFAULT_EXPORT_ATTRIBUTE
39@interface NCLocationWindow : NSObject
40
55- (void)setSublocationId:(int32_t)id;
56
70- (nullable NSNumber *)getSublocationId;
71
86- (nonnull NCCamera *)getEnclosingCamera:(nonnull NCBoundingBox *)boundingBox;
87
103- (nonnull NCPoint *)screenPositionToMeters:(CGPoint)point;
104
121- (CGPoint)metersToScreenPosition:(nonnull NCPoint *)point
122 clipToViewport:(BOOL)clipToViewport;
123
139
155- (BOOL)removeCircleMapObject:(nullable NCCircleMapObject *)circleMapObject;
156
172
188- (BOOL)removeIconMapObject:(nullable NCIconMapObject *)iconMapObject;
189
205
221- (BOOL)removeClusterMapObjectController:(nullable NCClusterMapObjectController *)controller;
222
238
254- (BOOL)removePolygonMapObject:(nullable NCPolygonMapObject *)polygonMapObject;
255
271
287- (BOOL)removePolylineMapObject:(nullable NCPolylineMapObject *)polylineMapObject;
288
304
320- (BOOL)removeDottedPolylineMapObject:(nullable NCDottedPolylineMapObject *)dottedPolylineMapObject;
321
337
353- (BOOL)removeModelMapObject:(nullable NCModelMapObject *)modelMapObject;
354
369
385- (void)pickMapObjectAt:(CGPoint)point;
386
402- (void)pickMapFeatureAt:(CGPoint)point;
403
419- (void)addPickListener:(nullable id<NCPickListener>)listener;
420
435- (void)removePickListener:(nullable id<NCPickListener>)listener;
436
452- (void)addInputListener:(nullable id<NCInputListener>)listener;
453
468- (void)removeInputListener:(nullable id<NCInputListener>)listener;
469
485- (void)addCameraListener:(nullable id<NCCameraListener>)listener;
486
501- (void)removeCameraListener:(nullable id<NCCameraListener>)listener;
502
517- (void)addSublocationChangeListener:(nullable id<NCSublocationChangeListener>)listener;
518
533- (void)removeSublocationChangeListener:(nullable id<NCSublocationChangeListener>)listener;
534
549- (void)addBuildingListener:(nullable id<NCBuildingListener>)listener;
550
565- (void)removeBuildingListener:(nullable id<NCBuildingListener>)listener;
566
583- (void)flyTo:(nonnull NCCamera *)camera
584 duration:(int32_t)duration
585 callback:(nullable NCCameraCallback)callback;
586
604- (void)moveTo:(nonnull NCCamera *)camera
605 duration:(int32_t)duration
606 animationType:(NCAnimationType)animationType
607 callback:(nullable NCCameraCallback)callback;
608
624- (BOOL)selectMapFeature:(nonnull NSString *)featureId;
625
641- (BOOL)deselectMapFeature:(nonnull NSString *)featureId;
642
657
673- (void)applyLayerFilter:(nonnull NSString *)layer
674 conditions:(nonnull NSArray<NCMapFilterCondition *> *)conditions;
675
691+ (void)setDebugFlag:(NCDebugFlag)flag
692 on:(BOOL)on;
693
709+ (BOOL)getDebugFlag:(NCDebugFlag)flag;
710
725@property (nonatomic) float zoomFactor;
726
740@property (nonatomic) float minZoomFactor;
741
755@property (nonatomic) float maxZoomFactor;
756
771@property (nonatomic) BOOL stickToBorder;
772
787@property (nonatomic, nonnull) NCCamera * camera;
788
802@property (nonatomic) BOOL rotateGestureEnabled;
803
817@property (nonatomic) BOOL tiltGesturesEnabled;
818
832@property (nonatomic) BOOL scrollGesturesEnabled;
833
847@property (nonatomic) BOOL zoomGesturesEnabled;
848
863@property (nonatomic) float pickRadius;
864
878@property (nonatomic, nonnull, readonly) NSArray<NSString *> * selectedMapFeatures;
879
880@end