Skip to content
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

Custom style layer disappears along with vector layers #7708

Closed
interseptor opened this issue Dec 18, 2018 · 1 comment · Fixed by #7711
Closed

Custom style layer disappears along with vector layers #7708

interseptor opened this issue Dec 18, 2018 · 1 comment · Fixed by #7711
Assignees

Comments

@interseptor
Copy link

When vector layers are present on the map along with a custom style layer, visibility of vector layers affects the visibility of the custom layer.

Mapbox Versions Affected

0.51.0
0.52.0 beta 2

Link to Demonstration

https://jsfiddle.net/interseptor/Ln69zdaw/

Expected Behaviour

The pink triangle is shown independent of the point layer.

Actual Behaviour

The pink triangle disappears in the following cases:

  • when zooming in to the center of the triangle or bottom right corner of the triangle
  • when the points layer is hidden using 'Switch points visibility' button in the top left corner

Additional Information

If no vector layers are added to the map (comment out points layer in the map on load function), the custom style layer works as expected.
It is not shown in the jsfiddle, but the same behavior is observed with vector tiles layer, not only geojson layers.

@ansis
Copy link
Contributor

ansis commented Dec 18, 2018

@interseptor thanks for the test case! I've opened a pull request with the fix here: #7711

Hopefully we'll be able to get it into the final 0.52 release tomorrow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants