From 185ac8aa0db0a3354c7a1c0c027fe2479b390c24 Mon Sep 17 00:00:00 2001 From: Korina Cordero Date: Mon, 16 Dec 2019 08:32:49 +0000 Subject: [PATCH] Add TODO for the access token. #270 --- templates/map/initOpenStreetMap.js | 1 + templates/map/joOpenStreetMap.js | 1 + 2 files changed, 2 insertions(+) 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',