Add TODO for the access token. #270

This commit is contained in:
Korina Cordero 2019-12-16 08:32:49 +00:00
parent 8e33149557
commit 185ac8aa0d
2 changed files with 2 additions and 0 deletions

View file

@ -12,6 +12,7 @@ function mapCreate(div_id, center_lat, center_lng, map_type, zoom) {
);
// add tile layer
// TODO: put access token in .env
var streets = L.tileLayer('https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token={accessToken}', {
attribution: 'Map data &copy; <a href="https://www.openstreetmap.org/">OpenStreetMap</a> contributors, <a href="https://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, Imagery © <a href="https://www.mapbox.com/">Mapbox</a>',
maxZoom: 18,

View file

@ -11,6 +11,7 @@ function mapCreate(div_id, center_lat, center_lng, map_type, zoom) {
zoom
);
//TODO: put access token in .env
// add tile layer
var streets = L.tileLayer('https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token={accessToken}', {
attribution: 'Map data &copy; <a href="https://www.openstreetmap.org/">OpenStreetMap</a> contributors, <a href="https://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, Imagery © <a href="https://www.mapbox.com/">Mapbox</a>',