MSFLabel

Objective-C


@interface MSFLabel : MSFBillboard

Swift

class MSFLabel : MSFBillboard

An abstract billboard element with a dynamically drawn bitmap that can be displayed on the map.

  • Draws a custom bitmap for this label that will be used for drawing the label on the map. The method is called each time the label gets reloaded internally.

    Declaration

    Objective-C

    - (MSFBitmap *)drawBitmap:(float)dpToPX;

    Swift

    func drawBitmap(_ dpToPX: Float) -> MSFBitmap!

    Parameters

    dpToPX

    The value used for converting display independent pixels (dp) to pixels (px).

    Return Value

    The custom label bitmap.

  • Returns the style of this label.

    Declaration

    Objective-C

    - (MSFLabelStyle *)getStyle;

    Swift

    func getStyle() -> MSFLabelStyle!

    Return Value

    The style that defines what this label looks like.

  • Sets the style for this label.

    Declaration

    Objective-C

    - (void)setStyle:(MSFLabelStyle *)style;

    Swift

    func setStyle(_ style: MSFLabelStyle!)

    Parameters

    style

    The new style that defines what this marker looks like.

  • Undocumented

    Declaration

    Objective-C

    -(void)dealloc;

    Swift

    func dealloc()