mapbox / mapbox/mapbox-gl-js

Master ticket tracking expression API completeness

Open
#6,484 6 comments 7 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

api :memo: cross-platform :tv:
Dominant language
TypeScript
Stars
12.4k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

This ticket is intended to define what set of operators would constitute a "complete" expression API and track its implementation.

- Math https://github.com/mapbox/mapbox-gl-js/issues/5853
- [ ] All the `Math.*` functions from Javascript
- [ ] All the relevant functions from `NSExpression`
- [x] `is-nan` https://github.com/mapbox/mapbox-gl-js/issues/5494
- Geo
- [ ] Haversine distance https://github.com/mapbox/mapbox-gl-js/issues/6062
- Color
- [ ] All the color-modifying functions from CSS4 https://github.com/mapbox/mapbox-gl-js/issues/5676
- Arrays
- [ ] Construction https://github.com/mapbox/mapbox-gl-js/issues/6155
- [x] Search https://github.com/mapbox/mapbox-gl-js/issues/4698
- [ ] Slicing
- [ ] Join
- Strings
- [x] Search https://github.com/mapbox/mapbox-gl-js/issues/4113 (but see also Regular Expressions)
- [ ] Replace https://github.com/mapbox/mapbox-gl-js/issues/4100 (but see also Regular Expressions)
- [ ] Slicing
- [ ] ~Regular Expressions https://github.com/mapbox/mapbox-gl-js/pull/6228~
- Locale and language
- [x] Test for script support https://github.com/mapbox/mapbox-gl-js/issues/5807
- [x] Case and diacritic folding https://github.com/mapbox/mapbox-gl-js/issues/4136
- Date and time
- Reflection into style state
- [x] Style image availability https://github.com/mapbox/mapbox-gl-js/issues/5261

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review the linked operator issues, including 5853, 6062, 5676, 6155, 4100, and pull request 6228, to understand the proposed expression API scope. Done means defining the complete operator set and updating this checklist as each related implementation is completed.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, typescript
Domain
frontend, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.