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

Reapply current mode when layers are added #393

Closed
codeofsumit opened this issue Jan 24, 2019 · 0 comments
Closed

Reapply current mode when layers are added #393

codeofsumit opened this issue Jan 24, 2019 · 0 comments
Labels

Comments

@codeofsumit
Copy link
Contributor

When being in a mode, like Removal Mode, and adding layers programatically while in that mode, the necessary events are not applied so the mode is not working.
Sucks, needs fixing.

codeofsumit added a commit that referenced this issue Jan 24, 2019
…) (patch)

* added failing test

* added test for bug when event listeners are not properly removed

* major restructuring works for removal mode 🎉

* added failing test for edit mode

* fixed for edit mode

* fixed hasLayer command

* fixed for drag mode
hefler added a commit to zoopit/leaflet-geoman that referenced this issue Jan 30, 2019
* develop:
  2.0.2
  Fix various Intersection Problems (geoman-io#397) Circle Helpers are now properly ignored (patch)
  Fix circle resizing when center is moved. Fixes geoman-io#357. (patch)
  Fix finish action as mentioned in geoman-io#392 (patch)
  2.0.1
  unified formatting with prettier (patch)
  removeLastVertex now stops after drawing is disabled. Fixes geoman-io#392 (patch)
  Active global modes are now re-applied to new layers. Fixes geoman-io#393. (geoman-io#394) (patch)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant