-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Rendered text is garbled when switching styles. #832
Comments
@mb12 Can you give a sample style and coordinate to reproduce this reliably? Haven't seen it. Also, would be handy if you could see if it affects other platforms such as OS X (I would imagine so; this isn't iOS-specific code but could maybe be a GL issue). |
This may be similar to the original garbled issue I reported (It was happening with single Source. I don't have exact steps to reproduce the garbling in the screenshot I included earlier. ). I've included the style.json as well as a screenshot below. The two conflicting layers are "id": "road_major_label" and "id": "road_label". If you remove one or the other, the text is legible. |
/cc @ansis |
For the same style.json (the one with multiple sources), I also get random crashes with the following stack trace. (This is for iOS).
|
Can you please also comment on the following regarding GlyphAtlas in presence of multiple Sources? GlyphAtlas is maintained per Map, not per Source. GlyphAtlas::addGlyphs Should the tileid passed to these methods be a function of both Tile::ID and SourceInfo? |
Determined that the screenshots were from Sunnyvale, CA with coordinates of 37.38533, -122.01727. |
Just tested on iPhone 5s Simulator with the latest from |
Just ran the same tests on my iPhone 5s using iOS 8.1.3 and the results are consistent with what the simulator showed. I'm going to close this issue for now as it looks resolved to me. If you feel it's not @mb12 please feel free to re-open. Thanks! |
Thanks for looking into it. 1.) I do see the original garbling issue (first screenshot that I added with this bug) inconsistently when switching styles (I've an older git repo). There are toooooo many issues with Map::start/stop logic that will be addressed by the following. I can verify this once this is merged into master. 2.) Can you please also comment on the correctness of the following? GlyphAtlas is maintained per Map, not per Source. GlyphAtlas::addGlyphs Should the tileid passed to these methods be a function of both Tile::ID and SourceInfo? |
I've attached two images with this issue. One image illustrates the garbled text and other image illustrates the expected text.
This reproduces reasonably consistently for me almost everyday. I've seen the garbling happen under two scenarios:
The text was updated successfully, but these errors were encountered: