Loading...
Searching...
No Matches
NCLocationWindow.h
Go to the documentation of this file.
1#import "NCAnimationType.h"
3#import "NCBoundingBox.h"
4#import "NCCamera.h"
5#import "NCCameraCallback.h"
6#import "NCDebugFlag.h"
7#import "NCExport.h"
8#import "NCGlobalPoint.h"
10#import "NCMapTheme.h"
11#import "NCOperatingMode.h"
12#import "NCScreenRect.h"
13#import "NCTileProvider.h"
14#import "NCVisibleRegion.h"
15#import <Foundation/Foundation.h>
16#import <UIKit/UIKit.h>
20@class NCGeoJsonImport;
21@class NCIconMapObject;
22@class NCModelMapObject;
23@class NCPointBatch;
26@protocol NCBuildingListener;
27@protocol NCCameraListener;
28@protocol NCInputListener;
29@protocol NCPickListener;
30@protocol NCSublocationChangeListener;
31
32
46DEFAULT_EXPORT_ATTRIBUTE
47@interface NCLocationWindow : NSObject
48
63- (void)setSublocationId:(int32_t)id;
64
78- (nullable NSNumber *)getSublocationId;
79
94- (void)setOperatingMode:(NCOperatingMode)mode;
95
110
126- (nonnull NSString *)getAttribution;
127
144- (nonnull NCCamera *)getEnclosingCamera:(nonnull NCBoundingBox *)boundingBox;
145
162- (nonnull NCCamera *)getEnclosingCameraWithFocus:(nonnull NCBoundingBox *)boundingBox
163 focusRect:(nullable NCScreenRect *)focusRect
164 azimuth:(nullable NSNumber *)azimuth
165 tilt:(nullable NSNumber *)tilt;
166
182- (nonnull NCGlobalPoint *)screenPositionToGlobal:(CGPoint)point;
183
200- (CGPoint)globalToScreenPosition:(nonnull NCGlobalPoint *)point
201 clipToViewport:(BOOL)clipToViewport;
202
218
234- (BOOL)removeCircleMapObject:(nullable NCCircleMapObject *)circleMapObject;
235
251
267- (BOOL)removeIconMapObject:(nullable NCIconMapObject *)iconMapObject;
268
284
300- (BOOL)removeClusterMapObjectController:(nullable NCClusterMapObjectController *)controller;
301
317
333- (BOOL)removePolygonMapObject:(nullable NCPolygonMapObject *)polygonMapObject;
334
350
370- (nullable NCGeoJsonImport *)addGeoJson:(nonnull NSString *)geoJson
371 sublocationId:(nullable NSNumber *)sublocationId;
372
388
393- (BOOL)removePointBatch:(nullable NCPointBatch *)pointBatch;
394
410- (BOOL)removePolylineMapObject:(nullable NCPolylineMapObject *)polylineMapObject;
411
427
443- (BOOL)removeDottedPolylineMapObject:(nullable NCDottedPolylineMapObject *)dottedPolylineMapObject;
444
460
476- (BOOL)removeModelMapObject:(nullable NCModelMapObject *)modelMapObject;
477
492
508- (void)pickMapObjectAt:(CGPoint)point;
509
525- (void)pickMapFeatureAt:(CGPoint)point;
526
542- (void)addPickListener:(nullable id<NCPickListener>)listener;
543
558- (void)removePickListener:(nullable id<NCPickListener>)listener;
559
575- (void)addInputListener:(nullable id<NCInputListener>)listener;
576
591- (void)removeInputListener:(nullable id<NCInputListener>)listener;
592
608- (void)addCameraListener:(nullable id<NCCameraListener>)listener;
609
624- (void)removeCameraListener:(nullable id<NCCameraListener>)listener;
625
640- (void)addSublocationChangeListener:(nullable id<NCSublocationChangeListener>)listener;
641
656- (void)removeSublocationChangeListener:(nullable id<NCSublocationChangeListener>)listener;
657
672- (void)addBuildingListener:(nullable id<NCBuildingListener>)listener;
673
688- (void)removeBuildingListener:(nullable id<NCBuildingListener>)listener;
689
706- (void)flyTo:(nonnull NCCamera *)camera
707 duration:(int32_t)duration
708 callback:(nullable NCCameraCallback)callback;
709
727- (void)moveTo:(nonnull NCCamera *)camera
728 duration:(int32_t)duration
729 animationType:(NCAnimationType)animationType
730 callback:(nullable NCCameraCallback)callback;
731
747- (BOOL)selectMapFeature:(nonnull NSString *)featureId;
748
764- (BOOL)deselectMapFeature:(nonnull NSString *)featureId;
765
780
796- (void)applyLayerFilter:(nonnull NSString *)layer
797 conditions:(nonnull NSArray<NCMapFilterCondition *> *)conditions;
798
814+ (void)setDebugFlag:(NCDebugFlag)flag
815 on:(BOOL)on;
816
832+ (BOOL)getDebugFlag:(NCDebugFlag)flag;
833
848@property (nonatomic) NCMapTheme mapTheme;
849
869@property (nonatomic, nullable) NCTileProvider * tileProvider;
870
885@property (nonatomic, nonnull) NCAttributionAlignment * attributionAlignment;
886
901@property (nonatomic) float zoomFactor;
902
916@property (nonatomic) float minZoomFactor;
917
931@property (nonatomic) float maxZoomFactor;
932
947@property (nonatomic) BOOL stickToBorder;
948
963@property (nonatomic, nonnull) NCCamera * camera;
964
981@property (nonatomic, nullable) NCScreenRect * focusRect;
982
997@property (nonatomic, nonnull, readonly) NCVisibleRegion * focusRegion;
998
1015@property (nonatomic, nonnull, readonly) NCVisibleRegion * visibleRegion;
1016
1030@property (nonatomic) BOOL rotateGestureEnabled;
1031
1045@property (nonatomic) BOOL tiltGesturesEnabled;
1046
1060@property (nonatomic) BOOL scrollGesturesEnabled;
1061
1075@property (nonatomic) BOOL zoomGesturesEnabled;
1076
1092@property (nonatomic) float pickRadius;
1093
1107@property (nonatomic, nonnull, readonly) NSArray<NSString *> * selectedMapFeatures;
1108
1115@property (nonatomic, readonly, getter=isValid) BOOL valid;
1116
1117@end