From c69245403358f11a8ee296c4b5b5a37a2d2b687c Mon Sep 17 00:00:00 2001 From: ianalexmac Date: Wed, 8 May 2024 16:30:45 -0800 Subject: [PATCH] change secrets handling in heatmap.js --- code/heatmap.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/code/heatmap.js b/code/heatmap.js index acede63..c09d848 100644 --- a/code/heatmap.js +++ b/code/heatmap.js @@ -16,11 +16,7 @@ function convertToGeoJSON(data) { } - -fetch('/mapbox-api-key') - .then(response => response.json()) - .then(data => { - mapboxgl.accessToken = data.key; +mapboxgl.accessToken = 'MAPBOX_API'; var map = new mapboxgl.Map({ container: 'map', // container id