Description Usage Arguments Value See Also Examples
Create a multipoint
1 | lawn_multipoint(coordinates, properties = NULL)
|
coordinates |
A list of point pairs, either as a list or json, of the
form e.g. |
properties |
A list of properties. Default: |
A data-Feature<(data-MultiPoint)>
Other data functions:
lawn_featurecollection()
,
lawn_feature()
,
lawn_filter()
,
lawn_geometrycollection()
,
lawn_linestring()
,
lawn_multilinestring()
,
lawn_multipolygon()
,
lawn_point()
,
lawn_polygon()
,
lawn_random()
,
lawn_remove()
,
lawn_sample()
1 2 3 4 5 6 7 8 9 10 11 12 13 | lawn_multipoint(list(c(-74.5, 40), c(-77.5, 45)))
lawn_multipoint("[[-74.5,40],[-77.5,45]]")
identical(
lawn_multipoint(list(c(-74.5, 40), c(-77.5, 45))),
lawn_multipoint("[[-74.5,40],[-77.5,45]]")
)
lawn_multipoint("[[-74.5,40],[-77.5,45]]",
properties = list(city = 'Boston', population = 400))
# Make a FeatureCollection
lawn_featurecollection(
lawn_multipoint(list(c(-74.5, 40), c(-77.5, 45)))
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.