Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

split view #136

Closed
1 task
SymbolixAU opened this issue Feb 21, 2018 · 3 comments
Closed
1 task

split view #136

SymbolixAU opened this issue Feb 21, 2018 · 3 comments

Comments

@SymbolixAU
Copy link
Collaborator

SymbolixAU commented Feb 21, 2018


On the split branch I the beginnings of a demo.

devtools::install_github("SymbolixAU/googleway", ref = "split")
library(shinydashboard)
library(googleway)

ui <- dashboardPage(

  dashboardHeader(),
  dashboardSidebar(),
  dashboardBody(
    box(width = 6,
      google_mapOutput(outputId = "map")
    ),
    box(width = 6,
        google_mapOutput(outputId = "pano")
    )
  )
)

server <- function(input, output) {
  set_key(read.dcf("~/Documents/.googleAPI", fields = "GOOGLE_MAP_KEY"))

  output$map <- renderGoogle_map({
    google_map(location = c(-37.817386, 144.967463), zoom = 10, split_view = "pano")
  })
}

shinyApp(ui, server)
@SymbolixAU
Copy link
Collaborator Author

brought into master d4f8cb1

@SymbolixAU
Copy link
Collaborator Author

I think this code has introduced another bug. In some tests I'm getting a

Uncaught TypeError : Cannot read property 'style' of null

in the JS console, which I think has to do with the streetview. Will investigate.

@SymbolixAU
Copy link
Collaborator Author

closing because I haven't had this error in a while. If it reappears I'll reopen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants