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
Migrated style is valid. I see two ways to fix this problem:
Make migrator insert an empty string as fallback value for icon-image when migrating categorical expression.
Make GL JS support undefined values for icon-image.
I can take care of fixing this if someone on GL JS has a preferred approach between those two. I'm thinking using an empty string as fallback is the best option. This can be fixed by adjusting the logic around categorical conversion for image type values:
mapbox-gl-js version: latest 1.x.x
browser: N/A
Steps to Trigger Behavior
Link to Demonstration
#10055
Expected Behavior
Migrated style is valid. I see two ways to fix this problem:
I can take care of fixing this if someone on GL JS has a preferred approach between those two. I'm thinking using an empty string as fallback is the best option. This can be fixed by adjusting the logic around categorical conversion for
image
type values:mapbox-gl-js/src/style-spec/function/convert.js
Line 140 in ff8e087
Actual Behavior
Migrated style is not valid.
Error: "layers[0].layout.icon-image[4]: 'undefined' value invalid. Use null instead."
The text was updated successfully, but these errors were encountered: