Description Usage Arguments Details Examples
This function allows you to reproject spatial data to WGS84, which is the projection required for webmaps such as leaflet.js
1 | proj4web(dat, projection = "+proj=longlat +datum=WGS84")
|
dat |
Expects input of sp object: point, polygon, etc. |
projection |
Defaults to WGS84 |
You can either use the default WGS84 projection or supply your own.
1 | webprojected <- proj4web(anyprojection)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.