In [1]:
from bokeh.models import (
Circle, GMapPlot, Range1d, ColumnDataSource,
PanTool, WheelZoomTool, ResetTool, GMapOptions)
from bokeh.io import output_notebook, show
output_notebook()
In [2]:
gmap_options = GMapOptions(lat=30.2861, lng=-97.7394, map_type="roadmap", zoom=13)
x_range = Range1d(28, 32)
y_range = Range1d(-96, -100)
plot = GMapPlot(
x_range=x_range,
y_range=y_range,
map_options=gmap_options,
title = "Austin",
)
source = ColumnDataSource(
data=dict(
lat=[30.2861, 30.2855, 30.2869],
lon=[-97.7394, -97.7390, -97.7405],
fill=['orange', 'blue', 'green']
)
)
circle = Circle(x="lon", y="lat", size=15, fill_color="fill", line_color="black")
plot.add_glyph(source, circle)
plot.add_tools(PanTool(), WheelZoomTool(), ResetTool())
show(plot)
Out[2]:
In [ ]: