Type Definitions
The following type definitions are available globally.
-
GLMapAnimationCompletionBlockcalled when animation ends.finishedset to YES, when animation is finished, and NO when animation is cancelled.Declaration
Objective-C
typedef void (^GLMapAnimationCompletionBlock)(BOOL)
-
Blocks what will called on the main thread when task is completed or cancelled
Declaration
Objective-C
typedef void (^GLMapDownloadCompletionBlock)(GLMapDownloadTask *_Nonnull) -
Blocks what will called on the main thread when subtask is completed or cancelled.
Download task contains map data download task and navigation data download task inside.
Declaration
Objective-C
typedef void (^GLMapDownloadStatsBlock)(NSString *_Nonnull, NSUInteger, double) -
GLMapListUpdateBlock is used to notify about map list updates.
Map list is stored at server and sometimes it takes some time to fetch latest map list. It is downloaded only if updated. If no changes happened block called almost immidiately.
Declaration
Objective-C
typedef void (^GLMapListUpdateBlock)(NSArray<GLMapInfo *> *_Nullable, BOOL, NSError *_Nullable) -
GLMapTileDownloadProgressBlock is called when tile downloaded.
Declaration
Objective-C
typedef BOOL (^GLMapTileDownloadProgressBlock)(uint64_t, NSError *_Nullable)Return Value
if NO returned downloading will be cancelled.
-
GLMapMarkerDatais type used to reference an internal object.Declaration
Objective-C
typedef void *GLMapMarkerData -
GLMapMarkerDataFillBlockis called for each marker to fill needed dataDeclaration
Objective-C
typedef void (^GLMapMarkerDataFillBlock)(id _Nonnull, GLMapMarkerData _Nonnull) -
GLMapMarkerPositionBlockis called for each marker to get location of markerDeclaration
Objective-C
typedef GLMapPoint (^GLMapMarkerLocationBlock)(id _Nonnull) -
GLMapMarkerUnionBlockcalled when marker layer needs style for union ofcountmarkersDeclaration
Objective-C
typedef void (^GLMapMarkerUnionFillBlock)(uint32_t, GLMapMarkerData _Nonnull)
-
Generator block. Returns points for index. Used in generating constructor
-initWithCount:callback:Declaration
Objective-C
typedef GLMapPoint (^GetPointBlock)(NSUInteger)Parameters
indexIndex of the point
Return Value
Point to add into the array
-
Enumerator block. Called for all points subsequently.
Declaration
Objective-C
typedef void (^EnumeratePointBlock)(NSUInteger, GLMapPoint)Parameters
indexPoint index
pointPoint
-
Block is called to get point of track at given
indexDeclaration
Objective-C
typedef BOOL (^GLMapTrackPointsCallback)(NSUInteger, GLTrackPoint *_Nonnull)Return Value
YES if there is point at index
index, and NO if there is no points.
-
Block is called to get tracks data for given bbox
Declaration
Objective-C
typedef NSArray<GLMapTrackData *> *_Nullable (^GLMapTrackDataCallback)( GLMapBBox)Parameters
bboxBBox of tracks
Return Value
array of
GLMapTrackData
-
GLMapTimestampBlockis used to get timestamp of resource from custom place. Return NAN if no resurces with such name exit.Declaration
Objective-C
typedef double (^GLMapTimestampBlock)(NSString *_Nonnull)
-
Called when next object is ready while enumerating
Declaration
Objective-C
typedef BOOL (^GLMapVectorObjectBlock)(GLMapVectorObject *_Nonnull)Return Value
NO to break enumaration
-
GLMapTapGestureBlockcalled, when user tapped or long tapped on map. Add custom tap handling logic inside this block.Declaration
Objective-C
typedef void (^GLMapTapGestureBlock)(CGPoint) -
GLMapBBoxChangedBlockcalled every time, when map is moved or zoom is changed.Declaration
Objective-C
typedef void (^GLMapBBoxChangedBlock)(GLMapBBox) -
GLMapAnimationBlockcreated for animations. Map properties modified insideGLMapAnimationBlockwill use animation. Animation properties could be changed inanimationobject.Declaration
Objective-C
typedef void (^GLMapAnimationBlock)(GLMapAnimation *_Nonnull) -
GLMapVisibleTilesChangedBlockcalled when set of visible tiles changedDeclaration
Objective-C
typedef void (^GLMapVisibleTilesChangedBlock)(NSSet *_Nonnull) -
GLMapCaptureFrameBlockis called when frame is captured.Declaration
Objective-C
typedef void (^GLMapCaptureFrameBlock)(UIImage *_Nullable) -
GLMapScaleRulerTextFormatterBlockis used to change scale ruler format or localize unit name.Declaration
Objective-C
typedef NSString *_Nullable (^GLMapScaleRulerTextFormatterBlock)(int, GLUnits)
-
Resource information filled by
See moreGLMapResourceBlockDeclaration
Objective-C
typedef struct GLMapResource GLMapResource -
Merkator tile coordinates
See moreDeclaration
Objective-C
typedef struct GLMapTilePos GLMapTilePos -
Geo point with latitude and longitude
See moreDeclaration
Objective-C
typedef struct GLMapGeoPoint GLMapGeoPoint -
See moreGLMapPointalways uses internal map coordinates. From 0 toGLMapPointMaxfor X and Y axis. Origin is at the top left corner.Declaration
Objective-C
typedef struct GLMapPoint GLMapPoint -
See moreGLMapColoris color type based onuint32_tDeclaration
Objective-C
typedef struct GLMapColor GLMapColor -
GLMapResourceBlockis used to load resources from custom place.Declaration
Objective-C
typedef GLMapResource (^GLMapResourceBlock)(NSString *_Nonnull) -
Point of track with color
See moreDeclaration
Objective-C
typedef struct GLTrackPoint GLTrackPoint -
Point of track with color
See moreDeclaration
Objective-C
typedef struct GLRoutePoint GLRoutePoint -
Set of GLMapPoint
Declaration
Objective-C
typedef void *GLMapPointSet
-
Block that will be called to make gradients for track
Declaration
Objective-C
typedef GLMapColor (^GLMapTrackDataColorBlock)(uint32_t)Parameters
indexIndex of point
Return Value
Color in this point
-
Enumerator block. Called subsiquently for all maneuver points
Declaration
Objective-C
typedef void (^GLRouteManeuverEnumPointsBlock)(GLMapPoint, float)Parameters
pointPoint inside maneuver
heightHeight in that point if available, NAN otherwise.
-
Block that will be called when request is finished
Declaration
Objective-C
typedef void (^GLMapHeightDataCompletionBlock)(GLRouteElevation *_Nullable, NSError *_Nullable)Parameters
resultinstance of GLRouteElevation with information about height
errorcontains error if request is failed
-
Block that will be called when request is finished
Declaration
Objective-C
typedef void (^GLRouteRequestCompletionBlock)(GLRoute *_Nullable, NSError *_Nullable)Parameters
resultinstance of GLRoute with information about the route
errorcontains error if request is failed
-
GLMapSearchCompletionBlockis called when search task is finished. If results is nil - task is cancelled.Warning
If custom results is also added, results will containGLMapVectorObjects and objects of user type.Declaration
Objective-C
typedef void (^GLSearchCompletionBlock)(GLMapVectorObjectArray *_Nonnull) -
GLMapSearchInfoBlockcalled to fetch information that used to sort custom search results.Declaration
Objective-C
typedef void (^GLSearchInfoBlock)(id _Nonnull, GLMapPoint *_Nonnull, GLSearchCategory *_Nullable *_Nonnull, int *_Nonnull)
Install in Dash
Type Definitions Reference