Releases: geoman-io/leaflet-geoman
Releases · geoman-io/leaflet-geoman
Be Aware Of The Future
- Fixed Event Arguments
- Fixed Issue with multiple maps on a page
- drawing class are now ready so more shapes can be added in the future
- buttons are now ready so more shapes can be added in the future
- Changed drawing API - see readme
L.PM.initialize();
is no longer necessary. You can remove it.
Controls are now added like this:
map.pm.addControls();
instead of
L.PM.addControls(map);
Enabling/Disabling drawing modes changed too. Check the readme for more.
Hintline
Bug Squashing
- First click in drawing mode works now
- New Polygon Button is now properly synced with Drawing Mode
- Edit Mode is now being disabled when the polygon is removed from the map (so the markers don't stay on the map anymore)
Button now access toggleStatus
Merge pull request #20 from codeofsumit/develop button now accepts toggle status
Fixed Icon URL for Controls
Merge pull request #19 from codeofsumit/develop icon url is not added to button
added L.PM.disableDraw(map)
Merge pull request #17 from codeofsumit/develop added disableDraw method to L.PM
Draw Mode API
enable drawmode via:
L.PM.enableDraw({
map: map
});
disable via:
map.disableDraw();
Fix New Poly
Merge pull request #15 from codeofsumit/develop fix newPoly
Fix Bower
CSS files is now correctly included
Bower
This release makes this package available via bower install leaflet.pm