'Boundaries in Google Map
I am using Google Maps for my website and I want to create boundaries of towns and cities, as shown in the screenshot below.
Problem: There seems not to be any feature in the V3 API to perform this function. I believe it involves retrieving the Latlng of the path that forms a polygon around the area. How then do you get the Latlng of the points needed?
Screenshot

Solution 1:[1]
ok, assuming you already have a path defined as a Polyline, you can then call the .getPath() function which returns an MVCArray of LatLng objects. I assume that answers your question "How then do you get the Latlng of the points needed?"
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | duncan |
