oSoc20 / SerendipityEngine

Aha! A generator for surprising yet recognizable maps of your neighbourhood
https://osoc20.github.io/SerendipityEngine/
MIT License
2 stars 1 forks source link

Export map to image #36

Closed KasperZutterman closed 4 years ago

KasperZutterman commented 4 years ago

Add the functionality to download the map as an image. Available solutions:

dormalexis commented 4 years ago

I had a look on it.

The problem with first solution is that it will render a canvas based on the html we have, it means also with downloads button, fit map, etc.. And we should add in the html for the top and the bottom of the image to follow Louis's design. Maybe not the best idea

For the second, it works well if we would have needed only one canva to be transformed into an image. But what about adding images ? I saw document.write was used to put the image generated in the html but it's not really what we want..

I'm having a look on that to generate the image which follows Louis's design that could let us free of having our html file and the file we want to render without having the need to link both : in this way we could have totally different image than from the website (regarding to layout)