| This are beautiful. I had a go at doing roughly the same thing a couple of years ago [0]. It was mostly straightforward, but the part I really struggled with were rendering the sea. The encoding of OSM coastline is quite quirky [1]. When the edge of the rendering intersects with the coastline it's very tricky to compute which side of a coastline is sea and which is land. As an example - how would you render this [2]? I wasn't sure how I could solve this, so I wrote up a more abstract formulation of the problem here [3], and asked for help. I think the proposed solution make sense, but I think I would have to implement it by rendering individual pixels and wouldn't be able to lean on a higher level graphics library. I'm looking forward to seeing how the author solved this problem. [0] https://twitter.com/willsewell_/status/1172523752699113473 [1] https://wiki.openstreetmap.org/wiki/Tag:natural%3Dcoastline#... [2] https://www.openstreetmap.org/#map=15/22.0330/88.8819 [3] https://leetcode.com/discuss/general-discussion/1104642/im-s... |