Skip to content

Releases: geoman-io/leaflet-geoman

Japanese, Leaflet 1.9.2 and more fixes

15 Nov 09:55
Compare
Choose a tag to compare

Patches

  • Upgrade to Leaflet 1.9.2: #1239
  • Fix auto-focus on text-layer: #1244
  • Fix vertex remove of Multipolygon: #1243
  • Change css to set .active style to direct children only: #1241
  • Add version to TypeScript definition: #1238
  • Fix opt-in for text-layer and add the text to its options: #1240
  • Fix snapping when finishing draw on a segment of another layer: #1236
  • TS Type Return Improvements: #1215
  • Optimize isEmptyDeep for 300x performance improvement when dragging vertexes: #1230
  • Avoid empty clientX and clientY values when dragging marker in mobile…: #1208
  • Added Japanese translation: #1225
  • Update Afghanistan translation: #1237
  • Update Spanish translation: #1212
  • Chore(deps): Bump terser from 5.10.0 to 5.15.1: #1249
  • Chore(deps): Bump loader-utils from 1.4.0 to 1.4.1: #1254
  • Chore(deps): Bump ansi-regex from 3.0.0 to 5.0.1: #1250
  • Chore(deps): Bump minimatch from 3.0.4 to 3.1.2: #1255
  • Chore(deps): Bump moment from 2.29.1 to 2.29.4: #1198

Credits

Huge thanks to @SuperPat45, @ByMykel, @Falke-Design, @TurtIeSocks, @drzhbe, @wvddrss, @na3shkw, and @cksadra for helping!

Add Text Layer Support & Fixes

20 May 13:57
Compare
Choose a tag to compare

Minor Changes

Patches

  • Fix TS GlobalOptions: #1168
  • Fix ALT + TAB / blur in Chrome: #1167
  • Fix returning renderer for preferCanvas: #1166
  • Enable disabled button incl. functions: #1165
  • Fix: Update TS so that there is no error when compiling: #1155
  • Set title on the buttonContainer instead of the icon: #1171
  • Fixed error when call function disable/enable control button before initializing the control: #1143

Credits

Huge thanks to @Falke-Design, @jtsamper, and @vvlladd28 for helping!

Add New Events & Support Leaflet 1.8

20 Apr 19:37
Compare
Choose a tag to compare

Minor Changes

  • Add new events pm:dragenable, pm:dragdisable, pm:change: #1112
  • Update to Leaflet v1.8.0: #1140

Patches

  • Improvement disable control button when change state we do not redraw panel: #1094
  • Chore(deps): Bump moment from 2.29.1 to 2.29.2: #1135
  • Remove engine: #1084
  • Fix(canvas): properly detect canvas renderer when added manually: #1076
  • Chore(deps): Bump nanoid from 3.1.30 to 3.2.0: #1085
  • Fix(toolbar): Fixed redirect to another web page when clicking in the disabled control button: #1090
  • Fix(editing): Fix isRelevant check for Drag and Edit Mode: #1107
  • Fix(altitude): Keep altitude on latlng while dragging: #1108
  • Fix(TypeScript): allow custom buttons in addControls: #1109
  • Fix(cursorMarker): Fix visibility of cursorMarker: #1110
  • Chore(deps): Bump minimist from 1.2.5 to 1.2.6: #1132
  • Fix Marker & Polyline TS: #1133

Credits

Huge thanks to @Falke-Design and @vvlladd28 for helping!

Fixes and Housekeeping

19 Dec 21:34
Compare
Choose a tag to compare

Patches

  • Added lazy loading explanation to readme: #1015
  • Remove unused css class hidden: #1049
  • Fix snapping of circle center marker: #1036
  • Send pm:update after marker is edited: #1044
  • Fix dragging in canvas mode: #1046
  • Fix fire vertex removed event: #1028
  • Bump required node version to >=16 && <17

Credits

Huge thanks to @mcepo, @Falke-Design, and @lmachens for helping!

More Fixes, Typescript and Language Updates

16 Oct 14:24
Compare
Choose a tag to compare

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!

Patch Release

09 Jun 06:52
Compare
Choose a tag to compare

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!

README and Dependency Update

17 May 17:10
Compare
Choose a tag to compare

Patches

  • Update Dependencies: #905
  • Add GIFs to README

Credits

Huge thanks to @Falke-Design for helping!

Rotation

17 May 16:18
Compare
Choose a tag to compare

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!

More Customizations, Languages, Options and Events πŸš€

29 Mar 19:15
Compare
Choose a tag to compare

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: 04c85a3
  • Update typescript declaration file: #783
  • Update typescript definitions: #825
  • Update fa.json: 8937f8d
  • Prevent fire pm:vertexclick when middleMarker is dragged. Fixes #762: 24ed082
  • Don't fire pm:vertexclick when middlemarker is dragged: 80d7044
  • Respect pmIgnore on edit and removal mode. Fix #759: 989bcea
  • Fix btn-name css: #767
  • Fix intersection "red" when layer is already red by default. Fixes #751: d100974
  • 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: 6ee5248
  • Remove !important from CSS rules so devs can overwrite it: 9fc3eb9
  • L.PM.setOptIn() Bug fix and pmIgnore improvements with the editing tools: 0008af8

Credits

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

Support for MultiLineString and Panes

03 Jan 14:16
Compare
Choose a tag to compare

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!