NMSMapView.h
1 //
2 // NMSMapView.h
3 // NavionicsMobileSDK
4 //
5 // Copyright © 2016 Navionics. All rights reserved.
6 //
7 
8 #import <UIKit/UIKit.h>
9 #import <CoreLocation/CoreLocation.h>
10 #import "NMSEnums.h"
11 
12 @class NMSCameraPosition;
13 @class NMSMapSettings;
14 @class NMSMapView;
15 
16 @protocol NMSMapViewDelegate <NSObject>
17 
18 - (void)mapView:(NMSMapView *)mapView didChangeCameraPosition:(NMSCameraPosition *)position;
19 
20 @end
21 
23 @interface NMSMapView : UIView
24 
30 + (NMSMapView*)mapWithFrame:(CGRect)frame;
31 
38 - (BOOL)moveToCameraPosition:(NMSCameraPosition*)position animated:(BOOL)animate;
39 
46 - (BOOL)moveToLocation:(CLLocationCoordinate2D)location animated:(BOOL)animate;
47 
54 - (BOOL)moveToZoom:(float)zoom animated:(BOOL)animate;
55 
63 - (BOOL)moveToLocation:(CLLocationCoordinate2D)location andZoom:(float)zoom animated:(BOOL)animate;
64 
70 - (BOOL)zoomInAnimated:(BOOL)animate;
71 
77 - (BOOL)zoomOutAnimated:(BOOL)animate;
78 
79 
85 - (CLLocationCoordinate2D)coordinateForPoint:(CGPoint)point;
86 
91 - (BOOL)activate;
92 
94 - (void)clearOverlays;
95 
97 @property(nonatomic, copy)NMSMapSettings* settings;
99 @property(nonatomic, readonly)NMSCameraPosition* camera;
101 @property(nonatomic, assign)NMSGPSMode gpsMode;
103 @property(nonatomic, assign)id<NMSMapViewDelegate> delegate;
104 
105 @end
id< NMSMapViewDelegate > delegate
NMSMapView delegate.
Definition: NMSMapView.h:103
Dynamic settings of the map.
NMSCameraPosition * camera
The current camera position.
Definition: NMSMapView.h:99
View that contains the map. Only one map view can be active at any given time.
Definition: NMSMapView.h:23
NMSGPSMode gpsMode
Set the GPS Mode. GPS Services must be enabled.
Definition: NMSMapView.h:101
BOOL activate()
Activate the map. Only one map view can be active at any given time.
NMSMapSettings * settings
Settings to modify the map appearance.
Definition: NMSMapView.h:97
void clearOverlays()
Remove all the overlay linked to the map.
Camera position parameters.