Skip to content

Instantly share code, notes, and snippets.

@brendancol
Created September 30, 2015 22:04
Show Gist options
  • Save brendancol/51e145f4d294b1968168 to your computer and use it in GitHub Desktop.
Save brendancol/51e145f4d294b1968168 to your computer and use it in GitHub Desktop.
from bokeh.plotting import figure, show, output_file
output_file("tile_layer_example.html", title="Tile Layer Example")
osm_service = 'http://c.tile.openstreetmap.org/{Z}/{X}/{Y}.png'
p = figure()
p.plot_width = 800
p.plot_height = 800
p.tile_layer(url=osm_service, tile_provider="WMTSTileProvider", tile_size=256)
show(p)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment