The vector tile layer to search - its data source and its tile decoder are taken from it.
OptionallayersReturns the layers to filter while decoding tiles.
OptionalmaxReturns the maximum number of results the search service returns.
OptionalmaxReturns the maximum zoom level of vector tiles used. By default the maximum zoom level is specified by data source.
OptionalminReturns the minimum zoom level of vector tiles used. By default the minimum zoom level is specified by data source and is usually 0.
OptionalpreventReturns wether to prevent duplicate elements
OptionalsortReturns wether result features are sorted by distance
A vector tile search over a layer that is already on the map.
The constructor takes a source and a decoder; this takes the LAYER and reads both off it, so a search reads exactly what the user is looking at and neither is built twice.