controls: Add controls to the map

Description Usage Arguments Functions Examples

Description

Add controls to the map

Usage

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)

Arguments

ol

map widget

units

units, supported values are degrees, imperial, nautical, metric and us

projection

projection used to display coordinates

collapsed

start the overview map collapsed?

Functions

Examples

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)

crazycapivara/openlayers documentation built on June 4, 2019, 8:08 p.m.