Package globus.glmap

Class GLMapTrack


public class GLMapTrack extends GLMapTrackLayer
GLMapTrack is a bridge class, to work with GLMap internal representation of track on map.
  • Constructor Details

    • GLMapTrack

      public GLMapTrack(int drawOrder)
      Default constructor
      Parameters:
      drawOrder - draw order of object
  • Method Details

    • setData

      public void setData(@Nullable GLMapTrackData data, @NonNull GLMapVectorStyle style, @Nullable Runnable onReadyToDraw)
      Sets new track data
      Parameters:
      data - new trackData
      style - visual style of track
      onReadyToDraw - optional runnable that called when object is ready to draw
    • setProgressColor

      public void setProgressColor(int color)
      Sets color of track from start to progress index
      Parameters:
      color - color of track from start to progress index
    • setProgressIndex

      public void setProgressIndex(double progressIndex)
      Track from start to progress index will change color to progress color. Animatable.
      Parameters:
      progressIndex - progress of track
    • setProgressEndIndex

      public void setProgressEndIndex(double progressIndex)
      Track from index to end index will change color to progress color. Animatable.
      Parameters:
      progressIndex - progress of track
    • setStyle

      public void setStyle(@NonNull GLMapVectorStyle style)
      Sets width of track and other parameters
      Parameters:
      style - style that contains parameters