-
Notifications
You must be signed in to change notification settings - Fork 97
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
Feature request: layer style expressions #23
Comments
This can already be achieved with interpolate:
|
Hi, thanks for your reply. Yeah, we used to use interpolate for that. Thanks for this! Perhaps it can be mentioned in the readme? |
@irjayjay hey, there's not a lot of docs about expressions usage at the moment (though seems you've found the animated route page that uses |
Hi there. I think for expression usage a simple link to the mapbox docs would be fine. But I see it's already there. I don't know how I missed that before. Once again, thanks for all the great work! |
Can this "traditional way" also be used for the HeatmapLayer? With |
@demux79 Make sure the layer is added to the styles before you try to set the style layer property; for that, make sure to |
@geisterfurz007 Hi, thanks for getting back to me. Unfortunately, I am already awaiting everything but still get the error. Do you have an idea? Also the
|
@demux79 There is one |
@geisterfurz007 Thanks, well spottet. I wish it made a difference. I tried all combinations with await only, then() only, both together. But the layer is never found. UPDATE: It's the |
Hi, and firstly, well done with the plugin. It is phenomenal!
Our team has been using the other unofficial plugin for a few years now. It was the best there was, but we had extreme performance issues and some difficulty adding custom layers, etc.
We finally hacked in layer/layer-style support, but it's not great.
Your plugin is extremely fast, I've been testing it for viability for the last two days.
So far only this one possible deal breaker.
In our app we use, e.g. symbol layers where the symbols have filters that make them disappear at zoom level 5 and below and also reduces their size linearly based on zoom level. We can also set symbol images on a single layer based on expressions such as the GET expression from the Mapbox docs.
Are there any plans to allow for adding these expressions?
I see currently when creating a layer you can only set a size of type double, as an example.
I'm gonna explore your code a bit and see if I can somehow pass in custom JSON directly somewhere, but the layer data classes do make things a lot easier.
The text was updated successfully, but these errors were encountered: