DataAreaType

public enum DataAreaType

The data fetch from the server is separated by area types like route corridor, visible map viewport, and global (for some types only).

To reduce network traffic usage and have only data that is currently needed the data fetch is separated into the different area types. It is controlled by the SkyPath.dataQuery object that is set initially to default values and can be updated at any time.

Each area type is fetched by a separate server request. It can be used to update different data map layers if for example route and viewport data are on different layers.

  • The global data is turbulence polygons. It gives a high-level view when no detailed data is needed.

    Declaration

    Swift

    case global
  • The route corridor configured by SkyPath.dataQuery.polygon.

    Declaration

    Swift

    case route
  • The visible map viewport is configured by SkyPath.dataQuery.viewport.

    Declaration

    Swift

    case viewport
  • all

    Locally cached data that merges all area types. Provided once after start.

    Declaration

    Swift

    case all