tangrams / tangram

WebGL map rendering engine for creative cartography
https://tangram.city
MIT License
2.22k stars 290 forks source link

Export map as svg? #735

Closed stefaneidelloth closed 4 years ago

stefaneidelloth commented 4 years ago

Is it possible to export maps/layers as svg file?

meetar commented 4 years ago

Yes, but not using built-in functionality. There have been a few examples of this using other libraries, including the https://github.com/hanbyul-here/svg-exporter repo, but I'm not sure if any of them are still working. :/

But that's where I'd start – good luck!

(For other questions feel free to drop by our gitter channel: https://gitter.im/tangrams/tangram-chat)

bcamper commented 4 years ago

Note that the SVG example linked is geared towards the underlying Tilezen vector tiles, but not Tangram specifically, so wouldn't include any Tangram styling, etc. Tangram renders with WebGL, which has a very different method of expressing geometry and styling compared to SVG, and unfortunately the two aren't easily compatible.