-
Notifications
You must be signed in to change notification settings - Fork 143
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
Reevaluate paint property when modifying layers #77
Comments
@soal, It looks like your solution to this will be replacing the "paint" and "layout" properties with a single "layer" property. The current version (0.1.3) does not apply paint properties to "symbol" type geojson layers, I assume because your default paint object has a "fill-color" property. Will this solution remove that limitation so that "paint" on "symbol" type layers will work again? |
Yes, since all layer configuration will be moved into I need to do some testing to ensure that reactivity features works properly before it will be landed in version 0.2 |
@henningko, I have found (as a temporary workaround) if you change the layerId prop, the layer is replaced and the new paint properties are displayed. It works until @soal's refactor is finished. |
Must be fixed in 0.2. Feel free to reopen this issue if you still have this problem. |
I am using
v-for
to dynamically add and remove layers that are added to an array:Example layer:
However, when swapping out a layer at position
i
, the paint properties are not re-evaluated, but rather, the paint properties of the previous layer ati
are kept.The text was updated successfully, but these errors were encountered: