Description Usage Arguments Examples
Add vector layer to the map
1 2 | add_geojson(ol, data = NULL, filename = NULL, style = NULL,
popup = NULL, options = layer_options())
|
ol |
map widget |
data |
geojson, ignored if |
filename |
filename or url to read geojson from |
style |
style object or |
popup |
popup texts |
options |
general layer options, see |
1 2 3 4 5 6 7 8 9 | ## Not run:
require("geojsonio")
geojson <- geojson_json(us_cities[1:10, ])
ol() %>%
add_geojson(geojson)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.