bbox_lv95 | R Documentation |
This Function creates a bbox for usage with get_stadia_map()
or get_google_map()
. Exactly one set of
(x, y, r) or (x, y, w, h) or (x1, y1, x2, y2) must be supplied as arguments. The actual position, width and height
in the resulting map can slightly differ on behalf of the projections from LV95 (EPSG:2056) to WSG84 (EPSG:4326) to
Pseudo Mercator (EPSG:3857). But should be negligible in most cases.
bbox_lv95(
x = NA,
y = NA,
r = NA,
w = NA,
h = NA,
x1 = NA,
y1 = NA,
x2 = NA,
y2 = NA
)
x |
LV95 x coordinate of center in m |
y |
LV95 y coordinate of center in m |
r |
radius around center in m (defines a quadrat) |
w |
width of box in m (defines a rectancle) |
h |
height of box in m (defines a rectancle) |
x1 |
left side (lower left point together with y1) in m |
y1 |
bottom side (lower left point together with x1) in m |
x2 |
right side (upper right point together with x2) in m |
y2 |
top side (upper right point together with y2) in m |
bbox as list with left, right, bottom, top, center = (lon, lat) as WSG84 coordinates, width and height in m
# use in this form for background maps in polar plots
bbox_lv95(2683141, 1249040, 500)
# specific aspect ratio
bbox_lv95(2683141, 1249040, w = 700, h = 0.66 * 700)
# from a bounding box in LV95
bbox_lv95(x1 = 2683000, y1 = 1249000, x2 = 2683700, y2 = 1249500)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.