You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When adding a Legend through the Bridge, Airship creates a baseStyle object with default values for each style property from the viz. This is not 100% accurate, cause it's getting a single value for each property. When the property is an expression that depends on a feature, this doesn't work.
From my perspective, the best solution is to use the getLegendData for each style property. This will imply some changes in the widget data, but it's the correct way to proceed.
What is happening?
When adding a Legend through the Bridge, Airship creates a
baseStyle
object with default values for each style property from the viz. This is not 100% accurate, cause it's getting a single value for each property. When the property is an expression that depends on a feature, this doesn't work.airship/packages/bridge/src/vl/legends/index.ts
Lines 28 to 40 in 1b52c88
What should happen?
From my perspective, the best solution is to use the
getLegendData
for each style property. This will imply some changes in the widget data, but it's the correct way to proceed.Steps to Reproduce
Use this html example:
The text was updated successfully, but these errors were encountered: