View source: R/plugin-search.R
addSearchOSM | R Documentation |
Add a OSM search control to the map.
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
leaflet(data = quakes) %>%
addTiles() %>%
addSearchOSM()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.