Description Usage Arguments Functions Examples
Add controls to the map
1 2 3 4 5 6 7 8 9 | add_scale_line(ol, units = "metric")
add_mouse_position(ol, projection = "EPSG:4326")
add_overview_map(ol, collapsed = TRUE)
add_full_screen(ol)
add_layer_switcher(ol)
|
ol |
map widget |
units |
units, supported values are
|
projection |
projection used to display coordinates |
collapsed |
start the overview map collapsed? |
add_scale_line
: Add scaleline to the map
add_mouse_position
: Add mouse position to the map
add_overview_map
: Add overview map to the map
add_full_screen
: Add full screen control to the map
add_layer_switcher
: Add layer switcher to the map
1 2 3 4 5 6 7 8 9 | ## Not run:
ol() %>% add_scale_line()
## End(Not run)
## Not run:
ol() %>% add_osm_tiles() %>% add_mouse_position("EPSG:3857")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.