Skip to content

Instantly share code, notes, and snippets.

@chriswhong
Created February 27, 2018 06:41
Show Gist options
  • Save chriswhong/329f3f8f80710999678bc0871c1829e0 to your computer and use it in GitHub Desktop.
Save chriswhong/329f3f8f80710999678bc0871c1829e0 to your computer and use it in GitHub Desktop.
Consuming USGS OrthoImagery in MapboxGL

MapboxGL Layer Definition for consuming tiles from the USGS Imagery MapServer

{
  id: 'usgs-aerials',
  type: 'raster',
  source: {
    type: 'raster',
    tiles: [
      'https://basemap.nationalmap.gov/arcgis/rest/services/USGSImageryOnly/MapServer/tile/{z}/{y}/{x}',
    ],
    tileSize: 256,
  },
  paint: {},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment