mapbox / mapbox/mapbox-maps-android
Create an Expression without any operator
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 578
- Forks
- 161
- PR merge metrics
- No merged PRs in 30d
Description
## New Feature
Create an Expression without any operator
e.g.
```
class Expression : Value {
// ...other code
public Expression(@NonNull List array) : super(array) { }
// ...other code
```
## Why
In the iOS, we can create an Expression without any operator and there are iOS examples using that way.
```
// PointAnnotationClusteringExample.swift
// Create expression to get the total count of hydrants in a cluster
let sumExpression = Exp {
Exp(.sum) {
Exp(.accumulated)
Exp(.get) { "sum" }
}
1
}
```
However, we cannot do this right now for Android; hence there are examples of iOS cannot be ported to Android equivalently.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the Android Expression and Value APIs mentioned in the issue, then compare their construction with the PointAnnotationClusteringExample.swift example. Determine how an Expression with only a Value list should be represented and identify the relevant Android tests or examples to update. Done means the iOS usage can be ported equivalently to Android.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile-dev
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100