How can I highlight/cover a region or multiple regions with different colors (for example 3 US states), using google maps polygon arrays? I found a tuto on google code about how to draw a polygon but it's not giving detailed information.
Thank you for your help.
How can I highlight/cover a region or multiple regions with different colors (for example 3 US states), using google maps polygon arrays? I found a tuto on google code about how to draw a polygon but it's not giving detailed information.
Thank you for your help.
Share Improve this question asked Jun 21, 2011 at 20:55 SamSam 1311 gold badge1 silver badge4 bronze badges 1- 3 Hi were you able to highlight states? I am looking for the same thing but can't find any solution. Regards – user427969 Commented Oct 12, 2011 at 2:40
1 Answer
Reset to default 12This documentation on Google is about as straight forward as you can get.
http://code.google.com/apis/maps/documentation/javascript/overlays.html
View the source of this page. Copy and paste the code into your own page and start from there.
http://code.google.com/apis/maps/documentation/javascript/examples/polygon-simple.html
In the example above you simply need to make more than one instance of bermudaTriangle and name it something else and add it to the map.