Releases: geoman-io/leaflet-geoman
Redesigned Opt-In (+ a ton of additions & features)
Minor Changes
- Re-Designed Opt-In Functionality: #596
- Added L.ImageOverlay Support . Fixes #673: #675
- Add disabled state and click events to toolbar buttons . Fixes #642, #503: #646
- Layers can now directly be added to layergroups: #628
- Return layers of getGeomanLayers() and getGeomanDrawLayers() optionally as a FeatureGroup instead of an Array: #649
- Added continueDrawing and markerEditable . Fix #418: #697
- Added cut for polylines and fix a bug in cutting . Fixes #555: #691
- Added option snappingOrder to prioritise layers for snapping . Fixes #453: #686
- Added min/max radius for Circle and CircleMarker . Fixes #629: #635
- Added
markerdrag
event . Fixes #660, #662: #663 - Added event support for nested LayerGroups . Fixes #549: #695
- Added Chinese Traditional translation and added missing texts. Fixes #706: #707
- Added Danish translations: #670
- Added Typescript Typings: #678
Patches
- Fix _hiddenPolyCircle Bug with pmIgnore: true: #668
- Check if layer has coords (deep level) before add it to snap list: #667
- Reset of intersection-red not worked: #666
- Remove empty coord rings . Fixes #653: #665
- Fix missing pm instance for OptIn: #676
- Don't cut if cutting-layer has self-intersection . Fixes #680: #681
- Snapping now works for layers added during draw and fix rare snap bug on rectangle: #689
- Use map crs to calculate distance: #553
- Remove layers from Snaplist when pmIgnore is set: #682
- Enable layers which are added during Global Edit Mode . Fixes #561: #696
- Disable Popup opening while drawing . Fixes #543: #694
- Fix Tooltip Position for Default Marker in Leaflet 1.7.1: #708
- Fix state of enabled while edit mode for markers: #690
- Set the action-container always to direction ltr: #698
Credits
Huge thanks to @eaxexe, ❤️ @Falke-Design ❤️ , @ryan-morris, and @beig for helping!
Smoothing out the bumbs
Minor Changes
- Added function to get all Geoman layers: #625
- Added
edit
event for cutting: #624 - Added 🇭🇺 Hungarian translation: #647
- Toolbar Blocks can now be positioned independently: #626
- Properly return
shape
inside events: #643
Patches
- Fix cutPolygon typo. Fixes 620: 8880b1f
- Fix finishOn dblclick bug . Fixes #631: #632
- Fix Circle Drag Bug . Fixes #617: #623
- Fix bug when circle is the only layer on the map: #627
- Fix duplicate point creation in polygon draw and add tests: #621
- Fix Typo cutPoylgon: 4d09e43
- Replace difference and intersection from turf: #633
- Updated 🇷🇺 Russian language: #581
Credits
Huge thanks to @Falke-Design 🚀 , @szimih, @lexfoxer, and @m-hogg for helping!
Customizations 🔌
Minor Changes
- Snapping now works on circle border: #587
- Harmonize Drag Events for Markers and Circle Center: #591
- CircleMarkers are now editable in size and Layers can be snapped to circle border: #603
- Add Greek Translation: #611
- Add option to hide middle markers . Fixes #411: #615
- Add Powerful Toolbar Customizations . Fixes #614: #602
Patches
- Updated Swedish translations: #571
- CSS Corner fix: #570
- Changing drag cursor behavior if preferCanvas is true. Fixes #528: #590
- Fix Marker Snap Behaviour when Drag Mode was previously enabled.: #577
- Updated Russian language (#600): #581
- Fix Bug with preventMarkerRremoval . Fixes #576: #597
- Fix css for toolbar / controls on the right side: #601
- Updated documentation . Fixes #525, fixes #574: #593
- Marker drag check . Fixes #567: #594
- Support multiple self intersection . Fixes #455: #592
- Fix Prevention Of Draw-Finish when Self Intersection is forbidden: #548
- Fix Ghost Layers after cut: #598
- Remove Polygon on Vertex Removal if there are less than 3 vertices left . Fixes #606: #613
Credits
Huge thanks to @TomasJohansson, and @lexfoxer for helping!
Special round of applause to 👏 👏 @Falke-Design 👏 👏 - most of the changes came through his merged pull requests. Amazing work!
Want to support?
Contribute, or Sponsor this project:
https://github.com/sponsors/codeofsumit
Need more?
Check out Leaflet-Geoman Pro. It gives you even more features while funding this open source project
https://geoman.io/leaflet-geoman-pro
🚀 Performance 🚀
This release is a huge performance improvement for any applications with large amounts of data 🎉.
Minor Changes
- Added Marker Limit for Edit Mode. Fixes #366
Patches
- Fixed Performance Bugs: #557. Fixes #366
- Properly disable edit before enabling drag: #557
- Fixes error when providing a
weight
value to hintLine style (leaflet 1.4.0+): #524 - Remove redundant layer addition: #554
- Add Polyfill for Array.includes for IE11: #556
- Fixed options & perf for layer addition in edit mode: 3afdbed
- LayerAddHandler is now properly cleaned up from map event: 2bed85c
Credits
Huge thanks to @cosme-benito, @Falke-Design, and @ryan-morris for helping!
Leaflet-Geoman Pro ⭐️
The Pro version of this library received the same updates and 4 more options to improve performance for editing large datasets even more. You can find the full blog post here.
Global Options
Minor Changes
- You can now become a ❤️Sponsor: 975a47e
- Added 🇵🇱Polish translation: #532
- Added 🇸🇪Swedish translation: #507
- Added 🇮🇩Indonesian translation: #468
- Added setGlobalOptions: 46a98af
// make markers not snappable during marker draw
map.pm.setGlobalOptions({ snappable: false, });
Patches
- CircleMarker drag gets now disabled correctly (Fixes #536): e4ec028
- Programmatic toggle of globalEditMode correctly enables marker drag: 23f2ecd
- Make vertex-markers non-draggable for rectangle draw. Fixes #542: 49c6612
- Fire pm:cut AFTER changes are applied. Fixes #531: b78e762
- Remove layer references from layergroup when they are removed. Fixes #452: d530792
- Modes now use the "finish" label. Fixes #380: 2b20fca
- Fixed rouned corners of buttons for leaflet 1.6: 9f59212
- Fixed actions position for leaflet 1.6: 8ed4fed
Credits
Huge thanks to @adriankwiat, @Abbe98, and @andyprasetya for helping!
Leaflet Geoman Pro ⭐️
You can now get Leaflet-Geoman Pro and it's advanced features for commercial projects.
Opt-In to Leaflet-Geoman
Minor Changes
- Added opt-in Functionality: #504
You can now initiate leaflet-geoman with an opt-in functionality which basically setspmIgnore: true
as the default to all layers. See the docs for more info.
Patches
- Upgraded to Webpack 4 & fix security issue: #500
- Handles snapping for added shapes during draw. Fixes #477: a685d96
- Finishing a Rectangle now respects snapped marker positions. Fixes #448: 7caad97
- Style changes during edit mode are now properly preserved . Fixes #470: #506
- Added migration instructions: c00b70f
Leaflet-Geoman
This release offers no new features but instead focuses on the rebranding of the library.
leaflet.pm
will keep being available with version 2.2.0 on npm.
For future versions, please use leaflet-geoman-free
from npm.
Check the docs for more info:
https://github.com/geoman-io/leaflet-geoman
Migrate from Leaflet.PM
npm uninstall leaflet.pm
npm i @geoman-io/leaflet-geoman-free
That's it.
CircleMarker Support and more translations
Minor Changes
- Added CircleMarker Support: #282
- Added more events to mode toggling: #414
e.g.pm:globalremovalmodetoggled
orpm:globaldrawmodetoggled
- Added snapIgnore option to prevent layer as snap target: #400
- 🇧🇷 Added brazilian portuguese translation: #475
- 🇨🇳 Added Chinese translation: #466
- 🇪🇸 Added Spanish translation: #442
- 🇳🇱 Added Dutch translation: #446
- 🇫🇷 Added French translation: #454
Patches
Credits
Huge thanks to @pedroalvesr, @Michiel-Idgis, @cosme-benito, @liruifengv, @AliEmreYilmaz61, @JeremyOL, @SosthenG, and @Camouflager for helping!
test
test
teeeeest
urgh Github Actions are messy