You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-3Lines changed: 9 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,10 +20,12 @@ The two major use cases for this library are:
20
20
### Table of Contents
21
21
22
22
-[vtquery](#vtquery)
23
+
-[Parameters](#parameters)
24
+
-[Examples](#examples)
23
25
24
26
## vtquery
25
27
26
-
**Parameters**
28
+
### Parameters
27
29
28
30
-`tiles`**[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)>** an array of tile objects with `buffer`, `z`, `x`, and `y` values
29
31
-`LngLat`**[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[Number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)>** a query point of longitude and latitude to query, `[lng, lat]`
@@ -36,8 +38,11 @@ The two major use cases for this library are:
36
38
Defaults to all geometry types.
37
39
-`options.dedup`**[String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** perform deduplication of features based on shared layers, geometry, IDs and matching
38
40
properties. (optional, default `true`)
41
+
-`options.basic-filters`**[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)>?** an expression-like filter to include features with Numeric or Boolean properties
42
+
that match the filters based on the following conditions: `=, !=, <, <=, >, >=`. The first item must be the value "any" or "all" whether
Copy file name to clipboardExpand all lines: lib/index.js
+6-2Lines changed: 6 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -7,13 +7,16 @@
7
7
* @param {Array<Number>} LngLat a query point of longitude and latitude to query, `[lng, lat]`
8
8
* @param {Object} [options]
9
9
* @param {Number} [options.radius=0] the radius to query for features. If your radius is larger than
10
-
* the extent of an individual tile, include multiple nearby buffers to collect a realstic list of features
10
+
* the extent of an individual tile, include multiple nearby buffers to collect a realistic list of features
11
11
* @param {Number} [options.limit=5] limit the number of results/features returned from the query. Minimum is 1, maximum is 1000 (to avoid pre allocating large amounts of memory)
12
12
* @param {Array<String>} [options.layers] an array of layer string names to query from. Default is all layers.
13
13
* @param {String} [options.geometry] only return features of a particular geometry type. Can be `point`, `linestring`, or `polygon`.
14
14
* Defaults to all geometry types.
15
15
* @param {String} [options.dedup=true] perform deduplication of features based on shared layers, geometry, IDs and matching
16
16
* properties.
17
+
* @param {Array<String,Array>} [options.basic-filters] - an expression-like filter to include features with Numeric or Boolean properties
18
+
* that match the filters based on the following conditions: `=, !=, <, <=, >, >=`. The first item must be the value "any" or "all" whether
0 commit comments