Functions
The following functions are available globally.
-
Changes map marker style
Declaration
Objective-C
void GLMapMarkerSetStyle(GLMapMarkerData _Nonnull data, unsigned int style)Parameters
dataMarker object to be changed
styleStyle identifier
-
Sets text for map marker.
Declaration
Objective-C
void GLMapMarkerSetText(GLMapMarkerData _Nonnull data, NSString *_Nonnull text, CGPoint offset, GLMapVectorStyle *_Nonnull style)Parameters
dataMarker object to be changed
textText for marker object
offsetoffset on screen in points
styleText style
-
Checks if it’s error or success code
Declaration
Objective-C
static inline _Bool GLMapIsSuccess(GLMapError v) -
Creates
GLMapTilePosDeclaration
Objective-C
static inline GLMapTilePos GLMapTilePosMake(int x, int y, int z)Parameters
xX coordinate
yY coordinate
zZ coordinate
Return Value
New tile position
-
Creates new
GLMapGeoPoint.Declaration
Objective-C
static inline GLMapGeoPoint GLMapGeoPointMake(double lat, double lon)Parameters
latLatitude
lonLongitude
Return Value
New geo point
-
Checks equality of two geo points
Declaration
Objective-C
static inline _Bool GLMapGeoPointEqual(GLMapGeoPoint a, GLMapGeoPoint b)Parameters
aFirst geo point
bSecond geo point
Return Value
trueif map points is equal -
Creates new
GLMapPointDeclaration
Objective-C
static inline GLMapPoint GLMapPointMake(double x, double y)Parameters
xX coordinate
yY coordinate
Return Value
New map point
-
Checks equality of two map points
Declaration
Objective-C
static inline _Bool GLMapPointEqual(GLMapPoint a, GLMapPoint b)Parameters
aFirst map point
bSecond map point
Return Value
trueif map points is equal -
Creates new color from int chanel values 0 - 255
Declaration
Objective-C
static inline GLMapColor GLMapColorMake(uint8_t r, uint8_t g, uint8_t b, uint8_t a)Parameters
rRed channel value
gGreen channel value
bBlue channel value
aAlpha channel value
Return Value
Returns new color object
-
Creates new color from float chanel values 0.0 - 1.0
Declaration
Objective-C
static inline GLMapColor GLMapColorMakeF(float r, float g, float b, float a)Parameters
rRed channel value
gGreen channel value
bBlue channel value
aAlpha channel value
Return Value
Returns new color object
-
Declaration
Objective-C
static inline uint8_t GLMapColorGetRed(GLMapColor color)Parameters
colorInput color
Return Value
Returns red channel value
-
Declaration
Objective-C
static inline uint8_t GLMapColorGetGreen(GLMapColor color)Parameters
colorInput color
Return Value
Returns green channel value
-
Declaration
Objective-C
static inline uint8_t GLMapColorGetBlue(GLMapColor color)Parameters
colorInput color
Return Value
Returns blue channel value
-
Declaration
Objective-C
static inline uint8_t GLMapColorGetAlpha(GLMapColor color)Parameters
colorInput color
Return Value
Returns alpha channel value
-
Creates
UIColorobject from ourGLMapColorDeclaration
Objective-C
UIColor *_Nullable UIColorFromGLMapColor(GLMapColor color)Parameters
colorInitial color
Return Value
New
UIColorobject -
Convert
UIColortoGLMapColorDeclaration
Objective-C
GLMapColor GLMapColorMakeFromUIColor(UIColor *_Nonnull color)Parameters
colorcolor to conver @- returns: converted value
-
Converts
NSDataobjects intoGLMapResources.Declaration
Objective-C
GLMapResource GLMapResourceWithData(NSData *_Nonnull data)Parameters
dataData object to convert.
Return Value
Created resource object.
-
Creates route point
Declaration
Objective-C
static inline GLRoutePoint GLRoutePointMake(GLMapGeoPoint pt, double heading, _Bool isStop, _Bool allowUTurn) -
Adds point into existing bounding box.
Declaration
Objective-C
static inline GLMapBBox GLMapBBoxAddPoint(GLMapBBox bbox, GLMapPoint point)Parameters
bboxBounding box
pointPoint to add into bounding box
-
Checks if the bbox contains the point
Declaration
Objective-C
static inline _Bool GLMapBBoxContains(GLMapBBox bbox, GLMapPoint point)Parameters
bboxBounding box
pointPoint to check
Return Value
true if point is in bbox
-
Creates new bounding box
Declaration
Objective-C
static inline GLMapBBox GLMapBBoxMake(GLMapPoint origin, double width, double height)Parameters
originOrigin point
widthWidth
heightHeight
Return Value
New bounding box
-
Returns center of bbox
Declaration
Objective-C
static inline GLMapPoint GLMapBBoxCenter(GLMapBBox a)Return Value
center of bbox
-
Computes distance from bounding box to point
Declaration
Objective-C
double GLMapBBoxDistanceToPoint(GLMapBBox bbox, GLMapPoint point)Parameters
bboxBounding box
pointPoint
Return Value
Distance in internal coordinates
-
Creates map point from geo coordinates
Declaration
Objective-C
GLMapPoint GLMapPointMakeFromGeoCoordinates(double lat, double lon)Parameters
latLatitude
lonLongitude
Return Value
New map point
-
Creates map point from geo point
Declaration
Objective-C
GLMapPoint GLMapPointFromMapGeoPoint(GLMapGeoPoint point)Parameters
pointGeo point
Return Value
New point
-
Creates map point from tile position
Declaration
Objective-C
GLMapPoint GLMapPointFromMapTilePos(GLMapTilePos tilePos)Parameters
tilePosTile position
Return Value
New point
-
Creates geo point from map coordinates
- parameter: point Map point - returns: New geo pointDeclaration
Objective-C
GLMapGeoPoint GLMapGeoPointFromMapPoint(GLMapPoint point) -
Calculates distance between two points on map
Declaration
Objective-C
double GLMapDistanceBetweenPoints(GLMapPoint a, GLMapPoint b)Parameters
aFirst point on map
bSecond point on map
Return Value
Distance in meters
-
Calculates distance between two points. Сontains internal conversion to GLMapGeoPoint.
Declaration
Objective-C
double GLMapDistanceBetweenGeoPoints(GLMapGeoPoint a, GLMapGeoPoint b)Parameters
aFirst geo point
bSecond geo point
Return Value
Distance in meters
-
Calculates bearing between two geo points.
Declaration
Objective-C
double GLMapBearingBetweenPoints(GLMapPoint a, GLMapPoint b)Parameters
aFirst point
bSecond point
Return Value
bearing angle in degrees
-
Calculates bearing between two points. Сontains internal conversion to GLMapGeoPoint.
Declaration
Objective-C
double GLMapBearingBetweenGeoPoints(GLMapGeoPoint a, GLMapGeoPoint b)Parameters
aFirst geo point
bSecond geo point
Return Value
bearing angle in degrees
-
Creates new empty set *
Declaration
Objective-C
GLMapPointSet _Nonnull GLMapPointSetCreate() -
Destroys set
Declaration
Objective-C
void GLMapPointSetDestroy(GLMapPointSet _Nonnull set)Parameters
setset to destroy *
-
Adds new point to set. Can add many points with same coordinates.
Declaration
Objective-C
void GLMapPointSetInsert(GLMapPointSet _Nonnull set, GLMapPoint point)Parameters
setset to modify
pointpoint to add *
-
Inserts new point to set.
Declaration
Objective-C
_Bool GLMapPointSetInsertUnique(GLMapPointSet _Nonnull set, GLMapPoint point)Parameters
setset to modify
pointpoint to insert.
Return Value
trueif point is inserted.falseif point with same coordinates already in set. * -
Removes point from set
Declaration
Objective-C
_Bool GLMapPointSetRemove(GLMapPointSet _Nonnull set, GLMapPoint point)Parameters
setset to modify
pointpoint to remove
Return Value
YES if point was removed *
-
Checks if set have given point
Declaration
Objective-C
_Bool GLMapPointSetContains(GLMapPointSet _Nonnull set, GLMapPoint point)Parameters
setset to test
pointpoint to test
Return Value
YES if point is in set *
-
Returns nearest point in set
Declaration
Objective-C
GLMapPoint GLMapPointSetNearestPoint(GLMapPointSet _Nonnull set, GLMapPoint point)Parameters
setobject created by
GLMapPointSetCreatepointreference point to calculate distance
Return Value
Nearest point in set *
Install in Dash
Functions Reference