mapbox skips accesstoken detection

When the token is not written, the console will report this error

When writing the token, this error will be reported.
insert image description here
If you want this error to stop happening, don’t declare mapboxgl.accessToken again, and change the brackets in the red circle in the file under the node_mudules folder to false.
this._requestManager._customAccessToken, (t=>{if(t&&(false))
insert image description here

Guess you like

Origin blog.csdn.net/Sakura1998gis/article/details/131707234