diff --git a/package-lock.json b/package-lock.json index 91854ed..59f057b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@geoblocks/edittrack", - "version": "2.0.0-beta.4", + "version": "2.0.0-beta.7", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@geoblocks/edittrack", - "version": "2.0.0-beta.4", + "version": "2.0.0-beta.7", "license": "BSD-3-Clause", "devDependencies": { "@geoblocks/elevation-profile": "0.0.19", diff --git a/package.json b/package.json index 15c2882..8fc7590 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@geoblocks/edittrack", - "version": "2.0.0-beta.4", + "version": "2.0.0-beta.7", "description": "Geoblocks edittrack", "scripts": { "eslint": "eslint src test demos", diff --git a/src/interaction/TrackManager.ts b/src/interaction/TrackManager.ts index 8420ba2..8d81ff9 100644 --- a/src/interaction/TrackManager.ts +++ b/src/interaction/TrackManager.ts @@ -241,7 +241,6 @@ export default class TrackManager { this.onTrackChanged_(); } else { // control point - // FIXME multi lines: check this const {deleted, pointBefore, pointAfter, newSegment} = this.trackData_.deleteControlPoint(selected); // remove deleted features from source @@ -249,6 +248,7 @@ export default class TrackManager { // add newly created segment to source if (newSegment) { + newSegment.set('part', this.trackData_.part); this.source_.addFeature(newSegment); }