Description Usage Arguments Examples
Widget output function for use in Shiny
Widget render function for use in Shiny
1 2 3 | mapscapeOutput(outputId, width = "100%", height = "400px")
renderMapscape(expr, env = parent.frame(), quoted = FALSE)
|
outputId |
– id of output |
width |
– width of output |
height |
– height of output |
expr |
– expression for Shiny |
env |
– environment for Shiny |
quoted |
– default is FALSE |
1 2 3 4 | mapscapeOutput(1, '100%', '300px')
mapscapeOutput(1, '80%', '300px')
mapscapeOutput("hi")
mapscapeOutput("hello")
|
<div id="1" style="width:100%; height:300px; " class="mapscape html-widget html-widget-output"></div>
<div id="1" style="width:80%; height:300px; " class="mapscape html-widget html-widget-output"></div>
<div id="hi" style="width:100%; height:400px; " class="mapscape html-widget html-widget-output"></div>
<div id="hello" style="width:100%; height:400px; " class="mapscape html-widget html-widget-output"></div>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.