How to highlight a region on Google Maps

后端 未结 1 970
忘了有多久
忘了有多久 2021-02-08 01:24

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

相关标签:
1条回答
  • 2021-02-08 02:08

    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 讨论(0)
提交回复
热议问题