Learn R Programming

leaflet.extras (version 0.2)

addSearchOSM: Add a OSM search control to the map.

Description

Add a OSM search control to the map.

Add a marker search control to the map.

Usage

addSearchOSM(map, options = searchOSMOptions())

addSearchMarker(map, targetLayerId = NULL, targetGroup = NULL, options = searchMarkersOptions())

Arguments

map

a map widget object

options

Search Options

targetLayerId

An optional layerId of a GeoJSON/TopoJSON layer whose features need to be searched.

targetGroup

An optional group name of a Feature Group whose features need to be searched.

Value

modified map

modified map