parseregion | R Documentation |
This helper function parses whether region is provided as a string or as a simple feature. If the former, it loads the appropriate simple feature using the akgfmaps::get_base_layers function; if the latter, it re-projects the provided features to the specified coordinate reference system.
parseregion(nameorpoly, crs)
nameorpoly |
string specifying base layer name, or simple feature object |
crs |
coordinate reference system to apply to simple feature object |
simple feature object in the requested CRS
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.