gmap 支持python吗_在gmap中使用bokeh的python为for circle添加工具提示
我的密碼from bokeh.io import output_file, show
from bokeh.models import ColumnDataSource, GMapOptions
import bokeh.plotting as plotting
from bokeh.plotting import gmap
import tkinter as tk
screenInfo=tk.Tk()
map_options = GMapOptions(lat=26.366314, lng= 77.016513, map_type="roadmap", zoom=5)
# For GMaps to function, Google requires you obtain and enable an API key:
#
# https://developers.google.com/maps/documentation/javascript/get-api-key
#
# Replace the value below with your personal API key:
p = gmap(API_KEY, map_options, title="Austin",plot_width=screenInfo.winfo_screenwidth()-100, plot_height=screenInfo.winfo_screenheight()-100)
source = ColumnDataSource(
df
)
p.circle(x="lat", y="lon", size=15,name="Place", fill_color="blue", fill_alpha=0.8, source=source)
plotting.output_file('gmap.html')
show(p)
這里我需要添加一個圓的工具提示
我試著用
^{pr2}$
但工具提示只適用于圖形,而不適用于gmap。
那么,有沒有其他方法來獲取工具提示呢。在
總結
以上是生活随笔為你收集整理的gmap 支持python吗_在gmap中使用bokeh的python为for circle添加工具提示的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: python获取路由器信息_python
- 下一篇: “裕同集团易普优APS项目启动大会”顺利