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.
-
Returns object near some point on map
Declaration
Objective-C
- (GLMapVectorObject *_Nullable)mapObjectNearPoint:(GLMapPoint)point maxDistance:(double)maxDistance;
Parameters
point
Point on map
maxDistance
Distance in points
Return Value
Vector object on map
-
Search for relations near point on map
Declaration
Objective-C
- (NSArray<GLMapRelation *> *_Nullable) relationsNearPoint:(GLMapPoint)point maxDistance:(double)maxDistance withFilters:(NSArray<GLSearchFilter *> *_Nullable)filters;
Parameters
point
Point on map
maxDistance
Distance in points
filters
Filters for relations
Return Value
relations near point