I am looking to create a map of the “Countries you visited” - just like the ones you probably saw on Facebook, TravelAdvisor and much more.
I tried different sets of flashes, but they are not as advanced as we would like. The main problem that I encountered with all the different sets is to change the background color in the country when you click on it, and keep that color when you “deselect”. This is obviously necessary to give the user some visual feedback.
The only way I've managed to do this so far is to initialize flash via javascript using a huge XML string, have a click callback that interacts with Javascript, and with javascript change the XML string using regular expressions, and then send return the XML to flash It is pretty obvious that this FAR method is from optimal, and also very, very slow.
I tried FusionMaps, amMap, AnyMaps and diyMap, and so far I have not found a way to do this with any of them. If anyone had done something similar with any of them, I would really know how :-)
Does anyone have directions or suggestions as to what I should look at? I'm starting to think that it would be easier (though less flexible) to just use free SVG continent maps on Wikipedia, convert them to PNG and create an image map of all countries, and then use Canvas and VML to draw an element on top of the countries - but it's simple It seems like a huge pain and very error prone compared to the flash solution.
Thanks for reading, and I hope someone has some pointers to me :-)
Doomhammer
source
share