Learn R Programming

slippymath (version 0.3.1)

tile_bbox: tile_bbox

Description

Calculate the bounding box for a tile in latitude and longitude

Usage

tile_bbox(x, y, zoom)

Arguments

x

slippy map tile x number

y

slippy map tile y number

zoom

zoom level for tile

Value

an sf bbox object.

Details

Given a slippy maps tile specified by `x`, `y`, and `zoom`, return the an `sf` bounding box object for the tile with units in metres using the EPSG:3857 coordinate reference system (Web Mercator).

Examples

Run this code
# NOT RUN {
## return an sf style bbox object in with epsg and proj4string
tile_bbox(x = 30304, y = 18929, zoom = 15)
# }

Run the code above in your browser using DataLab