Leaflet Geoman Versions Save

πŸ‚πŸ—ΊοΈ The most powerful leaflet plugin for drawing and editing geometry layers

2.11.3

2 years ago

Patches

  • Update persian translation: #939
  • Add a line in the docs on pmIgnore with opt-in on map creation (#951): #950
  • Fix Typescript GlobalCutModeToggledEventHandler: #955
  • Don't add toolbar to map when its updated and controls should be hidden: #956
  • Fix editing circle on crs simple map: #964
  • Fix TypeScript issue: wrong function name: #966
  • Remove obsolete listener: #971
  • Update typescript latlng: #973
  • Replace old control names with the new one: #975
  • Update french translation: #977
  • Fix display of hintmarker for circle and circleMarker when radius exceeds max radius option #983: #992
  • Fix Rectangle drawing with other crs and add max latitude: #993
  • Fix touch support for non-apple devices: #995
  • Fix value of isAltKeyPressed if window change was done by ALT+TAB: #999
  • Fix removing temp-layer if layer is removed while rotation: #998
  • Add circle layer to map only after setting center-marker: #1001
  • Replace circle to polygon calculation for CRS Simple maps: #1009
  • Add L.PM.Utils.pxRadiusToMeterRadius: #1007

Credits

Huge thanks to @Falke-Design, @tirli, and @mariejoechahine for helping!

2.11.2

2 years ago

Patches

  • Fix Infinite Zoom Level: #925
  • Fixes for Rotation . Fixes #919: #921
  • Fix TypeScript Issues. Fixes: #912, Fixes #917: #915
  • Raise z-index of vertex markers. Fixes #911: #913
  • Fix multiple issues with LayerGroups around throttling and dragging: #920
  • Properly return cutted layers in getGeomanDrawLayers. Fixes theoretical problem.: #927
  • Fire pm:edit after rotation: #928
  • Change L.Matrix to L.PM.Matrix: #931
  • Add Scale Mode ⭐: #932

Credits

Huge thanks to @Falke-Design for helping!

2.11.1

3 years ago

Patches

  • Update Dependencies: #905
  • Add GIFs to README

Credits

Huge thanks to @Falke-Design for helping!

2.11.0

3 years ago

Minor Changes

Rotation geoman-rotation

Drag of an entire Layer Group geoman-layer-group-drag

  • Add Rotation Feature: #793
  • Add map to the pm object of a new created layers | Add merge option to setPathOptions: #830
  • Add czech translation: #876
  • Add LayerGroup dragging: #835
  • Add options to limit edit / drag / remove / cut abilities on layers: #829
  • Add a few options to prevent adding / removing / moving of vertices and add Keyboard functions: #831
  • Add snapSegment: true option: #834
  • Refactor typescript definitions: #881

Patches

  • Fix Helper Markers during Rotation: #878
  • Fix missing re-init of LayerGroup and ImageOverlay: #884
  • Handle all events in centralized mixin: #836
  • Fix wrong name of _fireGlobalRotateModeToggled: #896
  • Add new functions / options to types: #895
  • Fix radius recalc when circle is dragged from center marker . Fixes #892: #894
  • Fix several issues in global modes: #903
  • Fix Keyevent error: #906
  • Fix #865: #868
  • Update Readme: #902

Credits

πŸ‘πŸ‘πŸ‘ Huge thanks to @Falke-Design, @Khoroshavin, @ryan-morris, @G4mingEdition, and @hstevanoski for helping!

2.10.0

3 years ago

Minor Changes

  • Enable users to overwrite internal Utils functions: #773
  • Make layers optionally snappable if pmIgnore is true. Fixes #797: #803
  • Add new event pm:layerreset and added intersectionReset flag to pm:markerdragend. Closes #800: #802
  • Add Ukrainian Translation: #812
  • Add Turkish translation - thanks @erdaldemirci: #822
  • Add new snapping options: #782

Patches

  • Update FA language: 04c85a32ca011197c5759cbf4de42abdf73f2451
  • Update typescript declaration file: #783
  • Update typescript definitions: #825
  • Update fa.json: 8937f8deae5eb1e54ed78bcdf48e2460a5d49a80
  • Prevent fire pm:vertexclick when middleMarker is dragged. Fixes #762: 24ed082dbb151f8b378647e5bdd471ea2e1ac896
  • Don't fire pm:vertexclick when middlemarker is dragged: 80d7044389865507ba76c5c1285ebcfcabacf867
  • Respect pmIgnore on edit and removal mode. Fix #759: 989bceab0d87fff9f57974fda2cfd5680ad98c7d
  • Fix btn-name css: #767
  • Fix intersection "red" when layer is already red by default. Fixes #751: d100974eadf712b84983fff6b3f46f7fd81d0261
  • Fix error when line with self-intersection was not cutted: #787
  • SnapList was not correct after removing and adding a layer in the pm:create event: #784
  • Re-init snappable Markers to be sure that pm:snapdrag is fired after selfIntersection is detected. Fixes #800: #801
  • Bump y18n from 4.0.0 to 4.0.1: #827
  • Remove !important from CSS and tiny fixes like radius on btn: 6ee52483d944df0f1e05e1c1f63911cd53bccdef
  • Remove !important from CSS rules so devs can overwrite it: 9fc3eb90950584fbf6acf1f930263c75b0db5598
  • L.PM.setOptIn() Bug fix and pmIgnore improvements with the editing tools: 0008af8eb72b1025ae22344233ab29ebe0858e00

Credits

Huge thanks to @Falke-Design, @diadenchuk, @elliots, and @ryan-morris for helping!

2.9.0

3 years ago

Minor Changes

  • Add MultiLineString Support . Fixes #143: #730
  • Add Pane Support: #733
  • Add Norwegian πŸ‡³πŸ‡΄ Translations: #716
  • Add Persian Translation (RTL): #737
  • Add option to force minimal vertex count so vertices can't be removed . Fixes #714: #722
  • Add pm:vertexclick Event when vertex is clicked: #724

Patches

  • Fix CircleMarker events and stuck . Fixes #709, #712: #720
  • Add button role to <a> element for a11y: #721
  • Replace complete .off() with specific one: #739
  • Reset Tooltip after vertex remove: #743
  • Fix bug: when marker was drawn, the layergroup was enabled: #726

Credits

Huge thanks to @henrikmaa, @cksadra and @Falke-Design for helping!

2.8.0

3 years ago

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!

2.7.0

3 years ago

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: 8880b1f2a58c9f99d7b3720762bd29abdeafb53b
  • 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: 4d09e4346407143d0961a6052048673e015ec850
  • Replace difference and intersection from turf: #633
  • Updated πŸ‡·πŸ‡Ί Russian language: #581

Credits

Huge thanks to @Falke-Design πŸš€ , @szimih, @Lexfoxer, and @m-hogg for helping!

2.6.0

3 years ago

Minor Changes

circle snap

  • 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

2.5.0

4 years ago

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: 3afdbedbe3dc7b839db894e5dd278b26c3718f47
  • LayerAddHandler is now properly cleaned up from map event: 2bed85ca04d1d64b6f252b842d158416e3b1f4e7

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.

πŸ‘‰ Leaflet-Geoman Pro is available now