StrandedKitty / streets-gl

🗺 OpenStreetMap 3D renderer powered by WebGL2
http://streets.gl
MIT License
632 stars 48 forks source link

Use `direction=*` tag for benches when available #22

Closed RedAuburn closed 1 year ago

RedAuburn commented 1 year ago

Before / After bitmap

https://www.openstreetmap.org/#map=19/51.47364/-0.00105

StrandedKitty commented 1 year ago

Thank you for the PR. I've added a lookup table for cardinal directions, and also I've changed it so that in the intermediate vector format (after parsing tags) we use degrees as this is how for example roof directions are implemeted. And only in the tile3d stage directions get converted to radians. Does it look fine?

RedAuburn commented 1 year ago

wow, that was fast! Looks perfect to me, thank you! 😄