{"action":"closed","issue":{"url":"https://api.github.com/repos/timelyportfolio/reactR/issues/1","repository_url":"https://api.github.com/repos/timelyportfolio/reactR","labels_url":"https://api.github.com/repos/timelyportfolio/reactR/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/timelyportfolio/reactR/issues/1/comments","events_url":"https://api.github.com/repos/timelyportfolio/reactR/issues/1/events","html_url":"https://github.com/timelyportfolio/reactR/issues/1","id":205444918,"node_id":"MDU6SXNzdWUyMDU0NDQ5MTg=","number":1,"title":"reactR example with selectize.js and leaflet","user":{"login":"TrantorM","id":22772574,"node_id":"MDQ6VXNlcjIyNzcyNTc0","avatar_url":"https://avatars0.githubusercontent.com/u/22772574?v=4","gravatar_id":"","url":"https://api.github.com/users/TrantorM","html_url":"https://github.com/TrantorM","followers_url":"https://api.github.com/users/TrantorM/followers","following_url":"https://api.github.com/users/TrantorM/following{/other_user}","gists_url":"https://api.github.com/users/TrantorM/gists{/gist_id}","starred_url":"https://api.github.com/users/TrantorM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TrantorM/subscriptions","organizations_url":"https://api.github.com/users/TrantorM/orgs","repos_url":"https://api.github.com/users/TrantorM/repos","events_url":"https://api.github.com/users/TrantorM/events{/privacy}","received_events_url":"https://api.github.com/users/TrantorM/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-02-05T18:51:11Z","updated_at":"2018-12-18T02:49:19Z","closed_at":"2018-12-18T02:49:19Z","author_association":"NONE","body":"Is it possible to use reactR with selectize.js and leaflet?\r\n\r\nI try to do [this minimal shiny app](https://geographica.shinyapps.io/Minimalexample/), but without shiny. It's a leaflet choropleth map with a topojson. With the input panel you can select which property of the topojson (integer) should be used for choropleth. Could this be done with reactR?\r\n\r\n```\r\nlibrary(shiny)\r\nlibrary(leaflet)\r\nlibrary(leaflet.extras)   # devtools::install_github('bhaskarvk/leaflet.extras')\r\nlibrary(readr)\r\n\r\n\r\n# Define UI for application that draws a histogram\r\nui <- fluidPage(\r\n   \r\n   # Application title\r\n   titlePanel(\"Minimal shiny example for a leaflet choropleth with selectable properties of the underlying topojson\"),\r\n   \r\n   # Input panel to select the desired property of the topojson\r\n   inputPanel(\r\n     selectInput(\"prop\", label = \"Property:\",choices = c('incidents','dist_num'), selected = 'incidents')\r\n   ),\r\n   \r\n   # Map below sidebar layout\r\n   leafletOutput(\"map\")\r\n)\r\n\r\n# server logic to draw a leaflet\r\nserver <- function(input, output) {\r\n   \r\ntopojson <- read_file('https://rawgit.com/TrantorM/leaflet-choropleth/gh-pages/examples/basic_topo/crimes_by_district.topojson')\r\n\r\n output$map <- renderLeaflet({\r\n     property = input$prop\r\n     leaflet() %>% \r\n       setView(-75.14, 40, zoom = 11) %>%\r\n       addProviderTiles(\"CartoDB.Positron\") %>% \r\n       addGeoJSONChoropleth(\r\n         topojson,\r\n         valueProperty =property\r\n       )\r\n   })\r\n   \r\n}\r\n\r\n# Run the application \r\nshinyApp(ui = ui, server = server)\r\n```\r\n\r\nI also asked in [stackoverflow](http://stackoverflow.com/questions/42013913/reactive-selection-of-json-property-in-r-for-leaflet-without-shiny) regarding this problem. "}}
{"actor":{"display_login":"timelyportfolio"}}