Re:I built a vector map from scratch
by mourner on Thursday August 18, 2022 @04:55PM
(#32514772)
Nice tutorial! Brace yourself for the next step (text rendering and label placement) — this is way more difficult than it may seem at first, and contributes to a lot of complexity in Mapbox GL JS.
[ Parent
| on HN ]
Yeah, that’s precisely why I didn’t tackle that. I was wondering though, does it render text in GL on the web, or leverage the DOM? (I’m just using absolute positioning for the tile labels)
They’re drawn in WebGL using signed distance fields.
https://blog.mapbox.com/drawing-text-with-signed-distance-fi...