mapbox-maps-android icon indicating copy to clipboard operation
mapbox-maps-android copied to clipboard

Create an Expression without any operator

Open tuyen-vuduc opened this issue 2 years ago • 0 comments

New Feature

Create an Expression without any operator

e.g.

class Expression : Value {
  // ...other code 
  public Expression(@NonNull List<Value> 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.

tuyen-vuduc avatar Jun 14 '23 00:06 tuyen-vuduc