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

"REmap" object in tabItem can't display! #251

Open
maliang1202 opened this issue Nov 28, 2017 · 0 comments
Open

"REmap" object in tabItem can't display! #251

maliang1202 opened this issue Nov 28, 2017 · 0 comments

Comments

@maliang1202
Copy link

Hi:
I use the shinydashboard to develop Web application then meet a problem. As follows:

Server:

  output$track_train <- renderREmap(
    remapB(
    center = BJU,
    zoom = 9,
    color = "grassgreen", 
    markLineData   = markLine_data,
    markPointData  = markPointData,
    markLineTheme  = markLine_Control,
    markPointTheme = markPointTheme,
    geoData = gdata
  )) 

UI:

body <- dashboardBody(
tabItems(
  tabItem(tabName = "wifi_01_company",
            tabsetPanel(type = "tabs",
              tabPanel("trail",
                       icon = icon("tag"),
                       REmapOutput("track_train")
                            ),
…………

error message:

Uncaught TypeError: Cannot read property 'options' of undefined
    at HTMLDocument.<anonymous> (app.js:156)
    at i (jquery.min.js:2)
    at Object.fireWith [as resolveWith] (jquery.min.js:2)
    at Function.ready (jquery.min.js:2)
    at HTMLDocument.K (jquery.min.js:2)
htmlwidgets.js:475 Uncaught TypeError: Cannot read property 'filter' of undefined
    at exports.OutputBinding.shinyBinding.find (htmlwidgets.js:475)
    at a (init_shiny.js:15)
    at f (init_shiny.js:215)
    at initShiny (init_shiny.js:279)

If I comment "REmapOutput("track_train")" , everything is OK.

If I modify code: dashboardSidebar(disbale=TRUE), Simple to box(REmapOutput("track_train")), everythig is OK.

How can I output "REmap" object in tabItem? Please help me, thankes.

REmap is R package, the source code: https://github.com/Lchiffon/REmap

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

1 participant