最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - How to highlight a region on Google Maps - Stack Overflow

programmeradmin1浏览0评论

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
Add a comment  | 

1 Answer 1

Reset to default 12

This 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.

发布评论

评论列表(0)

  1. 暂无评论