You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
tl:dr ticket discussing public API design for expressions #9439 on Android.
Background
With Android SDK 5.0.0, we introduced Functions to support data driven styling:
The value for any layout or paint property may be specified as a function. Functions allow you to make the appearance of a map feature change with the current zoom level and/or the feature's properties.
For example, the Android binding exposes an interval zoom function as
This will change the fillColor of FillLayer depending on the zoom level of a map.
Way forward
Project Arbex in gl-js introduces the concept of using expressions as part of Functions.
Required expression value An expression defines how one or more feature property values and/or the current zoom level are combined using logical, mathematical, string, or color operations to produce the appropriate style value.
On the Android binding we would like to continue the DSL approach taken with the initial Function implementation. We still need to identify what it will take to bring the expression concept to the Android binding. TBD.
Activity