Home > database >  react google maps find midpoint
react google maps find midpoint

Time:01-04

I am using the @react-google-maps/api package. I get the midpoint with onCenterChanged. My problem here is that every time the user drags it gives me the midpoint. Is it possible for me to get the midpoint as soon as the user releases their drag? I will send a fetch request and get results. According to the current system, it constantly sends requests in each movement.

CodePudding user response:

I solved my problem. The dragend event completely solved my problem. see: google-maps-react get marker position on drag end

  •  Tags:  
  • Related