How can I get the coordinates of the cursor on the map using Google API v3 and Vue?

  • 0
    The problem is this. On the map component, I'm trying to capture the position of the cursor and send its coordinates (both on the map canvas and geographic) to the server. I coped with the coordinates on the canvas, that is, X-Y, but I just can't get to latLng. I catch it this way

    mapHover is the method that captures and dispatches.
    When I look at what comes to me in event, all I see is the MouseEvent object. So we come to the main question: can I dig in this direction to get the latLng of the cursor? If so, how? If not, how could it be otherwise?
    JavaScript Anonymous, Feb 10, 2019

  • 0 Answers
Your Answer
To place the code, please use CodePen or similar tool. Thanks you!