From 757f5c2758b4932b705c5d865c8879942544fa4b Mon Sep 17 00:00:00 2001 From: 16EAGLE Date: Wed, 20 Nov 2024 16:08:37 +0100 Subject: [PATCH] addressed 404 request error described in #32 --- NEWS.md | 4 ++++ R/internal.R | 7 ++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/NEWS.md b/NEWS.md index 3a5aa70..6d116c2 100644 --- a/NEWS.md +++ b/NEWS.md @@ -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 diff --git a/R/internal.R b/R/internal.R index 39a4811..6f9776a 100644 --- a/R/internal.R +++ b/R/internal.R @@ -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