问题描述:

I am trying to create a choropleth map in Google Maps to visualize some international country-level statistics. It will be an add-on to an existing Google Maps application.

I searched around and found these potential solutions:

  • Cartographer.js has the ability to overlay vector-based choropleth maps directly on Google Maps. However, it only supports US states.
  • Fusion Tables can also be used to create choropleth overlays (example). However, this adds complexity because data is maintained outside of my database. I also have to obtain and maintain country boundaries data.
  • Demographics Layer would have been perfect, but it is for Business customers only. Plus, it is limited to US geography.

So my question is... Is there a better way to do this in Google Maps JavaScript v3?

P.S. I just came across jVectorMap. It looks promising (example), except that it is just a standalone map. It would be nice if I can somehow combine the jVectorMap functionality with the Google Maps interface.

网友答案:

As an author of jVectorMap could say that combining of its functionality with Google Maps would be really painful. I think the best solution here would be creation of colorful polygons in GM by hand.

网友答案:

You would be best to go with one of these plugins:

http://leafletjs.com/ or http://polymaps.org/

相关阅读:
Top