Compare commits

...

2 Commits

Author SHA1 Message Date
Connor Hackenberg f3736d4d94
Merge pull request #65 from RandomHuman2020/patch-1
Make mapboxgl.accessToken in radar.js use the map_key defined in config.js
2024-01-16 18:08:23 -05:00
RandomHuman d3521c3931
make mapboxgl accesstoken use the mapkey defined in config.js
Tested this on a local instance of weatherscan, doesn't break the radar.
2024-01-13 22:34:03 -07:00
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