A function to get the bounding box of a Spatial object
a spatial object e.g. a SpatialPolygonsDataFrame, SpatialPolygons, etc ... anything with a bounding box that can be computed with bbox(obj)
a SpatialPolygons object: the bounding box
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.