Skip to content

Commit

Permalink
Switch Mapbox to new static tiles api (#352)
Browse files Browse the repository at this point in the history
  • Loading branch information
zerocrates authored May 17, 2020
1 parent 4e417a5 commit 268a27a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions leaflet-providers.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,14 +239,16 @@
}
},
MapBox: {
url: 'https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}{r}.png?access_token={accessToken}',
url: 'https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}{r}?access_token={accessToken}',
options: {
attribution:
'<a href="https://www.mapbox.com/about/maps/" target="_blank">&copy; Mapbox</a> ' +
'&copy; <a href="https://www.mapbox.com/about/maps/" target="_blank">Mapbox</a> ' +
'{attribution.OpenStreetMap} ' +
'<a href="https://www.mapbox.com/map-feedback/" target="_blank">Improve this map</a>',
subdomains: 'abcd',
id: 'mapbox.streets',
tileSize: 512,
maxZoom: 18,
zoomOffset: -1,
id: 'mapbox/streets-v11',
accessToken: '<insert your access token here>',
}
},
Expand Down

0 comments on commit 268a27a

Please sign in to comment.