#' The application server-side
#'
#' @param input,output,session Internal parameters for {shiny}.
#' DO NOT REMOVE.
#' @import shiny
#' @import leaflet
#' @noRd
app_server <- function( input, output, session ) {
output$map <- renderLeaflet({
leaflet(shapefile_br) %>%
addProviderTiles(providers$Stamen.TonerLite,
options = providerTileOptions(noWrap = TRUE)
) %>%
addPolygons(color = "#444444", weight = 1, smoothFactor = 0.5)
})
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.