Skip to content
Snippets Groups Projects
Commit 4e9b094f authored by caprenter's avatar caprenter Committed by Chris Croome
Browse files

Fixes #63 Updates the mapbox url and map style to work

parent 4f27c127
No related branches found
No related tags found
1 merge request!82Add Co-operative IT
......@@ -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
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment