GLMapBalloon


@interface GLMapBalloon : GLMapDrawable

GLMapBalloondraws a ballon with text on map.

  • Initializes empty balloon that will be displayed with given drawOrder

    Declaration

    Objective-C

    - (nonnull instancetype)initWithDrawOrder:(int32_t)drawOrder;

    Parameters

    drawOrder

    drawOrder of object

  • Sets backgroud image of balloon

    Declaration

    Objective-C

    - (void)setBackgroundImage:(nonnull PlatformImage *)image
                        insets:(PlatformEdgeInsets)insets;

    Parameters

    image

    image to set

    insets

    insets of background image

  • Sets text of balloon

    Declaration

    Objective-C

    - (void)setText:(nonnull NSString *)text
          withStyle:(nonnull GLMapVectorStyle *)style
             insets:(PlatformEdgeInsets)insets
         completion:(dispatch_block_t _Nullable)completion;

    Parameters

    text

    New text

    style

    A style object used for text

    completion

    A block called when balloon ready to draw with new text

  • Sets refrence angle to detect direction of balloon

    Declaration

    Objective-C

    - (void)setRefrenceAngle:(float)refrenceAngle;

    Parameters

    refrenceAngle

    refrence angle

  • Sets positions where balloon can be displayed

    Declaration

    Objective-C

    - (void)setPossiblePositions:(nonnull const GLTrackSampleResult *)positions
                           count:(NSUInteger)count;

    Parameters

    positions

    positions to set

    count

    number of positions

  • If set to true position nearest to center of screen will be selected

    Declaration

    Objective-C

    - (void)setPlaceToCenter:(BOOL)placeToCenter;

    Parameters

    placeToCenter

    value to set