Skip to content

Commit

Permalink
addressed 404 request error described in #32
Browse files Browse the repository at this point in the history
  • Loading branch information
16EAGLE committed Nov 20, 2024
1 parent 7b24778 commit 757f5c2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
## basemaps 0.1.0
Decreasing dependencies, minor improvements

**Bugs:**

* fixed request format error for `map_service = "maptiler"`, `map_type = "aquarelle"`, resulting in a `404` error (issue #32)

**Changes:**

* updated partly outdated documentation examples
Expand Down
7 changes: 4 additions & 3 deletions R/internal.R
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,10 @@ out <- function(input, type = 1, ll = NULL, msg = FALSE, sign = "", verbose = ge
if(any(
all(map_service == "osm_stamen", map_type == "watercolor"),
all(map_service == "maptiler", map_type == "satellite"))
) ".jpg" else if(
all(map_service == "maptiler", map_type == "aquarelle")
) ".webp" else ".png" # jpg or png
) ".jpg" else ".png" # jpg or png
#else if(
# all(map_service == "maptiler", map_type == "aquarelle")
#) ".webp" else ".png" # jpg or png
}, # suffix or not
if(map_service == "mapbox") paste0("?access_token=", map_token), # token or not
if(map_service == "osm_thunderforest") paste0("?apikey=", map_token), # token or not
Expand Down

0 comments on commit 757f5c2

Please sign in to comment.