mapbox / mapbox/mapbox-maps-android

Create an Expression without any operator

Open
#2,104 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

auto-triaged feature :green_apple:
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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.