如何修复使用Mapbox Bright产生的空白屏幕?

问题描述 投票:0回答:2

[我一直在尝试将图块“ Mapbox Bright”用于python上的网络地图,但它一直显示空白屏幕。我该怎么办?

map = folium.Map(location=[7.156640, 4.527821], zoom_start=6)
map.save("Map1.html")

map = folium.Map(location=[7.156640, 4.527821], zoom_start=6,tiles="Mapbox Bright")
map.save("Map1.html")
python folium
2个回答
1
投票

我不确定Mapbox磁贴是否应该仍然有效。参见有关可用图块集的列表,请参见https://leaflet-extras.github.io/leaflet-providers/preview/


0
投票

您需要获取API访问令牌才能使Mapbox切片正常工作。签出here

或者,您也可以使用内置的图块,例如-'OpenStreetMap','Stamen Terrain','Stamen Toner','Stamen Watercolor','cartodbpositron','cartodbdark_matter'。

如果需要folium tutorial,请查看我的博客

© www.soinside.com 2019 - 2024. All rights reserved.