Open Sinnup opened 4 years ago
Can you provide some code I can run to reproduce this error?
I'm getting this error as well. I have a few googlemaps and knit to HTML. The maps load fine, but a few days later it doesn't load and I get this error. The error seems to be an issue with embedding the API key? Link to knitted HTML: https://drive.google.com/file/d/1FcwXehP0T0EOt99rnJpTPXdGUz5RsOO3/view?usp=sharing
Access is denied to that link
Sorry, should work now.
I don't understand waht that file is showing me - have you meant to upload raw html?
You have to download the HTML first to view it.
I removed the HTML as the API key may have been compromised. I'm getting this error after 4 days.
map_key <- readr::read_lines(".//data/api.txt")
googleway::set_key(key = map_key)
googleway::google_map(
scale_control = FALSE,
key = map_key,
map_type_control = FALSE,
rotate_control = FALSE,
fullscreen_control= FALSE,
street_view_control = FALSE,
# style = map_styles()$silver,
# search_box = TRUE,
height = 400,
zoom = 9)
I do notice it works when the knitted HTML is not self-contained.
I do notice it works when the knitted HTML is not self-contained.
Is this related to what you're asking for in #236 ?
Not exactly related. I'm no longer getting this API error so this issue has been resolved for me. Or at least I've been able to find a suitable alternative. If the reports are self-contained, I get this error after 4 days. If not self-contained, maps work fine.
How do you knit so the html is not self-contained?
yaml header:
output: rmarkdown::html_document:
toc: true
toc_float: true
theme: flatly
self_contained: false
ah yes - of course.
Since days I've seen this error, but not sure why.
Google Maps JavaScript API error: NotLoadingAPIFromGoogleMapsError https://developers.google.com/maps/documentation/javascript/error-messages#not-loading-api-from-google-maps-error
It used to work fine, but now it's not. Can you take a look at it? This error is shown in my firebase hosting.