EVOLUTION-MANAGER
Edit File: map-shiny.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Wrapper functions for using 'leaflet' in 'shiny'</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="R.css" /> </head><body> <table width="100%" summary="page for leafletOutput {leaflet}"><tr><td>leafletOutput {leaflet}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Wrapper functions for using <span class="pkg">leaflet</span> in <span class="pkg">shiny</span></h2> <h3>Description</h3> <p>Use <code>leafletOutput()</code> to create a UI element, and <code>renderLeaflet()</code> to render the map widget. </p> <h3>Usage</h3> <pre> leafletOutput(outputId, width = "100%", height = 400) renderLeaflet(expr, env = parent.frame(), quoted = FALSE) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>outputId</code></td> <td> <p>output variable to read from</p> </td></tr> <tr valign="top"><td><code>width, height</code></td> <td> <p>the width and height of the map (see <code><a href="../../htmlwidgets/html/shinyWidgetOutput.html">shinyWidgetOutput</a></code>)</p> </td></tr> <tr valign="top"><td><code>expr</code></td> <td> <p>An expression that generates an HTML widget (or a <a href="https://rstudio.github.io/promises/">promise</a> of an HTML widget).</p> </td></tr> <tr valign="top"><td><code>env</code></td> <td> <p>The environment in which to evaluate <code>expr</code>.</p> </td></tr> <tr valign="top"><td><code>quoted</code></td> <td> <p>Is <code>expr</code> a quoted expression (with <code>quote()</code>)? This is useful if you want to save an expression in a variable.</p> </td></tr> </table> <h3>Examples</h3> <pre> # !formatR library(shiny) app <- shinyApp( ui = fluidPage(leafletOutput('myMap')), server = function(input, output) { map = leaflet() %>% addTiles() %>% setView(-93.65, 42.0285, zoom = 17) output$myMap = renderLeaflet(map) } ) if (interactive()) app </pre> <hr /><div style="text-align: center;">[Package <em>leaflet</em> version 2.0.3 <a href="00Index.html">Index</a>]</div> </body></html>