ol.control.SearchFeature is a control to search features in a source.
-
You have to define a ol.source.Vector to search in.
-
You can define a property that will be used to search in or define a getTitle/getSearchString function.
-
You can define a getTitle to get the string that will be displayed in the menu
-
You can define a getSearchString function that will take a feature and
return a string to search in.
ol.control.SearchFeature use the
ol.control.Search control.