from bokeh.io import output_file, show
from bokeh.models import GeoJSONDataSource
from bokeh.plotting import figure
from bokeh.sampledata.sample_geojson import geojson

output_file("geojson_points.html", title="GeoJSON Points")

p = figure()
p.circle(line_color=None, fill_alpha=0.8, source=GeoJSONDataSource(geojson=geojson))
show(p)

from bokeh.io import output_file, show
from bokeh.models import GeoJSONDataSource, HoverTool
from bokeh.plotting import figure
from bokeh.sampledata.sample_geojson import geojson

output_file("geojson_points.html", title="GeoJSON Points")

p = figure()
p.circle(line_color=None, fill_alpha=0.8, size=20, source=GeoJSONDataSource(geojson=geojson))
p.add_tools(HoverTool(tooltips=[("Organisation Name", "@OrganisationName")]))
show(p)

Add HoverTool to show off properties availability
Add HoverTool to show off properties availability

  from bokeh.io import output_file, show
- from bokeh.models import GeoJSONDataSource
+ from bokeh.models import GeoJSONDataSource, HoverTool
  from bokeh.plotting import figure
  from bokeh.sampledata.sample_geojson import geojson
  
  output_file("geojson_points.html", title="GeoJSON Points")
  
  p = figure()
- p.circle(line_color=None, fill_alpha=0.8, source=GeoJSONDataSource(geojson=geojson))
+ p.circle(line_color=None, fill_alpha=0.8, size=20, source=GeoJSONDataSource(geojson=geojson))
+ p.add_tools(HoverTool(tooltips=[("Organisation Name", "@OrganisationName")]))
  show(p)
  
Add HoverTool to show off properties availability
## Code Before:
from bokeh.io import output_file, show
from bokeh.models import GeoJSONDataSource
from bokeh.plotting import figure
from bokeh.sampledata.sample_geojson import geojson

output_file("geojson_points.html", title="GeoJSON Points")

p = figure()
p.circle(line_color=None, fill_alpha=0.8, source=GeoJSONDataSource(geojson=geojson))
show(p)

## Instruction:
Add HoverTool to show off properties availability
## Code After:
from bokeh.io import output_file, show
from bokeh.models import GeoJSONDataSource, HoverTool
from bokeh.plotting import figure
from bokeh.sampledata.sample_geojson import geojson

output_file("geojson_points.html", title="GeoJSON Points")

p = figure()
p.circle(line_color=None, fill_alpha=0.8, size=20, source=GeoJSONDataSource(geojson=geojson))
p.add_tools(HoverTool(tooltips=[("Organisation Name", "@OrganisationName")]))
show(p)
