Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Source tiles not reloaded when making associated layer visible #7241

Closed
ivovandongen opened this issue Nov 30, 2016 · 0 comments
Closed

Source tiles not reloaded when making associated layer visible #7241

ivovandongen opened this issue Nov 30, 2016 · 0 comments
Assignees
Labels
bug Core The cross-platform C++ core, aka mbgl

Comments

@ivovandongen
Copy link
Contributor

In the case where a source has no visible layers and the visibility of one of the layers is set to VISIBLE, the source tiles are not reloaded because the source is disabled when Style::relayout() is called:

        if (source && source->baseImpl->enabled) {
            source->baseImpl->reloadTiles();
        }

The source is only thereafter enabled in Style::recalculate(). This was added to prevent reloading sources that aren't used: 9127299

This results in layers not appearing visibility is set #7225.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Core The cross-platform C++ core, aka mbgl
Projects
None yet
Development

No branches or pull requests

1 participant