Created
January 15, 2016 16:30
-
-
Save aagarw30/fdbcf88ae0ccded69087 to your computer and use it in GitHub Desktop.
R Shiny and Leaflet # 2 - Demo addTiles() function code snippet
This file contains hidden or 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() %>% | |
addTiles() # this adds the base map tile - OSM (by default) | |
}) | |
}) |
This file contains hidden or 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") | |
)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment