GLMapDrawable


@interface GLMapDrawable : GLMapDrawObject

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) *

  • Unavailable

    GLMapDrawable is abstract class

    Plain -init is disabled

    Declaration

    Objective-C

    - (instancetype _Nonnull)init;

Properties

  • When set to YES image rotates with map. Default value is ‘NO’

    Declaration

    Objective-C

    @property BOOL rotatesWithMap;
  • GLMapTransform mode of drawable

    Declaration

    Objective-C

    @property GLMapTransformMode transformMode;
  • A position that sets image position in map internal coordinates For vector object adds translation Animatable.

    Declaration

    Objective-C

    @property GLMapPoint position;
  • Image offset from position point. Can be used for image and text When offset is (0,0), bottom left corner of image is displayed at position Animatable.

    Declaration

    Objective-C

    @property CGPoint offset;
  • A size of image in pixels Can be used for image and text

    Declaration

    Objective-C

    @property (readonly) CGSize size;
  • Scale of object. (by default is 1.0) Animatable.

    Declaration

    Objective-C

    @property double scale;
  • A float variable that defines image angle Animatable.

    Declaration

    Objective-C

    @property float angle;

Methods

  • Tests if point is inside of image

    Declaration

    Objective-C

    - (BOOL)hitTest:(CGPoint)point
               onMap:(GLMapView *_Nonnull)mapView
        withPaddings:(PlatformEdgeInsets)paddings;

    Parameters

    mapView

    mapView where images is displayed

    point

    point to check

    paddings

    paddings of image

    Return Value

    true if point is inside image