I am trying to embed a plotGoogleMap in a shiny app online.
Locally the app works perfectly, but when uploading via shinyapps to shinyapps.io the .html map does not load.
This is how the app looks like with the unloaded .html map:
https://chamaoskurumi.shinyapps.io/TESTmapSHINY/
Any ideas how to solve this issue?
See my code below.
ui.R
library('markdown')
library('shiny')
shinyUI(navbarPage("plotGooleMaps in shinyapps",
mainPanel(uiOutput('mymap'))
)
)
server.R
library('shiny')
library('plotGoogleMaps')
shinyServer(function(input, output){
output$mymap <- renderUI({
data(meuse)
coordinates(meuse) = ~x+y
proj4string(meuse) <- CRS("+init=epsg:28992")
m <- plotGoogleMaps(meuse, filename = 'myMap1.html', openMap = F)
tags$iframe(
srcdoc = paste(readLines('myMap1.html'), collapse = '\n'),
width = "900Px",
height = "500Px"
)
})
})
deploy app with shinyapps
library('shinyapps') setwd("~/working directory where ui.R and server.R are located locally") deployApp()
----------------------------------------
This is the error log that I can't decipher:
PS: I posted the same question on stackoverflow.
--
You received this message because you are subscribed to the Google Groups "ShinyApps Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shinyapps-use...@googlegroups.com.
To post to this group, send email to shinyap...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shinyapps-users/a7dfed61-1520-430a-8c12-471594fa9880%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.