mapbox-maps-android
mapbox-maps-android copied to clipboard
Create an Expression without any operator
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.