make mapboxgl accesstoken use the mapkey defined in config.js

Tested this on a local instance of weatherscan, doesn't break the radar.
This commit is contained in:
RandomHuman 2024-01-13 22:34:03 -07:00 committed by GitHub
parent 050317cd1e
commit d3521c3931
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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