Navmii SDK  2.2.0
Write yourself a navigation system in iOS
Instance Methods | Class Methods | Properties | List of all members
NMGeoMarker Class Reference

Inherits NMGeoObject.

Instance Methods

(instancetype) - initWithCoordinates:
 
(instancetype) - initWithCoordinates:imagePath:imageScale:anchorPoint:
 
(instancetype) - initWithCoordinates:image:anchorPoint:
 
(instancetype) - NS_UNAVAILABLE
 
(void) - setImagePath:imageScale:
 

Class Methods

(instancetype) + geoMarkerWithCoordinates:
 
(instancetype) + geoMarkerWithCoordinates:imagePath:imageScale:anchorPoint:
 
(instancetype) + geoMarkerWithCoordinates:image:anchorPoint:
 
(instancetype) + NS_UNAVAILABLE
 

Properties

NMMapCoordinatescoordinates
 
NSString * imagePath
 
UIImage * image
 
CGFloat imageScale
 
CGPoint anchorPoint
 
BOOL clickable
 
CGFloat rotationAngle
 
NMMarkerOrientationIn3D orientationIn3D
 
- Properties inherited from NMGeoObject
NSUInteger zIndex
 
NSUInteger objectId
 
BOOL hidden
 

Detailed Description

A class representing a marker on the map.

Method Documentation

◆ geoMarkerWithCoordinates:()

+ (instancetype) geoMarkerWithCoordinates: (NMMapCoordinates *)  coordinates

◆ geoMarkerWithCoordinates:image:anchorPoint:()

+ (instancetype) geoMarkerWithCoordinates: (NMMapCoordinates *)  coordinates
image: (UIImage *)  image
anchorPoint: (CGPoint)  anchorPoint 

◆ geoMarkerWithCoordinates:imagePath:imageScale:anchorPoint:()

+ (instancetype) geoMarkerWithCoordinates: (NMMapCoordinates *)  coordinates
imagePath: (NSString *)  imagePath
imageScale: (CGFloat)  imageScale
anchorPoint: (CGPoint)  anchorPoint 

◆ initWithCoordinates:()

- (instancetype) initWithCoordinates: (NMMapCoordinates *)  location

◆ initWithCoordinates:image:anchorPoint:()

- (instancetype) initWithCoordinates: (NMMapCoordinates *)  coordinates
image: (UIImage *)  image
anchorPoint: (CGPoint)  anchorPoint 

◆ initWithCoordinates:imagePath:imageScale:anchorPoint:()

- (instancetype) initWithCoordinates: (NMMapCoordinates *)  coordinates
imagePath: (NSString *)  imagePath
imageScale: (CGFloat)  imageScale
anchorPoint: (CGPoint)  anchorPoint 

◆ NS_UNAVAILABLE() [1/2]

- (instancetype) NS_UNAVAILABLE

◆ NS_UNAVAILABLE() [2/2]

+ (instancetype) NS_UNAVAILABLE

◆ setImagePath:imageScale:()

- (void) setImagePath: (NSString *)  imagePath
imageScale: (CGFloat)  imageScale 

Sets the path of the marker's image along with the image DPI factor.

Parameters
imagePathPath to image file.
imageScaleDPI factor of the image addressed by the file path specified.

Property Documentation

◆ anchorPoint

- (CGPoint) anchorPoint
readwritenonatomicassign

Point of rotation of the marker. CGPoint's x and y take values from 0.f to 1.f and define the rotation point displacement relative to the marker's image size.

◆ clickable

- (BOOL) clickable
readwritenonatomicassign

Specifies whether the marker is clickable, i.e. informs NMMapView geo object listeners on events described in NMGeoObjectListener protocol.

◆ coordinates

- (NMMapCoordinates*) coordinates
readwritenonatomicstrong

The marker's location on the map.

◆ image

- (UIImage*) image
readwritenonatomicstrong

The marker's image.

◆ imagePath

- (NSString*) imagePath
readnonatomicstrong

Path of the marker's image.

◆ imageScale

- (CGFloat) imageScale
readnonatomicassign

The DPI scale factor of the image.

◆ orientationIn3D

- (NMMarkerOrientationIn3D) orientationIn3D
readwritenonatomicassign

Defines if the marker is oriented verticaly or horizontaly on the screen when camera's pitch is greater then 0.f

◆ rotationAngle

- (CGFloat) rotationAngle
readwritenonatomicassign

The marker's rotation angle.