[我一直在尝试将图块“ 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")
我不确定Mapbox磁贴是否应该仍然有效。参见有关可用图块集的列表,请参见https://leaflet-extras.github.io/leaflet-providers/preview/
您需要获取API访问令牌才能使Mapbox切片正常工作。签出here。
或者,您也可以使用内置的图块,例如-'OpenStreetMap','Stamen Terrain','Stamen Toner','Stamen Watercolor','cartodbpositron','cartodbdark_matter'。
如果需要folium tutorial,请查看我的博客