Skip to content

Draggable Marker Problem - Mouse position is weird #612

Closed
@caioaletroca

Description

@caioaletroca

Problem

I made a simple draggable marker some months ago but when I updated google-map-react package from version 1.0.4 to 1.0.5 with npm things get weird.

I made a code to show the problem:
https://codesandbox.io/s/53vvzj0mjp

Expected

When click on the marker, I pass the LatLng Mouse's position to the marker, that the marker can follow mouse movement.

Current

For some reason the marker seens to be offseted from the mouse position by half of map's size. He pops to the bottom right map portion (see the codesandbox for example).

Anyway, this is awesome package, thank you devs!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions