mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2026-04-20 18:41:17 +00:00
Merge branch 'dev'
This commit is contained in:
@@ -612,10 +612,8 @@ export class RoutingControls {
|
|||||||
addIntermediateAnchor(e: maplibregl.MapMouseEvent) {
|
addIntermediateAnchor(e: maplibregl.MapMouseEvent) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
||||||
console.log('add intermediate anchor');
|
|
||||||
|
|
||||||
if (this.temporaryAnchor !== null) {
|
if (this.temporaryAnchor !== null) {
|
||||||
// this.turnIntoPermanentAnchor();
|
this.turnIntoPermanentAnchor();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -898,7 +896,6 @@ export class RoutingControls {
|
|||||||
|
|
||||||
this.draggedAnchorIndex = e.features![0].properties.anchorIndex;
|
this.draggedAnchorIndex = e.features![0].properties.anchorIndex;
|
||||||
this.draggingStartingPosition = e.point;
|
this.draggingStartingPosition = e.point;
|
||||||
this.lastDraggedAnchorEventTime = Date.now();
|
|
||||||
|
|
||||||
_map.on('mousemove', this.onMouseMoveBinded);
|
_map.on('mousemove', this.onMouseMoveBinded);
|
||||||
_map.once('mouseup', this.onMouseUpBinded);
|
_map.once('mouseup', this.onMouseUpBinded);
|
||||||
@@ -915,7 +912,6 @@ export class RoutingControls {
|
|||||||
|
|
||||||
this.draggedAnchorIndex = e.features![0].properties.anchorIndex;
|
this.draggedAnchorIndex = e.features![0].properties.anchorIndex;
|
||||||
this.draggingStartingPosition = e.point;
|
this.draggingStartingPosition = e.point;
|
||||||
this.lastDraggedAnchorEventTime = Date.now();
|
|
||||||
|
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
_map.dragPan.disable();
|
_map.dragPan.disable();
|
||||||
|
|||||||
Reference in New Issue
Block a user