osm_url_spec: Tile URL Specification

View source: R/url.R

osm_url_specR Documentation

Tile URL Specification

Description

See <https://github.com/roblabs/xyz-raster-sources> for a number of useful values to use for 'server_url'.

Usage

osm_url_spec(
  server_url = "https://tile.openstreetmap.org/{z}/{x}/{y}.png",
  block_size = c(256, 256),
  min_zoom = 0,
  max_zoom = 18,
  content_type = NA_character_,
  name = NULL
)

osm_url_spec_example()

as_osm_url_spec(x, ..., name = NULL)

Arguments

server_url

A url using 'x', 'y', and 'z' for the x, y, and zoom level to be replaced. This can be any URL; non-URLs are assumed to be local file paths relative to the current working directory at the time of the download.

block_size

The pixel size of each image

min_zoom, max_zoom

The min/max zoom that this tile specification can handle

content_type

A MIME type or NA to guess the type from 'server_url'.

name

A name for this spec. Useful for cache specifications.

x

An object to convert to an osm_url_spec

...

Passed to S3 methods

Value

An object of class osm_url_spec.

Examples

osm_url_spec()


rosm documentation built on Aug. 27, 2023, 9:06 a.m.