Map label placement in Mapbox GL
mapbox.com
Map label placement in Mapbox GL
1–3 of 3 posts
Re: Map label placement in Mapbox GL
#2I have some questions, though!
* Why can you only shift glyphs along a straight line during render? Is your geometry somewhat scale-invariant?
* Could you keep the spline and relayout the text along the spline during zooming? Then you'd have great layout and no popping.
* How do you handle complex text with really wide glyphs (where a bunch of characters resolved into a single combined glyph, like in arabic)?
Re: Map label placement in Mapbox GL
#3I love the work that the Mapbox folks are doing here -- and that they wrote it up so nicely! I have some questions, though! * Why can you only shift glyphs along a straight line during render? Is your geometry somewhat scale-invariant? * Could you keep the spline and relayout the text along the spline during zooming? Then you'd have great layout and no popping. * How do you handle complex text with really wide glyphs…
Complex text is complex. A bunch of characters may be resolved into a single joined visual glyph, but it is probably made up of smaller, overlapping glyphs from the font. Each of these individual glyphs would slide along the line separately. This results in defects of course
The challenge is finding the right balance of doing things right and performance/implementation effort.