Leaflet Geoman Versions Save

🍂🗺️ The most powerful leaflet plugin for drawing and editing geometry layers

v2.16.0

2 months ago

!! Breaking Changes !!

This is only relevant for projects using very old versions of babel/webpack loaders

This version introduces new build tools in the library build toolchain. More specifically we have swapped webpack for eslint. This has improved our build speeds and made the build pipeline simpler and easier to maintain going forward. However the move to esbuild has also caused the library build assets (minified js files) to be compiled using a more modern version of ECMAScript. The current build files now use the optional chaining ?. syntax and this can cause issues with projects using older versions of webpack/babel or similar loaders.

If you face issues with upgrading to version v2.16.0 we suggest that you upgrade your own loaders and build toolchain to a version compatible with modern ECMAScript syntax.

Minor Changes

  • Add Kyrgyz translation: #1448

Patches

  • Update translation for rotation button title: #1442
  • Fix handling of drawing modes after disabling a control button: #1424
  • Unbind global listeners after the map is removed: #1434
  • Sort snapping layers by priority in a radius of 5px: #1454
  • Force rotateEnabled() to always return a boolean: #1455

Chores

Credits

Huge thanks to @Falke-Design, @xiyuvi, @strfx and @plainheart for helping!

New Contributors

Full Changelog: https://github.com/geoman-io/leaflet-geoman/compare/2.15.0...2.16.0

2.15.0

5 months ago

Minor Changes

  • Allow custom rotation point via setRotationCenter: #1362
  • Add pm:intersect event to Draw mode and refactor old intersection code: #1368
  • Add onVertexClick to Rectangle, Circle and CircleMarker: #1367

Patches

  • Auto Prettier on commit: #1413
  • Fix Norwegian translation typos (lower case): #1322
  • Update docs: #1360
  • Update persian translation: #1387
  • Update polish translation: #1365
  • Remove autofocus from Text Layers: #1409
  • Replace hard-coded Earth radius with L.CRS.Earth.R: #1406
  • Draw.Rectangle now correctly returns corners of rotated rectangle: #1373
  • Leaflet-Geoman now consistently uses crosshair as the cursor while drawing: #1410
  • [Refactor] Extends Circle from CircleMarker: #1309
  • Auto detect initial angle of Rectangle: #1370
  • Update GlobalModes for Removal and Rotate + some little fixes: #1418
  • Chore(docs): update docs website: 144c0c89a55a93f011d7b90170c7dee748de8189
  • Chore(deps): Bump minimist from 1.2.5 to 1.2.8: #1325
  • Chore(deps-dev): Bump webpack from 5.36.2 to 5.76.0: #1335
  • Fix listen to layerremove instead of pm:remove to keep snapList updated: #1343
  • Update lint config and lint all files: 62b6ee6377fc2ef6a7ec35903f53d27e65b3b949
  • Chore(deps-dev): Bump postcss from 8.4.5 to 8.4.31: #1403
  • Chore(deps-dev): Bump word-wrap from 1.2.3 to 1.2.4: #1381
  • Use preferred tile.openstreetmap.org URL: #1393
  • Fix disabling snapping with altKey: #1379
  • Chore(deps): Bump tough-cookie and @cypress/request: #1414
  • Chore(deps-dev): Bump @babel/traverse from 7.16.5 to 7.23.4: #1415
  • Update node version: #1420

Credits

Huge thanks to @strfx, @Falke-Design, @andreasvatne, @cksadra, @artur1989, @0scvr, @AlimurtuzaCodes, @beig, and @Dimitar5555 for helping!

2.14.2

1 year ago

Patches

  • Update Pro Purchasing Link: 88d2d0a000774cbcfafe375242a930f5a7fb2e55
  • Fix map dragging after editing Text-Layer: #1302
  • Fix TypeScript translation: #1316
  • Fix multiple instances of Rotation: #1306

Credits

Huge thanks to @Falke-Design for helping!

2.14.1

1 year ago

Patches

  • Fix install by removing engine in package.json: 7c3e5e088848a436d0854a3fa7ad2e1deb9a5a31

2.14.0

1 year ago

Minor Changes

  • 🇫🇮 Add Finnish translations: #1262
  • 🇰🇷 Add Korean translation: #1268
  • Add more text-layer events: #1265
  • Add setInitAngle option for rectangles: #1260
  • Add setStyle to Draw class to update style of currently drawn shape: #1290

Patches

  • Change rotateEnabled return type void to boolean (#1264): #1263
  • Optimize performance and prevent Leaflet bug: #1277
  • Fix rotation of new added layer: #1270
  • Remove .only from tests: b7effdc37ea25792f54860fece6dd4b2ff6061da
  • Doesn't return the rotation help-layer over getGeomanLayers(): #1287
  • Draw start now always puts first marker at the center of the map: #1261
  • Update Readme with Pro options & title of test: #1291
  • Chore(npm): add engines and nvmrc for easier node version handling: 7fcd102cc6250462e737a6b25a11f2f25a4f0099
  • Move fixes from Pro code into OSS: #1280

Credits

Huge thanks to @masysma, @sundo-dylan, and @Falke-Design for helping!

2.13.1

1 year ago

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!

2.13.0

1 year ago

Minor Changes

  • Add Text Layer: #1120 textlayer

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!

2.12.0

2 years ago

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!

2.11.4

2 years ago

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!

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!