as.tile_source | R Documentation |
The previous interface for rosm was written to support idioms that are no longer prevalent in modren r-spatial code. These functions may continue to exist; however, their use is not encouraged and the functions may be removed in a future release.
as.tile_source(x, ...)
is.tile_source(x)
source_from_url_format(
url_format,
max_zoom = tile.maxzoom.default(),
min_zoom = 0,
attribution = NULL,
extension = tools::file_ext(url_format[1]),
...
)
register_tile_source(...)
set_default_tile_source(x, ...)
get_default_tile_source()
osm.types()
bmaps.types()
bmaps.plot(bbox, type = "Aerial", key = NULL, ...)
extract_bbox(x, tolatlon = TRUE, ...)
osm.plot(
bbox,
zoomin = 0,
zoom = NULL,
type = NULL,
forcedownload = FALSE,
stoponlargerequest = TRUE,
fusetiles = TRUE,
cachedir = NULL,
res = 150,
project = TRUE,
progress = c("text", "none"),
quiet = TRUE,
...
)
osm.image(
x,
zoomin = 0,
zoom = NULL,
type = NULL,
forcedownload = FALSE,
cachedir = NULL,
progress = c("text", "none"),
quiet = TRUE
)
osm.raster(
x,
zoomin = 0,
zoom = NULL,
type = "osm",
forcedownload = FALSE,
cachedir = NULL,
progress = c("text", "none"),
quiet = TRUE,
projection = NULL,
crop = FALSE,
filename = NULL,
resample = "bilinear",
...
)
osm.points(x, y = NULL, epsg = 4326, toepsg = 3857, ...)
osm.segments(x0, y0, x1 = x0, y1 = y0, epsg = 4326, toepsg = 3857, ...)
osm.lines(x, y = NULL, epsg = 4326, toepsg = 3857, ...)
osm.polygon(x, y = NULL, epsg = 4326, toepsg = 3857, ...)
osm.text(x, y = NULL, labels = seq_along(x), epsg = 4326, toepsg = 3857, ...)
makebbox(n, e, s, w)
zoombbox(bbox, factor = 1, offset = c(0, 0))
x, y, x0, y0, x1, y1, url_format, max_zoom, min_zoom, attribution, extension |
Deprecated |
... |
Arguments passed to other methods |
bbox |
A bounding box as generated by |
type |
A map type; one of that returned by osm.types. User defined types are possible
by defining |
key, tolatlon, epsg, toepsg, labels, n, e, s, w, factor, offset |
Deprecated |
zoomin |
The amount by which to adjust the automatically calculated zoom (or
manually specified if the |
zoom |
Manually specify the zoom level (not reccomended; adjust |
forcedownload |
|
stoponlargerequest |
By default |
fusetiles |
|
cachedir |
The directory in which tiles should be cached. Defaults to |
res |
The resolution used to calculate scale. |
project |
|
progress |
A progress bar to use, or "none" to suppress progress updates |
quiet |
Pass |
projection |
A map projection in which to reproject the RasterStack as
generated by |
crop |
|
filename |
A filename to which the raster should be written (see
|
resample |
One of "ngb" (nearest neighbour) or "bilinear". Passed to projectRaster. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.