whosonfirst / whosonfirst-www-api

4 stars 2 forks source link

On page load, screenshot map and store for printing #104

Open thisisaaronland opened 6 years ago

thisisaaronland commented 6 years ago

Pick and choose from these:

https://github.com/whosonfirst/whosonfirst-www-spelunker/blob/master/www/static/javascript/mapzen.whosonfirst.leaflet.tangram.js#L171-L261

https://github.com/whosonfirst/electron-whosonfirst-bookmarks/blob/master/javascript/mapzen.whosonfirst.bookmarks.maps.js#L50-L81

Store image under the map or a div or something. Basically make sure every place page has a map when a person hits "print"

thisisaaronland commented 6 years ago

For pages with routing we'll need to redo this when the map changes, like when it redraws to zoom to the extent of the route.