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.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.