This function is just a shorthand to add_geojson
using
geojsonio to convert any data object to geojson.
Therefore, if the library/namespace is not available, an error is thrown.
1 2 3 | add_features(ol, data, ...)
add_vector_data(ol, data, ...)
|
ol |
map widget |
data |
any data object which can be parsed to geojson by
|
... |
optional parameters passed to |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.