-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Inconsistent behaviours of “coalesce” with “image” #9630
Comments
Capturing internal convo, @ryanhamley found the issue. It's a regression introduced with https://github.com/mapbox/mapbox-gl-js/pull/9352/files#diff-0856eb2171400e111b6a65dde5e0c789R76 since the @zmiao would you please be able to look at this? 🙏 |
@zmiao More specifically, this is where the bug reported in this demo is being caused. Changing this line to mapbox-gl-js/src/style/properties.js Line 323 in cd7d14b
This line looks like it has the same issue but I'm not exactly sure what conditions may trigger a bug here: mapbox-gl-js/src/style/properties.js Line 391 in cd7d14b
I also see a similar signature here but again I'm not sure if/what bugs this can cause: mapbox-gl-js/src/style/style_layer.js Lines 201 to 205 in cd7d14b
I think basically anywhere that I'd guess this could also break #9198 probably also is broken. See this function: mapbox-gl-js/src/data/feature_index.js Lines 292 to 297 in cd7d14b
I'm not sure if it's better to just update a handful of signatures like this or if we should refactor |
@ryanhamley Is there any way we could detect the code paths that require I would also think that if these code paths worked before the regression without
|
If our current theory about the root cause is correct, the regression was introduced in 1.9.0, so this should be patched into 1.9.x as well. I've created a milestone to help track that. |
Oh, nvm, an issue can't be on two milestones at once. 😛 |
Closed by #9668 |
According to the documentation, #8684 and #8052. “coalesce” should return the first existing “image”.
With last v1.9.1. Same behaviours on Firefox and Chrome.
https://js.do/code/432516
The style have icon for
start_11
andoneway
, but not fornot_existing
. Nevertheless, the flowing code return no icon.The same code in text return
not_existing
:Playing more with coalesce give some “random” results
Give unexpected
not_existing
(expected null)Give the
star_11
.Give unexpected
not_existing
(expectedstar_11
)Give the
star_11
.Give the
star_11
.Give unexpected
not_existing
(expectedstar_11
)Give unexpected
oneway
(expectedstar_11
)The text was updated successfully, but these errors were encountered: