Description Usage Arguments Value Examples
Add a OSM search control to the map.
1 2 3 | addSearchOSM(map,
url = "http://nominatim.openstreetmap.org/search?format=json&q={s}",
position = "topright")
|
map |
a map widget object |
url |
The search url for open street map |
position |
standard Leaflet control position options. |
modified map
1 2 3 | leaflet(data = quakes) %>%
addTiles() %>%
addSearchOSM()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.