prusnak/coinmap — pull request #28 by MattCMultimedia (2013-12-05 02:58:26+00:00)
Title: Hey! I've added support for all possible cryptocurrencies.

Hey! I've added support to coinmap for every cryptocurrency. In data/refresh.py, you can see a list of the enabled ones, currently just bitcoin and litecoin. Adding namecoin, PPC, NVC, etc should be as easy as adding them to the array. The new refresh.py also generates a currencies.js file that tells the js which currencies it should try to display.

In coinmap.js, there is now a separate overlay for each currency that can be toggled in the drop down at the top right of the page. I've commented out the `...L.control.Permalink...` because I get a console error about it and it seems like you've gotten rid of the permalinking for now.

For the rest of the files, I've propagated the currency variable so that everything is nice and modular.

For the overpass parser, I've added a supports() function that returns an array of the currencies that it can be used to search for. Then the points are generated using that currency as an argument and outputted back to the js files as usual.

I've modified the zipzap parser, but haven't tested the code because it's not used. It *should* work as expected, though, once supports() and write_markers() are added. The merchantId for litecoin should also be corrected.

I've also added a _litecoin.png icon.

Initially, I thought the code was awful, but they I realized the brilliance: it's a static file generator that can be hosted for cheap basically anywhere. Amazing!

I'm going to work on filtering markers by type and tags next, and possibly adding litecoinlocal.org parser support. (Speaking of, do you know if they offer an api? It's not the same as localbitcoin's).

Thanks for the wonderful website!