Package globus.glmap

Class GLMapVectorLayer


public class GLMapVectorLayer extends GLMapDrawable
Drawable with vector objects
  • Constructor Details

    • GLMapVectorLayer

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

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

    • setVectorObject

      public void setVectorObject(@NonNull GLMapVectorObject object, @NonNull GLMapVectorCascadeStyle style, @Nullable Runnable onReadyToDraw)
      Sets vector object to draw
      Parameters:
      object - object to draw
      style - style of object
      onReadyToDraw - optional runnable that called when object is ready to draw
    • setVectorObjects

      public void setVectorObjects(@NonNull GLMapVectorObjectList objects, @NonNull GLMapVectorCascadeStyle style, @Nullable Runnable onReadyToDraw)
      Sets vector objects to draw
      Parameters:
      objects - objects to draw
      style - style of object
      onReadyToDraw - optional runnable that called when object is ready to draw