Your problem is not in R, shiny or plotGoogleMaps, but in IE support for the html5 standard. IE support for srcdoc is not good, read this link. You can use polyfill to support IE, but I donβt think it is necessary, since you already create the necessary html file in the plotGoogleMaps step.
Try using the following code. Instead of providing an iframe srcdoc, I use the src property. Also google map html is created in the www directory, so brilliant will be able to see it. I did this in IE 11. I think it should work in IE10.
I changed my answer to the usual brilliant solution for applications, as it seems that problems with a single file are also a problem. This is a link to shinyapps . And see also modern.ie screenshots and all IE screenshots here ,
ui.R
library(plotGoogleMaps) library(shiny) shinyUI(fluidPage( pageWithSidebar( headerPanel('Map'), sidebarPanel(""), mainPanel(uiOutput('mymap')) ) ))
server.R
library(plotGoogleMaps) library(shiny) shinyServer(function(input, output) { if (!file.exists("www")) { dir.create("www") } output$mymap <- renderUI({ data(meuse) coordinates(meuse) = ~x+y proj4string(meuse) <- CRS("+init=epsg:28992") m <- plotGoogleMaps(meuse, filename = 'www/myMap1.html', openMap = F) tags$iframe( src = 'myMap1.html', width = "100%", height = "600px" ) }) })
Atilla ozgur
source share