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

Calling ESRI world_ocean_reference in ggplot gives error #9

Closed
bltern opened this issue Jun 9, 2022 · 1 comment
Closed

Calling ESRI world_ocean_reference in ggplot gives error #9

bltern opened this issue Jun 9, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@bltern
Copy link

bltern commented Jun 9, 2022

If you call basemap_gglayer(ext = ext, map_service = "esri", map_type = "world_ocean_reference",
map_res = NULL,map_token = NULL, map_dir = NULL, force = NULL) or basemap_ggplot, an erorr is thrown:

"Error in grDevices::rgb(red = df$val1, green = df$val2, blue = df$val3, :
color intensity NA, not in 0:255"

This does not happen with the "world_ocean_base" basemap which renders just fine.

I am using the latest version 0.0.3.
Thanks. This is a great package that is very useful.

16EAGLE added a commit that referenced this issue Sep 7, 2022
@16EAGLE
Copy link
Owner

16EAGLE commented Sep 7, 2022

Thanks. To generally address this, I added a handling to account for cases in which maps returned by tile servers (for whatever reasons) consist of only a single value (e.g. 0) for the given query extent. Instead of failing with the above error, empty maps returned by tile servers are handed over gracefully now.

@16EAGLE 16EAGLE closed this as completed Sep 7, 2022
@16EAGLE 16EAGLE added the bug Something isn't working label Dec 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants