I’m developing a game, it displays a map with clickable countries. The fact that you can click on countries is giving me a headache. I can use an image per country and use absolute positioning and attach an onclick event, however, I’d have to stream 100 images to each user, I’d be unable to use sprites and a couple more things. I could mess with javascript, but I’m guessing it’s going to be a real mess. Is there any other way to implement this? Perhaps simpler, more elegant?
Share
You could use SVG maps, Wikipedia has plenty available: http://en.wikipedia.org/wiki/Wikipedia:Blank_maps
And here’s an example of clickable geography in SVG: http://raphaeljs.com/australia.html