From d3521c39310903282c86685b8c39080afc7e3758 Mon Sep 17 00:00:00 2001 From: RandomHuman <73597826+RandomHuman2020@users.noreply.github.com> Date: Sat, 13 Jan 2024 22:34:03 -0700 Subject: [PATCH] make mapboxgl accesstoken use the mapkey defined in config.js Tested this on a local instance of weatherscan, doesn't break the radar. --- webroot/js/radar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webroot/js/radar.js b/webroot/js/radar.js index 6041e28..810c4b0 100644 --- a/webroot/js/radar.js +++ b/webroot/js/radar.js @@ -3,7 +3,7 @@ var customMap = false; function initBasemaps() { //main map - mapboxgl.accessToken = 'pk.eyJ1IjoiZ29sZGJibGF6ZXoiLCJhIjoiY2tiZTRnb2Q2MGkxajJwbzV2bWd5dXI5MyJ9.jU-2DqGCBI14K-acyN9RCw'; + mapboxgl.accessToken = map_key map = new mapboxgl.Map({ container: 'radar-3', // container ID style: 'mapbox://styles/goldbblazez/cl10wz58y000q14ptdm3vkmxe', // style URL