View source: R/gen_sampling_funs.R
add_info | R Documentation |
Add attributes and fields to layers that you will want to collect in the field. Pass in a data.frame with each row a unique attribute field with the name spacified (e.g. comment), the type of data (e.g. text), and the default value (e.g. foobar).
add_info(layer, info)
layer |
An 'sf' class object to add information to |
info |
A data.frame with each row representing a new attribute field. Must have columns called; 'name', 'type', 'default'. Put the name of the attribute field in the rows of the 'name' column, the type of data in the 'type' column (text, integer, real, or logical), and the desired default value in the 'default' column. |
A 'sf' object with the added information added.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.