mirror of
https://git.coop/cotech/website.git
synced 2024-11-23 15:13:07 +00:00
Fixes #63 Updates the mapbox url and map style to work
The old style maps have been deprecated Fix from https://docs.mapbox.com/help/troubleshooting/migrate-legacy-static-tiles-api/ Signed-off-by: Chris Croome <chris@webarchitects.co.uk>
This commit is contained in:
parent
4f27c1274b
commit
4e9b094f89
@ -9,12 +9,12 @@ var app = window.app || {};
|
||||
|
||||
var mapboxAccessToken = window.mapboxAccessToken || '';
|
||||
|
||||
app.apiUrl = 'https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token=' + mapboxAccessToken;
|
||||
app.apiUrl = 'https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token=' + mapboxAccessToken;
|
||||
|
||||
app.tileLayerOptions = {
|
||||
maxZoom: 18,
|
||||
attribution: 'Map data © <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, ' + '<a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, ' + 'Imagery © <a href="http://mapbox.com">Mapbox</a>',
|
||||
id: 'mapbox.streets',
|
||||
id: 'mapbox/streets-v12',
|
||||
token: window.mapboxAccessToken
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user