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:
parent
050317cd1e
commit
d3521c3931
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue