osm_tile_covering {rosm}R Documentation

Get an OSM tile covering

Description

Get an OSM tile covering

Usage

osm_tile_covering(bbox, zoom = osm_zoom_num_tiles(6))

osm_zoom_num_tiles(num_tiles)

Arguments

bbox

A [wk::rct()] or object with a [wk::wk_bbox()] method.

zoom

A zoom level or an auto zoom specifier like [osm_zoom_num_tiles()].

num_tiles

The minimum number of tiles to use when choosing a zoom level.

Value

- 'osm_tile_covering()' returns a 'data.frame()' with columns x, y, and zoom.

Examples

bounds <- wk::rct(
  -7514064, 5009380,
  -6261722, 6261715,
  crs = osm_crs_native()
)

osm_tile_covering(bounds)


[Package rosm version 0.3.0 Index]