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
@@ -602,14 +605,15 @@ Returns an array of rendered map features that intersect with a given point.
602
605
#### arguments
603
606
| Name | Type | Required | Description |
604
607
| ---- | :--: | :------: | :----------: |
605
-
|`coordinate`|`Position`|`Yes`| A point expressed in the map view’s coordinate system.|
606
-
|`filter`|`Array`|`No`| A set of strings that correspond to the names of layers defined in the current style. Only the features contained in these layers are included in the returned array. |
607
-
|`layerIDs`|`Array`|`No`| A array of layer id's to filter the features by|
608
+
|`coordinate`|`Position`|`Yes`| A point expressed in the map view’s coordinate system`[x, y]`;|
609
+
|`filter`|`FilterExpression \| tuple`|`No`| A set of strings that correspond to the names of layers defined in the current style. Only the features contained in these layers are included in the returned array. |
610
+
|`layerIDs`|`Array`|`No`| A array of layer IDs by which to filter the features.|
@@ -620,14 +624,16 @@ Returns an array of rendered map features that intersect with the given rectangl
620
624
#### arguments
621
625
| Name | Type | Required | Description |
622
626
| ---- | :--: | :------: | :----------: |
623
-
|`bbox`|`BBox \| []`|`Yes`| A rectangle expressed in the map view’s coordinate system, density independent pixels and not map coordinates. This can be an empty array to query the visible map area. |
624
-
|`filter`|`Array`|`No`|A set of strings that correspond to the names of layers defined in the current style. Only the features contained in these layers are included in the returned array. |
625
-
|`layerIDs`|`Array`|`No`| A array of layer id's to filter the features by|
627
+
|`bbox`|`BBox \| []`|`Yes`| A rectangle expressed in density-independent screen coordinates relative to the map view`[top, left, bottom, right]` or `[minY, minX, maxY, maxX]` (not geographic coordinates). An empty array queries the visible map area. |
628
+
|`filter`|`FilterExpression`|`No`|An array of strings that correspond to the names of layers defined in the current style. Only the features contained in these layers are included in the returned array. |
629
+
|`layerIDs`|`Array`|`No`| A array of layer IDs by which to filter the features.|
@@ -639,7 +645,7 @@ Returns an array of GeoJSON Feature objects representing features within the spe
639
645
| Name | Type | Required | Description |
640
646
| ---- | :--: | :------: | :----------: |
641
647
|`sourceId`|`string`|`Yes`| Style source identifier used to query for source features. |
642
-
|`filter`|`Array`|`No`| A filter to limit query results. |
648
+
|`filter`|`FilterExpression \| tuple`|`No`| A filter to limit query results. |
643
649
|`sourceLayerIDs`|`Array`|`No`| The name of the source layers to query. For vector tile sources, this parameter is required. For GeoJSON sources, it is ignored. |
644
650
645
651
@@ -661,12 +667,12 @@ Map camera will perform updates based on provided config. Deprecated use Camera#
661
667
662
668
### takeSnap([writeToDisk])
663
669
664
-
Takes snapshot of map with current tiles and returns a URI to the image
670
+
Takes snapshot of map with current tiles and returns a Base64-encoded PNG image,<br/>or an file-system URI to a temporary PNG file if `writeToDisk` is `true`.
665
671
666
672
#### arguments
667
673
| Name | Type | Required | Description |
668
674
| ---- | :--: | :------: | :----------: |
669
-
|`writeToDisk`|`Boolean`|`No`| If true will create a temp file, otherwise it is in base64|
675
+
|`writeToDisk`|`boolean`|`No`| If `true`, creates a temporary PNG file and returns a file-system URI, otherwise returns a Base64-encoded PNG image. (Defaults to `false`)|
0 commit comments