Skip to contents

Twin of content_url(). COGs AND PMTiles are served from S3 (S3 answers range requests with CORS, as the zone PMTiles already prove); pmtiles_base exists only to point a test or a legacy mirror elsewhere, and defaults to base.

Usage

native_url(
  ds_key,
  hash,
  type = c("cog", "pmtiles"),
  base = atlas_base_url(),
  pmtiles_base = base
)

Arguments

ds_key, hash, type

see native_key()

base

S3 atlas base URL, from atlas_base_url()

pmtiles_base

PMTiles root (no trailing slash); default base

Value

absolute https:// URL(s)