Hi David,
The key was stored correctly in the environment. I solved the problem
by using addTiles() instead of addProviderTiles()
leaflet() %>%
addTiles(
paste0(
"https://{s}.tile.thunderforest.com/cycle/{z}/{x}/{y}.png?apikey=";,
Sys.getenv("OCM_API")
)
)
Best regards,
> On Mar 25, 2017, at 3:44 AM, Thierry Onkelinx
> wrote:
>
> Dear all,
>
> I'd like to use the OpenCycleMap as background image in a leaflet map.
> This requires an API key. I've stored the key in an environment
> variable. Below is a minimal example of the leaflet map. I still get
> the "API
2 matches
Mail list logo