google-maps-react icon indicating copy to clipboard operation
google-maps-react copied to clipboard

Polygon onClick getPath

Open gregwinn opened this issue 5 years ago • 0 comments

Hello, I need to get the path data from a Polygon after it's been moved around. Here is an example of what I am doing but I am not sure how to get the path data after the Polygon is clicked.

clickHandler = (props, polygon, event) => {
   // I have found props.google.maps.Polygon
   // How do I get the paths of the clicked polygon??
}
...
<Polygon onClick={this.clickHandler} ... />

Thanks for the help!

gregwinn avatar Nov 28 '20 04:11 gregwinn