Search
Querying the features of a vector tile layer. Created with kind search.
| Type | Class |
|---|---|
"request" | SearchRequest |
"vectortile" | VectorTileSearchService |
"request" — SearchRequest
{"type": "request"}
| Key | Type | Always required | Notes |
|---|
| Property | Type | Access | Description |
|---|---|---|---|
filterExpression | string | read/write | Returns the string based search expression. If empty, then search expression is not used. |
geometry | object std::shared_ptr<massif::Geometry> | read/write | Returns the geometry used for proximity search. |
projection | object std::shared_ptr<massif::Projection> | read/write | Returns the projection to use for search geometry. |
regexFilter | string | read/write | Returns the regular expression used to search all the fields. If empty, then the regular expression is not used. |
searchRadius | number | read/write | Returns the search radius for proximity search (in meters). The default is 0. |
"vectortile" — VectorTileSearchService
{"type": "vectortile", "source": …, "style": …}
| Key | Type | Always required | Notes |
|---|---|---|---|
source | object std::shared_ptr<TileDataSource> | yes | an id of kind source, or an inline spec |
style | object std::shared_ptr<VectorTileDecoder> | yes | an id of kind style, or an inline spec |
| Property | Type | Access | Description |
|---|---|---|---|
dataSource | object std::shared_ptr<massif::TileDataSource> | read-only | Returns the tile data source of the search service. |
layers | struct std::vector<std::string> | read/write | Returns the layers to filter while decoding tiles. |
maxResults | integer | read/write | Returns the maximum number of results the search service returns. |
maxZoom | integer | read/write | Returns the maximum zoom level of vector tiles used. By default the maximum zoom level is specified by data source. |
minZoom | integer | read/write | Returns the minimum zoom level of vector tiles used. By default the minimum zoom level is specified by data source and is usually 0. |
preventDuplicates | boolean | read/write | Returns wether to prevent duplicate elements |
projection | object projections.Projection | read-only | Returns the projection the results are expressed in, which is the data source's. |
sortByDistance | boolean | read/write | Returns wether result features are sorted by distance |
tileDecoder | object std::shared_ptr<massif::VectorTileDecoder> | read-only | Returns the tile decoder used by the search service. |
| Method | Arguments | Returns |
|---|---|---|
findFeatures | request: handle | object |