View that contains the map. Only one map view can be active at any given time. More...
#import <NMSMapView.h>
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 | |
NMSMapSettings * | settings |
Settings to modify the map appearance. More... | |
NMSCameraPosition * | camera |
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
-
point the view point
- Returns
- the coordinate if the view point is within the map view rect, otherwise
◆ mapWithFrame:()
+ (NMSMapView*) mapWithFrame: | (CGRect) | frame |
◆ moveToCameraPosition:animated:()
- (BOOL) moveToCameraPosition: | (NMSCameraPosition *) | position | |
animated: | (BOOL) | animate | |
Move the camera of this map to position. Animated if animate flag is enabled.
- Parameters
-
position the camera position animate animation 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
-
location the target position zoom the target zoom level animate animation 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
-
location the target position animate animation 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
-
zoom the target zoom level animate animation 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
-
animate animation 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
-
animate animation flag
- Returns
- YES if it is possible to move the map
Property Documentation
◆ camera
|
readnonatomicassign |
The current camera position.
Definition at line 99 of file NMSMapView.h.
◆ delegate
|
readwritenonatomicassign |
NMSMapView delegate.
Definition at line 103 of file NMSMapView.h.
◆ gpsMode
|
readwritenonatomicassign |
Set the GPS Mode. GPS Services must be enabled.
Definition at line 101 of file NMSMapView.h.
◆ 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