AirHub API
  1. Map Vector Tiles - NEW
AirHub API
  • Introduction
  • Authorization
    • Overview
    • Get Oauth Token
      POST
  • Advisories
    • Advisory
      POST
    • Get Advisories BBox
      GET
    • Get Advisories GeoJSON
      POST
  • Briefing
    • Overview
    • B4UFLY
      • What Is B4UFLY
      • The API Basics
      • Location vs Area
      • v1
        • B4UFLY Briefing by Area v1
        • B4UFLY Briefing by Location v1
      • v2
        • What's New in v2
        • B4UFLY Briefing by Area v2
        • B4UFLY Briefing by Location v2
  • LAANC SDSP
    • Overview
    • ASL Operations
      • List Operations
      • Create Operation
      • Get Operation
      • Delete Operation
      • Update Operation
    • LAANC Operations
      • Get Operation
      • Delete Operation
      • Create Operation
      • Update Operation
    • LAANC Authorizations
      • Rescinded and Invalid Operations
      • Submit Authorization
      • Get Authorization
      • Cancel Authorization
      • Cancel Invalid Authorization
      • Close Authorization
      • Acknowledge Rescinded Authorization
    • Operation v2
      POST
    • Create Ephemeral Operations
      POST
  • Risk
    • Get Hazard
      POST
    • Get Hazard Ground Type
      POST
    • Get Hazard Ground Risk
      POST
  • Aviation
    • Aviation
      POST
  • Surface
    • Suitability
      POST
    • Classification Surface
      POST
    • Surface v2 GeoJSON
      POST
    • Surface v2 Hexbin
      POST
  • Route
    • Route v2
  • Check
    • Check Airspace
    • Get Status
  • Elevation - NEW
    • Elevation
  • Map Vector Tiles - NEW
    • Overview
    • Styled Tiles
      GET
    • Vector Tile
      GET
  1. Map Vector Tiles - NEW

Styled Tiles

Sandbox
https://airhub-api-sandbox.airspacelink.com
Sandbox
https://airhub-api-sandbox.airspacelink.com
GET
/styles/{style}/style.json
Last modified:2024-09-19 09:49:50
The pre-styled endpoint returns JSON definition language for the visualization of vector tile layers. We use style definitions specified by MapLibre. You may also reference our style as a starting point and override where you see fit.

Request

Path Params
style
string 
required
Query Params
key
string 
required
Unique alphanumeric key.

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://airhub-api-sandbox.airspacelink.com/styles//style.json?key='

Responses

🟢200OK
application/json
Body
version
enum<integer> 
required
Style specification version number. Must be 8.
Allowed value:
8
name
string 
required
A human-readable name for the style.
sprite
string 
optional
Sprite URL
glyphs
string 
optional
A URL template for loading signed-distance-field glyph sets in PBF format.
sources
object 
required
Describe data to display in the map.
{source}
object 
required
Unique source name. {source} is just a placeholder.
layers
array [object {9}] 
required
Lists all the layers available in that style.
id
string 
required
Layer ID
type
enum<string> 
required
Type of layer
Allowed values:
backgroundfilllinesymbolrastercirclefill-extrusionheatmaphillshade
source
string 
optional
Name of a source description to be used for this layer. Required for all layer types except background.
source-layer
string 
optional
Layer to use from a vector tile source. Required for vector tile sources; prohibited for all other source types, including GeoJSON sources.
filter
array [oneOf] 
optional
A expression specifying conditions on source features. Only features that match the filter are displayed. Zoom expressions in filters are only evaluated at integer zoom levels. The feature-state expression is not supported in filter expressions.
layout
object 
optional
Layout properties for the layer. See https://maplibre.org/maplibre-style-spec/layers/#layout for more details.
paint
object 
optional
Default paint properties for this layer. See https://maplibre.org/maplibre-style-spec/layers/#paint for more details.
minzoom
integer 
optional
The minimum zoom level for the layer. At zoom levels less than the minzoom, the layer will be hidden.
maxzoom
integer 
optional
The maximum zoom level for the layer. At zoom levels equal to or greater than the maxzoom, the layer will be hidden.
Example
{
  "version": 8,
  "name": "FAA",
  "sprite": "https://tiles.airspacelink.com/styles/faa-dark/sprite/sprite",
  "glyphs": "https://tiles.airspacelink.com/fonts/{fontstack}/{range}.pbf",
  "sources": {
    "faa": {
      "type": "vector",
      "tiles": [
        "https://tiles.airspacelink.com/tile/service=faa/faa/{z}/{x}/{y}.mvt"
      ],
      "minzoom": 0,
      "maxzoom": 14,
      "bounds": [
        -180,
        -85.0511,
        180,
        85.0511
      ]
    }
  },
  "layers": [
    {
      "id": "Airspace/Controlled Airspace Boundary/Grid Ceiling Height/!50 Grid Ceiling Height/0",
      "type": "line",
      "source": "faa",
      "source-layer": "uas_facility_mapfgb",
      "filter": [
        "all",
        [
          "==",
          "laanc_status",
          "50 Grid Ceiling Height"
        ]
      ],
      "layout": {
        "line-cap": "round",
        "line-join": "round"
      },
      "paint": {
        "line-opacity": 0.82,
        "line-color": "rgba(11,165,233,0.9)",
        "line-width": 0.666667
      },
      "minzoom": 11,
      "maxzoom": 23
    }
  ]
}
Previous
Overview
Next
Vector Tile
Built with