Wed Nov 29 18:07:24 2017 by Alex Muro |
Using the awesome scalability of the planet generator and a bit of reverse engineering of the mercator projection, I created a tileserver that lets you create zoomable panable maps from the planet generator using node / express. You can see it in action at http://lor.availabs.org/tilemap code for the server available here: https://github.com/alexmuro/terrain-generator/blob/master/terrain-tile-server.js code for the client is just simple leaflet: https://github.com/alexmuro/terrain-generator/blob/master/ibin/tilemap/index.html whole thing is less than 200 lines of javascript thanks to the awesome work on the planet generator. Could still use some clean up and paramater passing from the command line instead of hardcoding the seed and colors but just wanted to share in case this was useful to other people. |