tm_view | R Documentation |
View mode options. These options are specific to the view mode.
tm_view(
use_browser,
use_WebGL,
control.position,
control.bases,
control.overlays,
control.collapse,
set_bounds,
set_view,
set_zoom_limits,
use_circle_markers,
leaflet.options,
...
)
use_browser |
If |
use_WebGL |
use webGL for points, lines, and polygons. For large spatial objects, this is much faster than the standard leaflet layer functions. However, it can not always be used for two reasons. First, the number of visual variables are limited; only fill, size, and color (for lines) are supported. Second, projected CRS's are not supported. Furthermore, it has the drawback that polygon borders are not as sharp. By default only |
control.position |
The position of the control. A tm_pos object, or a shortcut of two values: horizontal (left, center, right) and vertical (top, center, bottom). See tm_pos for details |
control.bases |
base layers |
control.overlays |
overlay layers |
control.collapse |
Should the box be collapsed or expanded? |
set_bounds |
logical that determines whether maximum bounds are set, or a bounding box. Not applicable in plot mode. In view mode, this is passed on to setMaxBounds() |
set_view |
numeric vector that determines the view.
Either a vector of three: |
set_zoom_limits |
numeric vector of two that set the minimum and maximum zoom levels (see tileOptions()). |
use_circle_markers |
If |
leaflet.options |
options passed on to leafletOptions() |
... |
to catch deprecated arguments |
tm_group()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.