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。

那么,有没有其他方法来获取工具提示呢。在

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值