Closed tradeli closed 5 years ago
yeah there's something strange going on when in Shiny, because this works on its own
add_heatmap(
map = google_map(
# width = '100%',
# height = '100%',
fullscreen_control = TRUE,
street_view_control = FALSE,
map_type_control = FALSE,
search_box = FALSE,
key = map_key
) ,
data = tabelaDadosCidadesCandidatas,
lat = "latitude",
lon = "longitude",
option_radius = 10
)
I'll have a look into it and let you know.
I've just pushed a commit to the dev version to check the charts library is loaded in a shiny environment. Could you install it and let me know if it works for you?
devtools::install_github("SymbolixAU/googleway")
Then you should see (I changed the option_radius
to 10
in this example)
shinyApp(ui = ui, server = server)
It worked!!!!!!!!!!!!! Thank you very much!
EDIT: I'm running R3.5.1, RStudio 1.1.4, Windows 10, Google Chrome 71
When I try to plot markers, it works just fine. But if I try to plot a heat map, it gives the error in the image below and nothing is plotted on the map:
No matter how many times I try to press F5 or forced reload, it still gives the same problem.
The code I'm using is this: