In [1]:
from __future__ import print_function
from bokeh.browserlib import view
from bokeh.document import Document
from bokeh.embed import file_html
from bokeh.models.glyphs import Circle
from bokeh.models import (
GMapPlot, GeoJSPlot, Range1d, ColumnDataSource, LinearAxis,
PanTool, WheelZoomTool, BoxSelectTool, ResetTool,
BoxSelectionOverlay, GMapOptions, GeoJSOptions, GeoJSPlot,
NumeralTickFormatter, PrintfTickFormatter)
from bokeh.resources import INLINE
from bokeh.io import output_notebook, show
output_notebook()
In [4]:
gmap_options = GMapOptions(lat=30.2861, lng=-97.7394, map_type="roadmap", zoom=13)
plot = GMapPlot(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())
show(plot)
In [ ]:
In [ ]: