fixed dragging polyline collision with router

This commit is contained in:
Fedor Katurov 2020-01-09 17:09:56 +07:00
parent 2be073078f
commit bdbe28b854
3 changed files with 31 additions and 19 deletions

View file

@ -239,6 +239,8 @@ export class InteractivePoly extends Polyline {
this._map.on("mousemove", this.dragHintMove);
this._map.on("mouseup", this.dragHintAddMarker);
this._map.on("mouseout", this.stopDragHintMove);
this.fire('vertexaddstart');
};
stopDragHintMove = (): void => {
@ -254,6 +256,7 @@ export class InteractivePoly extends Polyline {
setTimeout(() => {
this.is_dragging = false;
this.fire('vertexaddend');
}, 0);
};
@ -598,6 +601,8 @@ InteractivePoly.addInitHook(function() {
vertexdragstart,
vertexdragend,
vertexdrag,
vertexaddstart
vertexaddend
allvertexhide
allvertexshow