-
-
Notifications
You must be signed in to change notification settings - Fork 977
Open
Description
maplibre-gl-js version: 5.15.0
browser: Firefox and Chrome
Steps to Trigger Behavior
- Use maplibre in a Vue.js app
- Add data (included in both repros)
- Configure the fill layer to paint using interpolate 2 colors from 0 to 100 with an input of
["get", "a"](PASS) - Loop over features and on each set feature state "b" to the value of the feature property "a". Maybe call
map.triggerRepaint. - Configure the fill layer to paint using interpolate the same with an input of
["feature-state", "b"](FAIL IN VUE)
Link to Demonstration
Vanilla (PASS): https://jsbin.com/tilijadexi/edit?js,console,output
Vue (FAIL): https://github.com/aentwist/maplibre-interpolation-repro
-> npm ci + npm start
Expected Behavior
When using interpolation with the feature-state input, intermediate colors will be interpolated.
Actual Behavior
Intermediate colors are not interpolated. Color falls back to black.
Notes
- interpolate without feature-state works
- step with feature-state works
Metadata
Metadata
Assignees
Labels
No labels