Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESRI IMAGERY tiles turn grey when zoomed in #12095

Open
HuxleyJay opened this issue Apr 22, 2022 · 3 comments
Open

ESRI IMAGERY tiles turn grey when zoomed in #12095

HuxleyJay opened this issue Apr 22, 2022 · 3 comments

Comments

@HuxleyJay
Copy link

HuxleyJay commented Apr 22, 2022

Hi there,

It would be great to set the ESRI’s " NoDataTileBehavior", so you could zoom in further without the map turning grey.
https://developers.arcgis.com/qt/cpp/api-reference/maptypes-h.html#NoDataTileBehavior-enum

Example with Bokeh 2.4.2 (run this then zoom in all the way until it turns grey to see what it does):

from bokeh.plotting import figure, output_file, show
from bokeh.tile_providers import ESRI_IMAGERY, get_provider

tile_provider = get_provider(ESRI_IMAGERY)

# range bounds supplied in web mercator coordinates
p = figure(x_range=(-2000000, 6000000), y_range=(-1000000, 7000000),
           x_axis_type="mercator", y_axis_type="mercator")
p.add_tile(tile_provider)

show(p)
@bryevdv
Copy link
Member

bryevdv commented Apr 24, 2022

@martinfleis does xyzservices support configuring this behaviour for ESRI tile sources?

@martinfleis
Copy link
Contributor

I am no expert on ArcGIS API but I believe xyzservices is using a different service that the one linked above. If someone tells me how to append such an option to a standardised XYZ url of this format, I happy to add that option to the TileProvider object but I am not sure if this is possible on the ESRI side.

https://server.arcgisonline.com/ArcGIS/rest/services/{variant}/MapServer/tile/{z}/{y}/{x}

@bryevdv
Copy link
Member

bryevdv commented Apr 30, 2022

@HuxleyJay Can you point us to documentation about how to actually supply this parameter to ArcGIS? Is it passed as a URL parameter?

@martinfleis For 2.4 I suppose so. 2.4 seems to use

ESRI_IMAGERY='https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{Z}/{Y}/{X}.jpg'

However Bokeh 3.0 only uses xyzservices internally, and no longer maintains any different provider URLs of its own.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants