# skeleton for how we might create the geojson geometries for each spatial element
geojson_geom <- function(sp.obj) {
pts <- as.numeric(coordinates(sp.obj))
j <- paste('{"type": "Point","coordinates": [',pts[1],',',pts[2],']}')
return(j)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.