as_feature | R Documentation |
Convert a FeatureCollection to a Feature
as_feature(x)
x |
A data-FeatureCollection. |
If there are more than one feature within the featurecollection, each feature is split out into a separate feature, returned in a list. Each feature is assigned a class matching it's GeoJSON data type (e.g., point, polygon, linestring).
as.feature , which is similarly named, but has a different purpose
as_feature(lawn_random()) # as_feature(lawn_random("polygons"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.