另一个选项是使用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)
用于在Bokeh仪表板中嵌入叶贴图
相关问题 更多 >
编程相关推荐