Do you know a provider for BBoxTileSource

Who knows of an API that works with the BBoxTileSource?

I tried this one:

tile = BBoxTileSource(url=‘https://lz4.overpass-api.de/api/map?bbox={XMIN},{YMIN},{XMAX},{YMAX}’)

``

but nothing is being display.

(My goal is to display a world map on a bokeh plot, with x/y axes specified in lon/lat coordinates)

To elaborate further, the example here: https://bokeh.pydata.org/en/latest/docs/user_guide/geo.html
in section “Tile Providers” shows how to load tiles. But the x/y range is then in meters!
How to use glyphs with lon/lat coordinates then? Must I really do the conversion? And how?

···

On Thursday, March 22, 2018 at 11:57:23 AM UTC+1, Artur Scholz wrote:

Who knows of an API that works with the BBoxTileSource?

I tried this one:

tile = BBoxTileSource(url=‘https://lz4.overpass-api.de/api/map?bbox={XMIN},{YMIN},{XMAX},{YMAX}’)

``

but nothing is being display.

(My goal is to display a world map on a bokeh plot, with x/y axes specified in lon/lat coordinates)

Hi,

The tile providers use Web Mercator, which is denoted in meters (northing and eastings). Except for BBoxTileSource, all ranges must current be specified (by users) in those units. The BBoxTileSource has a use_latlon property that you can set to provide coordinates in lat/lon instead. That said, BBoxTileSource is a dusty corner of Bokeh (I haven't thought about it in years.) that was added by someone who is no longer contributed. I don't see much of anything by way of tests or examples for it, so it's possible it's just broken. If that's the case, a GH issue would be appropriate and appreciated.

As for how to do the conversion to web mercator, I imagine a library like cartopy (http://scitools.org.uk/cartopy/\) can do that, otherwise I know there are answers on Stack Overflow as well. Certainly we'd love for this to be easier but the current very small core team is already overwhelmed and also lacking in GIS experience. It would be great for someone interested and experienced in map plotting to join the project.

Thanks,

Bryan

···

On Mar 22, 2018, at 05:33, Artur Scholz <[email protected]> wrote:

To elaborate further, the example here: https://bokeh.pydata.org/en/latest/docs/user_guide/geo.html
in section "Tile Providers" shows how to load tiles. But the x/y range is then in meters!
How to use glyphs with lon/lat coordinates then? Must I really do the conversion? And how?

On Thursday, March 22, 2018 at 11:57:23 AM UTC+1, Artur Scholz wrote:
Who knows of an API that works with the BBoxTileSource?

I tried this one:

tile = BBoxTileSource(url='https://lz4.overpass-api.de/api/map?bbox={XMIN},{YMIN},{XMAX},{YMAX\}&#39;\)

but nothing is being display.

(My goal is to display a world map on a bokeh plot, with x/y axes specified in lon/lat coordinates)

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/c5ac2f6d-3109-4024-91d1-af3760fb9c99%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.