NSValue(GLMapViewAdditions)
@interface NSValue (GLMapViewAdditions)
Extensions to store GLMapPoint
and GLMapGeoPoint
inside NSValue
-
Creates
NSValue
object withGLMapPoint
.Declaration
Objective-C
+ (NSValue *)valueWithGLMapPoint:(GLMapPoint)pt;
Swift
/*not inherited*/ init!(glMapPoint pt: GLMapPoint)
Parameters
pt
Point
Return Value
Returns new
NSValue
object withGLMapPoint
inside. -
Creates
NSValue
object withGLMapGeoPoint
.Declaration
Objective-C
+ (NSValue *)valueWithGLMapGeoPoint:(GLMapGeoPoint)pt;
Swift
/*not inherited*/ init!(glMapGeoPoint pt: GLMapGeoPoint)
Parameters
pt
Point
Return Value
Returns new
NSValue
object withGLMapGeoPoint
inside. -
Returns
GLMapPoint
object fromNSValue
. It automatically converts value fromGLMapGeoPoint
toGLMapPoint
if needed. If there is noGLMapPoint
orGLMapGeoPoint
inside (NaN, NaN) is returned.Return Value
Returns
GLMapPoint
object fromNSValue
. -
Returns
GLMapGeoPoint
object fromNSValue
. It automatically converts value fromGLMapPoint
toGLMapGeoPoint
if needed. If there is noGLMapGeoPoint
orGLMapPoint
inside (NaN, NaN) is returned.Return Value
Returns
GLMapGeoPoint
object fromNSValue
.