当发现叶面时,在尝试向叶面地图添加标记时出现属性错误。
import folium
map_osm=folium.Map(location=[50.4547,30.5238], zoom_start=6, tiles='Stamen Terrain')
map_osm.Marker(location=[45.463612, 29.294559], popup='Solar Power Station')
map_osm.save('spst.html')
但是,我得到以下错误:
AttributeError: 'Map' object has no attribute 'Marker'
感谢你的帮助!
正确的语法如下:
所以你的代码应该看起来像
你可能有一个老版本的叶状体。尝试:
相关问题 更多 >
编程相关推荐