Description Usage Arguments Value Examples
Takes a bbox and returns an equivalent Feature<Polygon>
1 | geo_bbox_polygon(bbox)
|
bbox |
extent in |
Feature<Polygon> a Polygon representation of the bounding box
1 2 3 | geo_bbox_polygon(c(0, 0, 10, 10))
geo_bbox_polygon(c(-90, -30, -70, -10))
geo_bbox_polygon(c(0, 0, 10, 10))
|
[1] "{\"geometry\":{\"coordinates\":[[[0.0,0.0],[10.0,0.0],[10.0,10.0],[0.0,10.0],[0.0,0.0]]],\"type\":\"Polygon\"},\"properties\":{},\"type\":\"Feature\"}"
[1] "{\"geometry\":{\"coordinates\":[[[-90.0,-30.0],[-70.0,-30.0],[-70.0,-10.0],[-90.0,-10.0],[-90.0,-30.0]]],\"type\":\"Polygon\"},\"properties\":{},\"type\":\"Feature\"}"
[1] "{\"geometry\":{\"coordinates\":[[[0.0,0.0],[10.0,0.0],[10.0,10.0],[0.0,10.0],[0.0,0.0]]],\"type\":\"Polygon\"},\"properties\":{},\"type\":\"Feature\"}"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.