Package globus.glmap

Class GLMapLabel


public class GLMapLabel extends GLMapDrawable
Drawable with text
  • Constructor Details

    • GLMapLabel

      public GLMapLabel(int drawOrder)
      Creates new empty image with given draw order
      Parameters:
      drawOrder - Draw order used to sort objects on map
    • GLMapLabel

      public GLMapLabel()
      Creates new empty image that will be injected to map
  • Method Details

    • setText

      public void setText(@NonNull String text, @NonNull GLMapVectorStyle style, @Nullable Runnable onReadyToDraw)
      Sets new text to draw
      Parameters:
      text - new text to draw
      style - style of the text
      onReadyToDraw - optional runnable that called when text ready to draw
    • setText

      public void setText(@NonNull String text, @NonNull GLMapVectorStyle style)
      Sets new text to draw
      Parameters:
      text - new text to draw
      style - style of the text