addGeosearch | R Documentation |
Adds a geocoding search widget to a leaflet map using the leaflet-geosearch plugin. Supports multiple providers such as OpenStreetMap, Esri, Google, HERE, etc.
addGeosearch(map, provider = geosearchProvider(), options = geosearchOptions())
map |
a map widget |
provider |
A provider list object created with e.g. 'geosearchProviderOSM()'. |
options |
A list of control options created with 'geosearchOptions()'. |
the new map
object
https://github.com/smeijer/leaflet-geosearch
Other Geosearch Functions:
geosearchOptions()
,
removeGeosearch()
library(leaflet)
library(leaflet.extras2)
leaflet() %>%
addTiles() %>%
addGeosearch()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.