Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expression property in Annotations #1171

Open
Coneys opened this issue Feb 1, 2021 · 1 comment
Open

Expression property in Annotations #1171

Coneys opened this issue Feb 1, 2021 · 1 comment

Comments

@Coneys
Copy link

Coneys commented Feb 1, 2021

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
Copy link

Any updates on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants