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

Only print Sprites not found messages after the sprites are loaded and parsed #1885

Merged
merged 1 commit into from
Jul 17, 2015

Conversation

tmpsantos
Copy link
Contributor

Sprites are loaded asynchronously and if we get the tiles before the sprites, we are going to see a lot of "Sprites not found" messages, which can be misleading. We should only print these messages after the sprite define on the Style is loaded.

@tmpsantos tmpsantos added the bug label Jul 13, 2015
@tmpsantos tmpsantos self-assigned this Jul 13, 2015
@tmpsantos
Copy link
Contributor Author

/cc @picciano

If we don't set Sprites at all or the Sprites were not
loaded yet, the warnings can be misleading.
@tmpsantos tmpsantos force-pushed the 1885-only_print_sprite_warnings_after_loading branch from b26b144 to 3835155 Compare July 16, 2015 17:15
@tmpsantos tmpsantos merged commit 3835155 into master Jul 17, 2015
@mourner mourner removed the ready label Jul 17, 2015
@tmpsantos tmpsantos deleted the 1885-only_print_sprite_warnings_after_loading branch July 17, 2015 09:57
@tmpsantos
Copy link
Contributor Author

The dot.sdf sprite is indeed missing. The satellite-v7.json style is using https://www.mapbox.com/mapbox-gl-styles/sprites/bright.json that doesn't have it.

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

Successfully merging this pull request may close these issues.

2 participants