osm_geom_rename <- function(sf_object){
sf_object %>%
st_geometry() -> sfc_sf_object
for(i in seq_along(sfc_sf_object)){
names(sfc_sf_object[[i]][[1]]) <-
1:length(names(sfc_sf_object[[i]][[1]]))
}
sf_object %>%
st_set_geometry(
sfc_sf_object
) -> sf_object2
return(sf_object2)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.