Skip to content

Commit 7acdcf9

Browse files
twitwikarussell
authored andcommitted
Disable rezooming on intermediate point addition (graphhopper#1868)
1 parent 7f0a357 commit 7acdcf9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

web/src/main/resources/assets/js/main-template.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,7 @@ function setIntermediateCoord(e) {
397397
});
398398
var index = routeManipulation.getIntermediatePointIndex(routeSegments, e.latlng);
399399
ghRequest.route.add(e.latlng.wrap(), index);
400+
ghRequest.do_zoom = false;
400401
resolveIndex(index);
401402
routeIfAllResolved();
402403
}

0 commit comments

Comments
 (0)