nextstrain上线后地图显示有问题
-
转载于:https://discussion.nextstrain.org/t/build-with-newest-nextstrain-ncov-has-api-requests-to-mapbox-403-forbidden/396/7?u=james
处理方式:检查了最新的主持代码,然后将src/util/globals.js更改为:export const getMapTilesSettings = () => { if (hasExtension("mapTiles")) { return getExtension("mapTiles"); } /* defaults */ const api = 'https://a.tile.openstreetmap.org/{z}/{x}/{y}.png'; return { api, attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors', mapboxWordmark: false }; };修改前:

修改后:
