063:mapboxGL常见错误:Style is not done loading(原因及解决办法)-LMLPHP

第063个



作者在做vue+mapbox的项目,将geojson的数据加载到地图上来,形成的效果图如下
063:mapboxGL常见错误:Style is not done loading(原因及解决办法)-LMLPHP

但是在处理的时候,遇到过这个一个错误,提示信息如下:
063:mapboxGL常见错误:Style is not done loading(原因及解决办法)-LMLPHP

vue.runtime.esm.js:3049 Error: Style is not done loading
    at Qt._checkLoaded (mapbox-gl.js:36:1)
    at Qt.addSource (mapbox-gl.js:36:1)
    at Map.addSource (mapbox-gl.js:36:1)
    at VueComponent.loadData (Home.vue:37:1)
    at VueComponent.mounted (Home.vue:32:1)
    at invokeWithErrorHandling (vue.runtime.esm.
10-23 08:58