Learn R Programming

rosm (version 0.3.0)

osm_tile_covering: 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)

Value

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

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.

Examples

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

osm_tile_covering(bounds)

Run the code above in your browser using DataLab