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