helpers: Widget output function for use in Shiny

Description Usage Arguments Examples

Description

Widget output function for use in Shiny

Widget render function for use in Shiny

Usage

1
2
3
mapscapeOutput(outputId, width = "100%", height = "400px")

renderMapscape(expr, env = parent.frame(), quoted = FALSE)

Arguments

outputId

– id of output

width

– width of output

height

– height of output

expr

– expression for Shiny

env

– environment for Shiny

quoted

– default is FALSE

Examples

1
2
3
4
mapscapeOutput(1, '100%', '300px')
mapscapeOutput(1, '80%', '300px')
mapscapeOutput("hi")
mapscapeOutput("hello")

Example output

<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>

mapscape documentation built on Nov. 8, 2020, 7:52 p.m.