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

When a person clicks on a marker and then drags the selected marker, the marker should move #23

Closed
tristen opened this issue Jul 15, 2015 · 0 comments
Assignees
Milestone

Comments

@tristen
Copy link
Member

tristen commented Jul 15, 2015

The way I see this playing out is:

There are two states: edit & data (drawn or imported data)

  • mousedown emits a function that calls map.featuresAt. This returns the feature under the mouse and removes it from data object and put's it in the edit object.
  • mousedown + drag set's a key that enables mousemove
  • mousemove calculates the coordinates of the markers placement on the map and updates the new coordinates to the edit object.
  • mouseup unsets the key the enables mousemove, removes the feature from the edit object and updates the data object with the new coordinates.

cc @kelvinabrokwa

@kelvinabrokwa kelvinabrokwa self-assigned this Jul 16, 2015
@tmcw tmcw changed the title Dragging markers When a person clicks on a marker and then drags the selected marker, the marker should move Jul 16, 2015
@tmcw tmcw added this to the v1 milestone Jul 16, 2015
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

3 participants