I am trying to display TMS Tile files from a local directory in Bokeh 2.2.3 (code is inline in Jupyter notebook for testing) but am not getting any image, just an empty plot.
The code I am using is as follows:
from bokeh.models.tiles import TMSTileSource, TileSource
from bokeh.plotting import figure, show
from bokeh.io import output_notebook
from bokeh.resources import INLINE
import bokeh.io
bokeh.io.output_notebook(INLINE)
p=figure(title = 'Slide Tile', plot_height = 1024, plot_width = 1024,
toolbar_location = 'right', tools = 'pan, wheel_zoom, reset' )
URL = 'http://localhost:8000/tiles/{z}/{x}/{y}.png'
### url is served by python3 -m http.server 8000 instantiated in parent dir of "tiles"
mytile = TMSTileSource(url=URL,tile_size=256, min_zoom=1, max_zoom=9, initial_resolution=512,
x_origin_offset=0, y_origin_offset=-86223 )
p.add_tile(mytile)
show(p)
This produces an empty plot.
Note: The tile file is valid and displays ok in many other js based Tile renderers
The note book is launched from the parent dir of the tile file
From the web console I get:
[bokeh] could not set initial ranges main.min.js:753:11995
Source map error: Error: request failed with status 404
Resource URL: http://localhost:8888/static/notebook/js/main.min.js?v=68936091b7b2dafbb368b29294028b02
Source Map URL: main.min.js.map
Any thoughts