开发者

Google Maps mouseover a continent issue

How can i handle just the continents in Google Maps? I mean if the cursor is over Africa, paint the whole of Africa to red, etc.

I haven't seen any method to do this.

Thanks for your help.开发者_JAVA百科


With Google Map V3 API you can code it manually using overlay polygon and fill it similar to this example Polygon Fill. To mouseover and paint the whole continent you can use UI event and attach a listener and work off that.

As far as getting the "border coordinates," take a look at this Google Fusion Chart for countries. You can also export the chart to KML and use it to render the continents.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜