Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save reymon359/9551e63f4ad18747ed8f9dd5725e88b5 to your computer and use it in GitHub Desktop.
Save reymon359/9551e63f4ad18747ed8f9dd5725e88b5 to your computer and use it in GitHub Desktop.
Mapbox GL Style example using OpenStreetMap tile server
{
"version": 8,
"name": "Raster Tiles",
"glyphs": "https://smellman.github.io/creating_tiles_with_global_map_support_files/2015/mapbox_vector_tile_demo/demosites/fonts/{fontstack}/{range}.pbf",
"sprite": "https://smellman.github.io/creating_tiles_with_global_map_support_files/2015/mapbox_vector_tile_demo/demosites/maki-sprites/sprite",
"sources": {
"osm": {
"type": "raster",
"tiles": [
"https://a.tile.openstreetmap.org/{z}/{x}/{y}.png",
"https://b.tile.openstreetmap.org/{z}/{x}/{y}.png",
"https://c.tile.openstreetmap.org/{z}/{x}/{y}.png"
],
"tileSize": 256
}
},
"layers": [{
"id": "osm",
"type": "raster",
"source": "osm",
"paint": {
"raster-fade-duration": 100
}
}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment