另一种选择是使用bokeh的gmap()函数,但如果地址已经进行了地理编码,是否可以免费使用?使用gmap()函数需要一个google API密钥,但我不确定ti涉及的财务影响。
p = gmap("GOOGLE_API_KEY", map_options, title="Title")编辑:
我可以使用以下代码将folium映射添加到Bokeh仪表板中。它使用DIV Bokeh小部件,并在该小部件中插入iframe:
from bokeh.models import Div
output_file('dashboardWithFoliumMap.html')
mapa = Div(text="<iframe src="r'D:\MapFolder\Maps\myMap.html'" style='min-width:calc(100vw - 26px); height: 500px'><iframe>")
show(mapa)发布于 2021-01-26 15:26:45
为了在Bokeh Dashboard中嵌入folium地图,
https://stackoverflow.com/questions/61554430
复制相似问题