Last active
January 15, 2016 16:27
-
-
Save aagarw30/d37b2fba646f0d65a513 to your computer and use it in GitHub Desktop.
R Shiny and Leaflet # 1 - Demo leaflet() function code snippet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(shiny) | |
library(leaflet) | |
shinyServer(function(input, output) { | |
output$mymap <- renderLeaflet({ | |
# define the leaflet map object | |
leaflet() # this will just define the map widget | |
}) | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(shiny) | |
library(leaflet) | |
shinyUI(fluidPage( | |
leafletOutput("mymap") # empty map will show up as we defined only the map widget in server side but did not add the base map tile | |
)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment