Add TODO for the access token. #270
This commit is contained in:
parent
8e33149557
commit
185ac8aa0d
2 changed files with 2 additions and 0 deletions
|
|
@ -12,6 +12,7 @@ function mapCreate(div_id, center_lat, center_lng, map_type, zoom) {
|
||||||
);
|
);
|
||||||
|
|
||||||
// add tile layer
|
// 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}', {
|
var streets = L.tileLayer('https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token={accessToken}', {
|
||||||
attribution: 'Map data © <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>',
|
attribution: 'Map data © <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,
|
maxZoom: 18,
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@ function mapCreate(div_id, center_lat, center_lng, map_type, zoom) {
|
||||||
zoom
|
zoom
|
||||||
);
|
);
|
||||||
|
|
||||||
|
//TODO: put access token in .env
|
||||||
// add tile layer
|
// add tile layer
|
||||||
var streets = L.tileLayer('https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token={accessToken}', {
|
var streets = L.tileLayer('https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token={accessToken}', {
|
||||||
attribution: 'Map data © <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>',
|
attribution: 'Map data © <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>',
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue