Skip to content

Custom style layer disappears along with vector layers #7708

Closed

Description

@interseptor

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.

Activity

  1. self-assigned this
    on Dec 18, 2018
  2. added a commit that references this issue on Dec 18, 2018
    7150baa
  3. ansis commented on Dec 18, 2018

    @ansis
    Contributor

    @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.

  4. added a commit that references this issue on Dec 19, 2018
    5afe9ad
  5. added a commit that references this issue on Dec 19, 2018
    eaf1c83
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions