Classes

The following classes are available globally.

  • GLMapAnimation defines the animation of object parameters that will be executed synchronously.

    See more

    Declaration

    Objective-C

    
    @interface GLMapAnimation : NSObject

    Swift

    class GLMapAnimation : NSObject
  • GLMapBalloon is used to draw a balloon with text on the map.

    See more

    Declaration

    Objective-C

    
    @interface GLMapBalloon : GLMapDrawable

    Swift

    class GLMapBalloon : GLMapDrawable
  • GLMapDrawObject is a base class for GLMapDrawable, GLMapTrack, GLMapMarkerLayer, and GLMapImageGroup.

    See more

    Declaration

    Objective-C

    
    @interface GLMapDrawObject : NSObject

    Swift

    class GLMapDrawObject : NSObject
  • GLMapDrawable is a bridge class to work with the GLMap internal representation of objects that should be rendered on the map. This can be a single image, text, or vector object. GLMapDrawable can be rendered as a separate object or injected into tile data. Check GLMapImageGroup for large groups of images or GLMapMarkerLayer to display map markers with clustering.

    See

    [GLMapView addDrawable:]

    Normal drawable:

    0, GLMapPointMax                   GLMapPointMax, GLMapPointMax
    ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
                                                 
               ╭────────────────────T            
                                               
               │←╍╍╍╍╍╍╍╍╍╍╍╍╍P                 
                                              
                                              
                                              
               O──────────────┴─────╯            
                                                 
    ┗━→━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
    0,0                                GLMapPointMax,0
    

    P = position (GLMapPoint) O = position - offset * scale (pt) T = O + size * scale (pt)

    Drawable that uses transform:

    0, GLMapPointMax                   GLMapPointMax, GLMapPointMax
    ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
                                                  
               ╭────────────────────T             
                                                
                                                
                                                
                                                
                                                
               P────────────────────╯             
                                                  
    ┗━━→━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
    0,0                                GLMapPointMax,0
    

    P = position (GLMapPoint) T = position + size * scale (GLMapPoint)

    See more

    Declaration

    Objective-C

    
    @interface GLMapDrawable : GLMapDrawObject

    Swift

    class GLMapDrawable : GLMapDrawObject
  • GLMapImage draws an image on the map.

    See more

    Declaration

    Objective-C

    
    @interface GLMapImage : GLMapDrawable

    Swift

    class GLMapImage : GLMapDrawable
  • GLMapImageGroup is a bridge class, to work with GLMap internal representation of an image group. Image groups are used to display a small set of images for a large number of locations, e.g., 1000 locations on a map, but only with 10 different images.

    See more

    Declaration

    Objective-C

    
    @interface GLMapImageGroup : GLMapDrawObject

    Swift

    class GLMapImageGroup : GLMapDrawObject
  • GLMapLabel draws a label on the map.

    See more

    Declaration

    Objective-C

    
    @interface GLMapLabel : GLMapDrawable

    Swift

    class GLMapLabel : GLMapDrawable
  • GLMapMarkerLayer displays a large number of markers with a given style. It supports marker clustering.

    See more

    Declaration

    Objective-C

    
    @interface GLMapMarkerLayer : GLMapDrawObject

    Swift

    class GLMapMarkerLayer : GLMapDrawObject
  • GLMapMarkerStyleCollection class holds a collection of styles used to draw a marker layer.

    See more

    Declaration

    Objective-C

    
    @interface GLMapMarkerStyleCollection : NSObject

    Swift

    class GLMapMarkerStyleCollection : NSObject
  • Gesture recognizer for detecting pitch gestures (two fingers moving up or down).

    See more

    Declaration

    Objective-C

    @interface GLMapPitchGestureRecognizer : NSGestureRecognizer

    Swift

    class GLMapPitchGestureRecognizer : NSGestureRecognizer
  • GLMapRasterTileSource is used to set up a custom raster tile source.

    See more

    Declaration

    Objective-C

    
    @interface GLMapRasterTileSource : GLMapTileSource

    Swift

    class GLMapRasterTileSource : GLMapTileSource
  • GLMapScaleRuler draws a scale ruler on the screen.

    See more

    Declaration

    Objective-C

    
    @interface GLMapScaleRuler : GLMapDrawObject

    Swift

    class GLMapScaleRuler : GLMapDrawObject
  • Gesture recognizer for detecting tap-and-zoom gestures.

    See more

    Declaration

    Objective-C

    @interface GLMapTapZoomGestureRecognizer : NSGestureRecognizer

    Swift

    class GLMapTapZoomGestureRecognizer : NSGestureRecognizer
  • GLMapTileSource is the base class for raster and vector tile sources.

    See more

    Declaration

    Objective-C

    @interface GLMapTileSource : NSObject

    Swift

    class GLMapTileSource : NSObject
  • GLMapTrack is a container class for track objects. The main difference from a line is that the data generalization function is used for tracks to remove data points redundant for the current zoom level.

    See more

    Declaration

    Objective-C

    
    @interface GLMapTrack : GLMapTrackLayer

    Swift

    class GLMapTrack : GLMapTrackLayer
  • GLMapTrackLayer is a subclass of GLMapDrawObject that is optimized to render GPS tracks on the map.

    See more

    Declaration

    Objective-C

    
    @interface GLMapTrackLayer : GLMapDrawObject

    Swift

    class GLMapTrackLayer : GLMapDrawObject
  • GLMapVectorImageFactory is used to render images from SVG files. The image factory caches rendered images for future use.

    See more

    Declaration

    Objective-C

    
    @interface GLMapVectorImageFactory : NSObject

    Swift

    class GLMapVectorImageFactory : NSObject
  • GLMapVectorImageTransform is used to customize the vector image rendering process and hold all rendering parameters together.

    See more

    Declaration

    Objective-C

    
    @interface GLMapVectorImageTransform : NSObject

    Swift

    class GLMapVectorImageTransform : NSObject
  • GLMapVectorLayer is used to draw multiple vector objects on the map.

    See more

    Declaration

    Objective-C

    
    @interface GLMapVectorLayer : GLMapDrawable

    Swift

    class GLMapVectorLayer : GLMapDrawable
  • Use GLMapVectorTileSource to set layers in GLMapView.

    See more

    Declaration

    Objective-C

    
    @interface GLMapVectorTileSource : GLMapTileSource

    Swift

    class GLMapVectorTileSource : GLMapTileSource
  • GLMapView is a custom UIView that renders and presents a vector map.

    See more

    Declaration

    Objective-C

    
    @interface GLMapView
        : NSView <CLLocationManagerDelegate, NSGestureRecognizerDelegate>

    Swift

    class GLMapView : NSView, CLLocationManagerDelegate, NSGestureRecognizerDelegate
  • GLMapDownloadTask is a class that downloads offline maps. It allows canceling the map download and checking for download errors.

    See

    [GLMapManager downloadMap:withCompletionBlock:]
    See more

    Declaration

    Objective-C

    
    @interface GLMapDownloadTask : NSObject

    Swift

    class GLMapDownloadTask : NSObject
  • GLMapInfo is a class with general information about all resources of a vector map and the states of those resources. It works with map data, navigation data, contour lines, and hillshades. It is returned by -[GLMapManager cachedMapList].

    See more

    Declaration

    Objective-C

    
    @interface GLMapInfo : NSObject

    Swift

    class GLMapInfo : NSObject
  • GLMapLocaleSettings is used to set the language order for all GLMapView objects. For each label on the map, the framework checks the translated names in the order set by -initWithLocalesOrder:, if no translated label is available - the native name is used. Following map languages are included in the vector map data:

    native - native language for the country or region
    ar - Arabic
    be - Belarusian
    cs - Czech
    da - Danish
    de - German
    en - English
    es - Spanish
    fr - French
    it - Italian
    ja - Japanese
    ko - Korean
    nl - Dutch
    pl - Polish
    pt - Portuguese
    ru - Russian
    sv - Swedish
    uk - Ukrainian
    zh - Chinese
    

    Check Multilingual names in OpenStreetMap for more information.

    See more

    Declaration

    Objective-C

    
    @interface GLMapLocaleSettings : NSObject

    Swift

    class GLMapLocaleSettings : NSObject
  • Map Manager is used to work with the list of offline maps.

    See more

    Declaration

    Objective-C

    
    @interface GLMapManager : NSObject

    Swift

    class GLMapManager : NSObject
  • Array of GLMapPoint. Useful for loading lines and polygons into GLMapVectorObject. Based on C++ vector and works faster with GLMapPoints without ObjC overhead.

    See more

    Declaration

    Objective-C

    
    @interface GLMapPointArray : NSObject

    Swift

    class GLMapPointArray : NSObject
  • GLMapVectorObject is a bridge class, to work with GLMap internal representation of relation.

    See more

    Declaration

    Objective-C

    
    @interface GLMapRelation : GLMapTagsContainer

    Swift

    class GLMapRelation : GLMapTagsContainer
  • GLMapStyleParser is a class to parse style and analyze the result of parsing.

    See more

    Declaration

    Objective-C

    
    @interface GLMapStyleParser : NSObject

    Swift

    class GLMapStyleParser : NSObject
  • GLMapTagsContainer is a base class for objects that contain tags.

    See more

    Declaration

    Objective-C

    @interface GLMapTagsContainer : NSObject

    Swift

    class GLMapTagsContainer : NSObject
  • GLMapTrackData class holds data for track and information to optimize draw at different zoom levels. Data stored without connection to mapView and could be added on different GLMapView at the same time.

    See more

    Declaration

    Objective-C

    
    @interface GLMapTrackData : NSObject

    Swift

    class GLMapTrackData : NSObject
  • GLMapValue is a class that hold some value and can convert it to Obj-C or Swift value

    See more

    Declaration

    Objective-C

    
    @interface GLMapValue : NSObject

    Swift

    class GLMapValue : NSObject
  • GLMapVectorCascadeStyle is used to define appearance of GLMapVectorObject. One style could be used with many GLMapVectorObjects. Style is used to render a map, which is stored inside DefaultStyle.bundle/Style.mapcss. Detailed MapCSS specification is located at: http://www.mapcss.org MapCSS examples: Any point with tag natural=peak, should be displayed on zoom level 11+ with trangle icon tinted with brown color.

    node|z11-[natural=peak] {
    icon-image:"triangle.svg";
    icon-tint:brown;
    }
    

    Any point with tag natural=peak, should display it’s localized name on zoom level 13+.

    node|z13-[natural=peak] {
    text: eval( locTag('name') );
    text-color:brown;
    font-size:12;
    }
    
    See more

    Declaration

    Objective-C

    
    @interface GLMapVectorCascadeStyle : NSObject

    Swift

    class GLMapVectorCascadeStyle : NSObject
  • GLMapVectorLine is a bridge class, to work with GLMap internal representation of line and multiline.

    See more

    Declaration

    Objective-C

    
    @interface GLMapVectorLine : GLMapVectorObject

    Swift

    class GLMapVectorLine : GLMapVectorObject
  • GLMapVectorObject is a bridge class, to work with GLMap internal representation of vector object.

    See more

    Declaration

    Objective-C

    
    @interface GLMapVectorObject : GLMapTagsContainer <NSCopying>

    Swift

    class GLMapVectorObject : GLMapTagsContainer, NSCopying
  • GLMapVectorObjectArray is fast and compact container for vector objects. It uses C++ vector of C++ objects inside.

    See more

    Declaration

    Objective-C

    
    @interface GLMapVectorObjectArray : NSObject

    Swift

    class GLMapVectorObjectArray : NSObject
  • GLMapVectorPoint is a bridge class, to work with GLMap internal representation of point and multipoint.

    See more

    Declaration

    Objective-C

    
    @interface GLMapVectorPoint : GLMapVectorObject

    Swift

    class GLMapVectorPoint : GLMapVectorObject
  • GLMapVectorPolygon is a bridge class, to work with GLMap internal representation of polygon and multipolygon.

    See more

    Declaration

    Objective-C

    
    @interface GLMapVectorPolygon : GLMapVectorObject

    Swift

    class GLMapVectorPolygon : GLMapVectorObject
  • GLMapVectorStyle is used to define appearance of text inside GLMapMarkerLayer or GLMapView. Style is used to render a map, which is stored inside DefaultStyle.bundle/Style.mapcss file. Detailed MapCSS specification is located at: http://www.mapcss.org

    See more

    Declaration

    Objective-C

    
    @interface GLMapVectorStyle : NSObject

    Swift

    class GLMapVectorStyle : NSObject
  • GLMapViewState holds the state of a mapView (like map position, locale settings, map style).

    See more

    Declaration

    Objective-C

    
    @interface GLMapViewState : NSObject

    Swift

    class GLMapViewState : NSObject
  • GLRoute is a class that loads and models route data, providing information about maneuvers, lengths, durations, and more.

    See more

    Declaration

    Objective-C

    
    @interface GLRoute : NSObject

    Swift

    class GLRoute : NSObject
  • GLRouteBuilder is a class that constructs custom routes with user-defined maneuvers and target points.

    See more

    Declaration

    Objective-C

    
    @interface GLRouteBuilder : NSObject

    Swift

    class GLRouteBuilder : NSObject
  • GLRouteElevation is a class that loads and models height data for a route.

    See more

    Declaration

    Objective-C

    
    @interface GLRouteElevation : NSObject

    Swift

    class GLRouteElevation : NSObject
  • GLRouteManeuver is a class that holds data for a route maneuver, providing information about the maneuver type, route mode, start and end points, and more.

    See more

    Declaration

    Objective-C

    
    @interface GLRouteManeuver : NSObject

    Swift

    class GLRouteManeuver : NSObject
  • GLRouteRequest is a class that constructs and sends route requests, either offline or online, and provides information about the route.

    See more

    Declaration

    Objective-C

    
    @interface GLRouteRequest : NSObject

    Swift

    class GLRouteRequest : NSObject
  • GLRouteTracker is a class that provides information about maneuvers and updates as the user moves along a route.

    See more

    Declaration

    Objective-C

    
    @interface GLRouteTracker : NSObject

    Swift

    class GLRouteTracker : NSObject
  • GLSearch class performs search in offline maps.

    See more

    Declaration

    Objective-C

    
    @interface GLSearch : NSObject

    Swift

    class GLSearch : NSObject
  • GLSearchCategories class holds a set of GLSearchCategory that will be used to sort search results by priority.

    See more

    Declaration

    Objective-C

    
    @interface GLSearchCategories : NSObject

    Swift

    class GLSearchCategories : NSObject
  • GLSearchCategory class represents a category of objects used for search purposes.

    See more

    Declaration

    Objective-C

    
    @interface GLSearchCategory : NSObject

    Swift

    class GLSearchCategory : NSObject
  • GLSearchFilter class contains a set of parameters that define a filter for GLSearch.

    See more

    Declaration

    Objective-C

    
    @interface GLSearchFilter : NSObject

    Swift

    class GLSearchFilter : NSObject