Description Usage Arguments Value Examples
View source: R/get_left_right_tiles.R
Get left and right OSM tiles for a given BCU - necessary for BCUs that cross the 180th meridian line (i.e., Fiji BCUs), as tmaptools::read_osm
uses a fixed projection that cannot be changed and so cuts off.
1 | get_left_right_tiles(bcus, bcu_name, bcu_ext, tile_type = "bing", zoom = NULL)
|
bcus |
Indicator data for BCUs, from |
bcu_name |
Name of BCU that tiles are being pulled for |
bcu_ext |
Extension factor of the BCU's bounding box, from |
tile_type |
Type of OSM tile to get. Defaults to "bing". |
zoom |
Tile zoom. Defaults to NULL, in which case it is determined automatically |
A named list ("left" and "right") of OSM tiles.
1 2 3 4 5 | bcu_name <- "Vatu-i-Ra"
bcus <- readRDS(here::here("data", "bcus_list.rds"))
bcu_ext <- readRDS(here::here("data", "bcus_ext.rds"))[[bcu_name]]
get_left_right_tiles(bcus, bcu_name, bcu_ext)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.