From 70bfa90fb135735702edf1970c1bfd42aab34507 Mon Sep 17 00:00:00 2001 From: Tsvetomir Uzunoff <99411846+uzun0ff@users.noreply.github.com> Date: Tue, 17 Jun 2025 17:31:31 +0300 Subject: [PATCH] Update MapView.md --- docs/MapView.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/MapView.md b/docs/MapView.md index 8f252f119c..b6935d3bd5 100644 --- a/docs/MapView.md +++ b/docs/MapView.md @@ -609,6 +609,10 @@ this._map.queryRenderedFeaturesAtPoint([30, 40], ['==', 'type', 'Point'], ['id1' Returns an array of rendered map features that intersect with the given rectangle,
restricted to the given style layers and filtered by the given predicate. In v10,
passing an empty array will query the entire visible bounds of the map. #### arguments + +> [!NOTE] +> Currently a BBox created from the map is not working, a workaround is to use the layout dimensions of the device and create a box from them. + | Name | Type | Required | Description | | ---- | :--: | :------: | :----------: | | `bbox` | `BBox \| []` | `Yes` | A rectangle expressed in the map view’s coordinate system. For v10, this can be an empty array to query the visible map area. | @@ -616,7 +620,6 @@ Returns an array of rendered map features that intersect with the given rectangl | `layerIDs` | `Array` | `No` | A array of layer id's to filter the features by | - ```javascript this._map.queryRenderedFeaturesInRect([30, 40, 20, 10], ['==', 'type', 'Point'], ['id1', 'id2']) ```