Making a world map centred on Australia using a tiles provider.
I noted that points posted to the map did not wrap properly so for example the point glyphs in the US, original on the left hand side, of a world map did not wrap to the right hand side, i.e. they do not show, when the map was re-centred to Australia.
Working example here. Note scroll to the left to see the US plotted points.
from bokeh.plotting import figure, output_file, show, ColumnDataSource
from bokeh.tile_providers import CARTODBPOSITRON, get_provider
from bokeh.models import Range1d
output_file("tile.html")
tile_provider = get_provider(CARTODBPOSITRON)
x=[12897620.918646706,16896261.55573741,-9754904.714316405,-13627665.271218073]
y=[ -3757050.888263247,-3885790.8501072032,5142736.869193021,4547675.354340557]
left = -2200000
right = 38000000
bottom = -5300000
top = 11000000
p = figure(plot_width=1500, plot_height=800,x_range=Range1d(left, right), y_range=Range1d(bottom, top))
source = ColumnDataSource(data=dict(lon=x, lat=y))
p.add_tile(tile_provider)
p.circle(x="lon", y="lat", size=15, fill_color="red", fill_alpha=0.8, source=source)
show(p)
What is the best way to get this to work properly?
.