Skip to content

Commit

Permalink
add third-party tiles to map-tiles example
Browse files Browse the repository at this point in the history
  • Loading branch information
colleenmcginnis committed Jun 14, 2019
1 parent ba3b82f commit b64b839
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions docs/pages/example/map-tiles.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
"sources": {
"raster-tiles": {
"type": "raster",
"url": "mapbox://" + tileset,
"tileSize": 256
"tiles": ["http://tile.stamen.com/watercolor/{z}/{x}/{y}.jpg"],
"tileSize": 256,
"attribution": '<a id="home-link" target="_top" href="../" class="">Map tiles</a> by <a target="_top" href="http://stamen.com">Stamen Design</a>, under <a target="_top" href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>. Data by <a target="_top" href="http://openstreetmap.org">OpenStreetMap</a>, under <a target="_top" href="http://creativecommons.org/licenses/by-sa/3.0" class="">CC BY SA</a>'
}
},
"layers": [{
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/example/map-tiles.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*---
title: Add a raster tile source
description: Using a Mapbox raster tile source in a map.
description: Add a third-party raster source to the map.
tags:
- sources
pathname: /mapbox-gl-js/example/map-tiles/
Expand Down

0 comments on commit b64b839

Please sign in to comment.