【发布时间】:2021-02-10 16:07:00
【问题描述】:
我正在使用 folium 生成地图。
m = folium.Map(
location=[47.842167, -120.101655],
zoom_start=8,
tiles='Stamen Toner'
)
points = (47.842167, -120.101655), (46.835627, -118.26239)
folium.Rectangle(bounds=points, color='#ff7800', fill=True, fill_color='#ffff00', fill_opacity=0.2).add_to(m)
m
我想只保存矩形中的部分..
可以用 python 做到这一点吗? 提前谢谢你。
【问题讨论】:
-
作为图片保存?
-
是的 @BobHaffner ,但如果可能的话也可以在 html 中。但只有矩形中的部分。
标签: python openstreetmap folium