5
0
mirror of https://git.coop/cotech/website.git synced 2024-11-23 23:23:06 +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:
caprenter 2023-06-06 13:59:32 +01:00 committed by Chris Croome
parent 4f27c1274b
commit 4e9b094f89

View File

@ -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 &copy; <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
};