Skip to main content

Search

Querying the features of a vector tile layer. Created with kind search.

TypeClass
"request"SearchRequest
"vectortile"VectorTileSearchService

"request" — SearchRequest

{"type": "request"}
KeyTypeAlways requiredNotes
PropertyTypeAccessDescription
filterExpressionstringread/writeReturns the string based search expression. If empty, then search expression is not used.
geometryobject std::shared_ptr<massif::Geometry>read/writeReturns the geometry used for proximity search.
projectionobject std::shared_ptr<massif::Projection>read/writeReturns the projection to use for search geometry.
regexFilterstringread/writeReturns the regular expression used to search all the fields. If empty, then the regular expression is not used.
searchRadiusnumberread/writeReturns the search radius for proximity search (in meters). The default is 0.

"vectortile" — VectorTileSearchService

{"type": "vectortile", "source":, "style":}
KeyTypeAlways requiredNotes
sourceobject std::shared_ptr<TileDataSource>yesan id of kind source, or an inline spec
styleobject std::shared_ptr<VectorTileDecoder>yesan id of kind style, or an inline spec
PropertyTypeAccessDescription
dataSourceobject std::shared_ptr<massif::TileDataSource>read-onlyReturns the tile data source of the search service.
layersstruct std::vector<std::string>read/writeReturns the layers to filter while decoding tiles.
maxResultsintegerread/writeReturns the maximum number of results the search service returns.
maxZoomintegerread/writeReturns the maximum zoom level of vector tiles used. By default the maximum zoom level is specified by data source.
minZoomintegerread/writeReturns the minimum zoom level of vector tiles used. By default the minimum zoom level is specified by data source and is usually 0.
preventDuplicatesbooleanread/writeReturns wether to prevent duplicate elements
projectionobject projections.Projectionread-onlyReturns the projection the results are expressed in, which is the data source's.
sortByDistancebooleanread/writeReturns wether result features are sorted by distance
tileDecoderobject std::shared_ptr<massif::VectorTileDecoder>read-onlyReturns the tile decoder used by the search service.
MethodArgumentsReturns
findFeaturesrequest: handleobject