Interactive world map - suggestions?

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 :-)

  • Mr. Doom
+3
source share
6 answers

just seems like a huge pain and very error prone

I overcame the pain and the errors corrected (normal, most of them). Here is the result: jVectorMap

+2
source

Google. -, Google , Wikimapia.org.

+1

, , Virtual Earth 6.1 javascript- API . , ( ), VEShape VELatLong , . VE , javascript API .

0

, , ASP.NET Virtual Earth Mapping Server:

http://simplovation.com/page/webmapsve.aspx

This is essentially a wrapper around Virtual Earth that abstracts out most (if not all) of the JavaScript that you traditionally need to write. It allows you to handle map events and completely manipulate map events using server-side .NET code.

0
source

I searched for the same thing and then found a Google virtualization intensity map. You can find more information here.

0
source

Try this, maybe this is what you expect http://www.ammap.com/

0
source

Source: https://habr.com/ru/post/1696979/


All Articles