Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: Improve in expression example #664

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/reference/v8.json
Original file line number Diff line number Diff line change
Expand Up @@ -2791,7 +2791,7 @@
"doc": "Determines whether an item exists in an array or a substring exists in a string.\n\n - [Measure distances](https://maplibre.org/maplibre-gl-js/docs/examples/measure/)",
"example": {
"syntax": {
"method": ["value", "value"],
"method": [["get", "value"], ["literal", "value"]],
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the syntax part of the example, so this won't be the right place to put it.
You can use links to places in the description, for example add a page in the gl js examples with all forms of "in".
You can link to tests in this repo too.
Or your could extend the code that parses the v8 into docs to have multiple examples for expressions.

"result": "boolean"
},
"value": ["in", "$type", "Point"]
Expand Down