Convert an R spatial polygons object to a GeoJSON string that can be used in
geojson_layer. The spatial classes are provided by the
A string containing unparsed GeoJSON.
This function will write a GeoJSON file to the temporary directory created by R, but this file will be deleted when the R session ends.
1 2 3 4 5 6 7 8
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.