News for hackers. Stuff that matters.
Re:I built a vector map from scratch by kocheez75 on Thursday August 18, 2022 @05:02PM (#32514860)
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)
Re:I built a vector map from scratch by jahewson on Thursday August 18, 2022 @06:01PM (#32515409)
They’re drawn in WebGL using signed distance fields.

https://blog.mapbox.com/drawing-text-with-signed-distance-fi...

Re:I built a vector map from scratch by mourner on Wednesday August 24, 2022 @01:05PM (#32582422)
It renders in WebGL with SDFs, but rendering is a small part of the problem — placing labels along paths including curved ones, avoiding collisions etc. gets very complex very fast.