I've searched every where for this, the closest I have found isn't very satisfactory (this), Is there anyway to get google maps looking and acting like jvectormap? By acting I mean hover-able countries etc, and by looking I mean the clean look that vectormap has.
相关问题
- Is there a limit to how many levels you can nest i
- How to toggle on Order in ReactJS
- void before promise syntax
- Keeping track of variable instances
- Can php detect if javascript is on or not?
As suggested in my comment, you can check how to style the map:
https://developers.google.com/maps/documentation/javascript/styling
This can help you understand how it works, and eventually let you build your own:
http://gmaps-samples-v3.googlecode.com/svn/trunk/styledmaps/wizard/index.html
Regarding Fusion Tables, once you find the appropriate data set (there are many, some are incomplete, more or less, and the level of geometry details can vary from one set to another), you can download it as a CSV, and import it to your DB. From there, you can query your DB and create polygons for each country. I will update my answer later with some code to help you get started.
Edit: Here is a data set I used for one of my projects. Maybe it can help you. It only holds the fields I was interested in, but has random colors associated with each country.
http://www.sendspace.com/file/plgku3https://www.dropbox.com/s/7o5y26gfim1asf0/gmaps_countries.sql?dl=1Edit 2: Here is the JavaScript:
And here is get_countries.php:
Just call
jsonCountries()
when you need. Hope this helps!