mapbox / mapbox-plugins-android

Mapbox Android Plugins are a collection of libraries that extend our other SDKs, helping you design powerful mapping features while the plugins handle most of the heavy lifting.
https://www.mapbox.com/android-docs/plugins/overview/
BSD 2-Clause "Simplified" License
241 stars 120 forks source link

Expression property in Annotations #1171

Open Coneys opened 3 years ago

Coneys commented 3 years ago

Hello. I am trying to change line-width from simple float, to interpolated expression, something like: PropertyFactory.lineWidth( Expression.interpolate( Expression.exponential(2f), Expression.zoom(), Expression.stop(10, 1f), Expression.stop(18, 3f) ) ) Unfortunately, I cannot find way how to do it with LineManager. It accepts only float as line-width, and I cannot write into jsonObject to use data driven styling without using reflection. How should I do it?

Or maybe there is new fancy way that will disable ugly polyline scaling on zooming out, and I shouldn't bother with line-width anyway?

hyhashemi commented 1 year ago

Any updates on this?