Package globus.glmap

Interface GLMapTrackLayer.DataCallback

Enclosing class:
GLMapTrackLayer

public static interface GLMapTrackLayer.DataCallback
Callback called to fetch tracks to display
  • Method Summary

    Modifier and Type
    Method
    Description
    Called to get tracks data for the given bounding box.
  • Method Details

    • getTracks

      @Nullable List<GLMapTrackData> getTracks(@NonNull GLMapBBox bbox)
      Called to get tracks data for the given bounding box.

      This callback may be invoked from an internal background/render thread. Keep the implementation fast and avoid touching UI directly.

      Parameters:
      bbox - BBox of tracks
      Returns:
      list of GLMapTrackData instances to draw, or null for no tracks