Skip to content

Commit 8613af5

Browse files
committed
Update expression.md
1 parent 79d990e commit 8613af5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/style-spec/expression.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ map.setFeatureState({ source: 'states', id: hoveredStateId }, { hover: false })
185185

186186
```js
187187
{
188-
"filter": {
188+
"filter": ["within", {
189189
"coordinates": [
190190
[
191191
[107, 30],
@@ -196,7 +196,7 @@ map.setFeatureState({ source: 'states', id: hoveredStateId }, { hover: false })
196196
]
197197
],
198198
"type": "Polygon"
199-
}
199+
}]
200200
}
201201
```
202202

0 commit comments

Comments
 (0)