Description Usage Arguments Value Examples
Define image size variables from the given bounding box coordinates.
1 | define_image_size(bbox, major_dim = 400)
|
bbox |
bounding box coordinates (list of 2 points with long/lat values) |
major_dim |
major image dimension, in pixels. Default is 400 (meaning larger dimension will be 400 pixels) |
list with items "width", "height", and "size" (string of format "width,height")
1 2 3 4 5 | bbox <- list(
p1 = list(long = -122.522, lat = 37.707),
p2 = list(long = -122.354, lat = 37.84)
)
image_size <- define_image_size(bbox, 600)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.