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

Inherits <NSObject>.

Instance Methods

(NMMapCoordinates *) - mapCoordinatesFromPointOnScreen:
 
(CGPoint) - pointOnScreenFromMapCoordinates:
 

Detailed Description

A utility class allowing you to convert a point on NMMapView to the corresponding map coordinates or to do the reverse operation.

Method Documentation

◆ mapCoordinatesFromPointOnScreen:()

- (NMMapCoordinates *) mapCoordinatesFromPointOnScreen: (mapCoordinates(fromPointOnScreen:))  NS_SWIFT_NAME

Converts a screen point to map coordinates.

Parameters
pointOnScreenPoint in screen coordinates (dips).
Returns
map coordinates.

◆ pointOnScreenFromMapCoordinates:()

- (CGPoint) pointOnScreenFromMapCoordinates: (pointOnScreen(fromMapCoordinates:))  NS_SWIFT_NAME

Converts map coordinates to a screen point in dips.

Parameters
coordinatesMap coordinates.
Returns
point in screen coordinates (dips).