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

fixed bug: setCenter to update circle location retained previous lngl… #78

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MissAnichka
Copy link

…at in _editCenterLngLat causing click on center dot to revert circle to previous location

To reproduce bug:

  • npm start
  • in example/index.js, comment out setTimeout function lines 103-110, save
  • open in browser
  • click the white center dot of the upper-left-most circle, editableCircle1
    (if unable to locate just comment out all other circles in js file)
  • [bug] the circle will pop back to it's originally initiated lnglat of {lat: 39.984, lng: -75.349} even though it had been set to {lat: 39.989, lng: -75.348} with setCenter, and clicking on the center white dot should not modify the circle, only clicking and dragging should change the center to wherever it is being dragged to.

This pull request fixes aforementioned bug. 👍

…at in _editCenterLngLat causing click on center dot to revert circle to previous location
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

Successfully merging this pull request may close these issues.

1 participant