Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't drag and drop map correctly, marker moves with drag direction #19

Closed
Radiergummi opened this issue Feb 15, 2018 · 3 comments
Closed

Comments

@Radiergummi
Copy link

Radiergummi commented Feb 15, 2018

This issue occurs on the demo page as well (using Chrome/MacOS): If you try to scroll the map by using drag and drop, it only moves by a very small distance, then sticking until you drag and drop again. As this is a little hard to put into words, I've made a GIF:

feb -15-2018 13-05-01

In my own case, the marker seems to move with the map if I drag and drop:
feb -15-2018 13-07-24

maps.google.com works fine, as other embedded maps (without this Vue component) do.
Any idea what causes this and how to resolve it?

@Radiergummi
Copy link
Author

Radiergummi commented Feb 15, 2018

Okay, I feel a little stupid concerning the moving marker, obviously I was using the same coordinates object for the center prop and my marker position. Duh, rookie mistake.

Cannot get rid of the drag and drop problem, though...

@uskithub
Copy link

Though I do not know how to fix it, it seems to be caused by binding an event handler to the update of the center property below.
https://github.com/Akryum/vue-googlemaps/blob/master/src/components/Map.vue#L131

@krishnateja12345
Copy link

Now whats the solution for dragging map cm by cm?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants