Squashing bugs on the world stage

« Previous / Next »Filed under geekiness whilst half-asleep, Friday, 27th March 2009.

A month or so ago I wrote a quick app to draw World Maps in the HTML <canvas> tag. Today I fixed a couple of issues with it which were kindly pointed out by two individuals.

Firstly, Andreas Lind Petersen kindly wrote to me to say I had a bug where Switzerland and China were concerned, countries with the ISO codes "ch" and "cn" respectively. In my Illustrator file, the Chinese province of Hainan had managed to find itself grouped in with Switzerland which suddenly made Heidi's landlocked mountainous tax-haven idyll around 6,000 miles wide. I've fixed this problem now, hopefully without international incident.

Secondly, "Deadmeat" noticed that I'd missed out Tasmania altogether. Actually, Deadmeat (beautiful name, well presented), I hadn't forgotten it, it was there in the code if you looked. Sadly, Mr. Meat was right though as a small Illustrator faux pas on my part meant that the path wasn't closed properly, which confused the JavaScript and the island was left out altogether. My mistake, fixed now: apologies, Hobart!

Add a comment

Your Name:

Thank you for considering posting a comment.

If you wish to enter a website address that is entirely up to you. Your email address will not be published anywhere on this site and I ask for it only so I can get in touch with you.

Your Website: (optional)
Your Email Address: (not published)
Your Message:
 
Jon Combe