add_tiles: Add tile layers to the map

Description Usage Arguments Functions Examples

Description

Add tile layers to the map

Usage

1
2
3
4
5
add_osm_tiles(ol, options = layer_options())

add_stamen_tiles(ol, layer = "watercolor", options = layer_options())

add_xyz_tiles(ol, xyz_url, attribution = NULL, options = layer_options())

Arguments

ol

map widget

options

layer options

layer

stamen layer name

xyz_url

xyz url

attribution

attribution (character vector)

Functions

Examples

1
2
3
4
5
6
7
8
## Not run: 
  xyz_url <- get_cartodb_xyz_url()
  attribution <- cartodb_attribution()

  ol() %>%
    add_xyz_tiles(xyz_url, attribution)

## End(Not run)

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