Closed ChuchoJuarez closed 7 years ago
Hello @ChuchoJuarez, can you please explain what you are trying to do in more details? I'm not sure what you mean by "with pointer". Thanks!
Hey @ChuchoJuarez, I'm assuming you want to get the coordinates of the user clicks. Below is a sample code snippet that would allow you to get the latitude and longitude of the user's click:
class Map extends Component{
onClick(e){
var latLong = [e.latLng.lat(), e.latLng.lng()];
console.log(latLong);
}
render(){
return(
<GMaps
//insert params here
onClick = {this.onClick}
</GMaps>
);
}
}
Thanks!!!!! @copperstick6 this is just what I needed
Hi I want to know if it is possible to get the coordinates with the pointer.
regards