If I add a Polyline to my map with a click function:
onPolylineClick = (props, polyline) => {
console.log(props)
console.log(polyline)
}
<Polyline
onClick={this.onPolylineClick}
path={gpsCoords}
/>
Then how do I figure out where on the line it was clicked? I can see props.mapCenter
but that doesn't change depending on where I click, it's just the centre of the map.