Folks,
I have this code https://gist.github.com/2473387
But, how do I get the coordinates of the polygon drawn?
I suggest to add 'polygoncomplete' listener on DrawingManager and get coordinates from polygon MVCArray.
google.maps.event.addListener(drawingManager, 'polygoncomplete', function (polygon) {
var coordinates = (polygon.getPath().getArray());
console.log(coordinates);
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With