github geoman-io/leaflet-geoman v0.20.0
Events and Fixes

latest releases: v2.16.0, 2.15.0, 2.14.2...
6 years ago

Minor Changes

  • Added Vertex Events (MINOR): #227
    With this you could - for example - listen when new vertexes are added during drawing of a polygon:
// listen to vertexes being added to the workingLayer
map.on('pm:drawstart', function(e) {
    var layer = e.workingLayer;
    layer.on('pm:vertexadded', function(e) {
        // e includes the new vertex, it's marker
        // the index in the coordinates array
        // the working layer and shape
    });
});

Patches

  • Make HintMarker more visible: #220
  • Add Polyfill for findIndex: 5bce48c
  • Added marker index information to markerdrag events: #225: ca68845
  • Removed sourcemaps from prod build. Fixes #222: e1f4379
  • Add workingLayer to pm:drawstart: #221
  • Fix error when removing a layer during snappable drawing;: 8ba9844

Credits

Huge thanks to @newmanw and @richorama for their help!

Don't miss a new leaflet-geoman release

NewReleases is sending notifications on new releases.