You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
GlyphAtlas needs a better way to keep track of tiles #957
The GlyphAtlas currently tracks glyphs by tile ID and removes the glyph if no tile exists that uses the glyph anymore. However, there can be multiple tiles with the same ID, but from different sources. Instead of tracking per ID, we should e.g. use the TileData pointer as a key.
A part of the problem in #832 might be that the glyph atlas isn't properly cleaned up when sources are destroyed. In -js, GlyphAtlas is now part of the Style object, so whenever the style changes the atlas is blown away and we start from scratch.
If I'm understanding correctly from #832 (comment), the GlyphAtlas could be garbling text because of this. This seems to be in effect anytime there is more than one vector source, which is impacting #893 annotations as well.
Activity
ansis commentedon Mar 6, 2015
A part of the problem in #832 might be that the glyph atlas isn't properly cleaned up when sources are destroyed. In -js, GlyphAtlas is now part of the Style object, so whenever the style changes the atlas is blown away and we start from scratch.
incanus commentedon Mar 11, 2015
If I'm understanding correctly from #832 (comment), the GlyphAtlas could be garbling text because of this. This seems to be in effect anytime there is more than one vector source, which is impacting #893 annotations as well.
Adding to iOS beta milestone.
incanus commentedon Mar 12, 2015
Keeping this on beta 1 milestone. @jfirebaugh I know you're gonna take a look — this is top of my list for blocking annotations right now.
jfirebaugh commentedon Mar 13, 2015
⇢ #995
Move atlas ownership to Style
Index glyph use by tile pointer value, not tile ID