Add a feature search control to the map.
Removes the feature search control from the map.
addSearchFeatures(map, targetGroups, options = searchFeaturesOptions())removeSearchFeatures(map, clearFeatures = FALSE)
a map widget object
A vector of group names of groups whose features need to be searched.
Search Options
Boolean. If TRUE the features that this control searches will be removed too.
modified map
modified map