View source: R/as_featurecollection.R
as_featurecollection | R Documentation |
Helper function to make a FeatureCollection list object for use
in vizualizing, e.g., with leaflet
as_featurecollection(x)
x |
(list) GeoJSON as a list |
str <- 'MULTIPOINT ((100.000 3.101), (101.000 2.100), (3.140 2.180),
(31.140 6.180), (31.140 78.180))'
x <- wkt2geojson(str, fmt = 2)
as_featurecollection(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.