How to color countries using google maps?

后端 未结 2 1890
孤独总比滥情好
孤独总比滥情好 2021-02-08 23:43

I need to color different countries in the world based on a Range (eg: population)

 Red  :   > 100 million
 Green:   50 - 99 million
 Ash  :   < 50 million         


        
2条回答
  •  心在旅途
    2021-02-09 00:26

    Use Google Charts API, not Google Maps API. It has a chart type of map which will allow you to very easily plot data by country and color-code them, e.g. http://code.google.com/apis/chart/interactive/docs/gallery/geochart.html#Example

提交回复
热议问题