diff --git a/templates/map/initOpenStreetMap.js b/templates/map/initOpenStreetMap.js index 37750b3e..f14c2cef 100644 --- a/templates/map/initOpenStreetMap.js +++ b/templates/map/initOpenStreetMap.js @@ -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 © OpenStreetMap contributors, CC-BY-SA, Imagery © Mapbox', maxZoom: 18, diff --git a/templates/map/joOpenStreetMap.js b/templates/map/joOpenStreetMap.js index 5a50d5c3..3d92c330 100644 --- a/templates/map/joOpenStreetMap.js +++ b/templates/map/joOpenStreetMap.js @@ -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 © OpenStreetMap contributors, CC-BY-SA, Imagery © Mapbox',