View that contains the map. Only one map view can be active at any given time. More...

#import <NMSMapView.h>

Inheritance diagram for NMSMapView:

Instance Methods

(BOOL) - moveToCameraPosition:animated:
 Move the camera of this map to position. Animated if animate flag is enabled. More...
 
(BOOL) - moveToLocation:animated:
 As moveToCameraPosition:, but changes only the location of the camera. More...
 
(BOOL) - moveToZoom:animated:
 As moveToCameraPosition:, but changes only the zoom of the camera. More...
 
(BOOL) - moveToLocation:andZoom:animated:
 As moveToCameraPosition:, but changes only the location and the zoom of the camera. More...
 
(BOOL) - zoomInAnimated:
 Zoom in the camera. Animated if animate flag is enabled. More...
 
(BOOL) - zoomOutAnimated:
 Zoom out the camera. Animated if animate flag is enabled. More...
 
(CLLocationCoordinate2D) - coordinateForPoint:
 convert a map view point in the corresponding coordinate More...
 
(BOOL) - activate
 Activate the map. Only one map view can be active at any given time. More...
 
(void) - clearOverlays
 Remove all the overlay linked to the map. More...
 

Class Methods

(NMSMapView *) + mapWithFrame:
 Builds and returns a NMSMapView. More...
 

Properties

NMSMapSettingssettings
 Settings to modify the map appearance. More...
 
NMSCameraPositioncamera
 The current camera position. More...
 
NMSGPSMode gpsMode
 Set the GPS Mode. GPS Services must be enabled. More...
 
id< NMSMapViewDelegate > delegate
 NMSMapView delegate. More...
 

Detailed Description

View that contains the map. Only one map view can be active at any given time.

Definition at line 23 of file NMSMapView.h.

Method Documentation

◆ activate()

- (BOOL) activate

Activate the map. Only one map view can be active at any given time.

Returns
YES if it is possible to activate the map

◆ clearOverlays()

- (void) clearOverlays

Remove all the overlay linked to the map.

◆ coordinateForPoint:()

- (CLLocationCoordinate2D) coordinateForPoint: (CGPoint)  point

convert a map view point in the corresponding coordinate

Parameters
pointthe view point
Returns
the coordinate if the view point is within the map view rect, otherwise

◆ mapWithFrame:()

+ (NMSMapView*) mapWithFrame: (CGRect)  frame

Builds and returns a NMSMapView.

Parameters
frameThe map view frame
Returns
the NMSMapView object

◆ moveToCameraPosition:animated:()

- (BOOL) moveToCameraPosition: (NMSCameraPosition *)  position
animated: (BOOL)  animate 

Move the camera of this map to position. Animated if animate flag is enabled.

Parameters
positionthe camera position
animateanimation flag
Returns
YES if it is possible to move the map

◆ moveToLocation:andZoom:animated:()

- (BOOL) moveToLocation: (CLLocationCoordinate2D)  location
andZoom: (float)  zoom
animated: (BOOL)  animate 

As moveToCameraPosition:, but changes only the location and the zoom of the camera.

Parameters
locationthe target position
zoomthe target zoom level
animateanimation flag
Returns
YES if it is possible to move the map

◆ moveToLocation:animated:()

- (BOOL) moveToLocation: (CLLocationCoordinate2D)  location
animated: (BOOL)  animate 

As moveToCameraPosition:, but changes only the location of the camera.

Parameters
locationthe target position
animateanimation flag
Returns
YES if it is possible to move the map

◆ moveToZoom:animated:()

- (BOOL) moveToZoom: (float)  zoom
animated: (BOOL)  animate 

As moveToCameraPosition:, but changes only the zoom of the camera.

Parameters
zoomthe target zoom level
animateanimation flag
Returns
YES if it is possible to move the map

◆ zoomInAnimated:()

- (BOOL) zoomInAnimated: (BOOL)  animate

Zoom in the camera. Animated if animate flag is enabled.

Parameters
animateanimation flag
Returns
YES if it is possible to move the map

◆ zoomOutAnimated:()

- (BOOL) zoomOutAnimated: (BOOL)  animate

Zoom out the camera. Animated if animate flag is enabled.

Parameters
animateanimation flag
Returns
YES if it is possible to move the map

Property Documentation

◆ camera

- (NMSCameraPosition*) camera
readnonatomicassign

The current camera position.

Definition at line 99 of file NMSMapView.h.

◆ delegate

- (id<NMSMapViewDelegate>) delegate
readwritenonatomicassign

NMSMapView delegate.

Definition at line 103 of file NMSMapView.h.

◆ gpsMode

- (NMSGPSMode) gpsMode
readwritenonatomicassign

Set the GPS Mode. GPS Services must be enabled.

Definition at line 101 of file NMSMapView.h.

◆ settings

- (NMSMapSettings*) settings
readwritenonatomiccopy

Settings to modify the map appearance.

Definition at line 97 of file NMSMapView.h.


The documentation for this class was generated from the following file:
  • /Users/jenkins/workspace/mobilesdk-ios/iOS/Deployment/NavionicsMobileSDK.framework/Headers/NMSMapView.h