leaflet.extras (version 1.0.0)

addSearchFeatures: Add a feature search control to the map.

Description

Add a feature search control to the map.

Removes the feature search control from the map.

Usage

addSearchFeatures(map, targetGroups, options = searchFeaturesOptions())

removeSearchFeatures(map, clearFeatures = FALSE)

Arguments

map

a map widget object

targetGroups

A vector of group names of groups whose features need to be searched.

options

Search Options

clearFeatures

Boolean. If TRUE the features that this control searches will be removed too.

Value

modified map

modified map