GLMapViewState


@interface GLMapViewState : NSObject

Class that holds state of map view (like map position, locale settings, map style)

  • Unavailable

    GLMapViewState returned by [GLMapView state]

    Plain -init is disabled

    Declaration

    Objective-C

    - (instancetype _Nonnull)init;
  • Updates draw attributes of vector object. @mapView view where object is displayed @style style to resolve @zoomLevel zoom level to test

    Declaration

    Objective-C

    - (BOOL)updateDrawAttributesOfVectorObject:(nonnull GLMapVectorObject *)object
                                     withStyle:
                                         (nonnull GLMapVectorCascadeStyle *)style
                                  forZoomLevel:(int)zoomLevel;

    Return Value

    true if visible

  • Updates draw attributes of vector object with style of mapView. @mapView view where object is displayed

    Declaration

    Objective-C

    - (BOOL)updateDrawAttributesOfVectorObject:(nonnull GLMapVectorObject *)object;

    Return Value

    true if visible

  • Finds nearest point of track, to given point. Useful to find nearest point of track whe user tap.

    Declaration

    Objective-C

    - (BOOL)findNearestPoint:(GLMapPoint *_Nonnull)point
                   nearTrack:(GLMapTrackData *_Nonnull)trackData
                 maxDistance:(CGFloat)distance;

    Parameters

    point

    Point on map. If point was found this value will be set to nearest point

    distance

    Max distance from track allowed

    Return Value

    YES if point found, otherwise NO.

GLSearch