Skip to content

Commit

Permalink
fix(routing) tolerance on routes selection (#228)
Browse files Browse the repository at this point in the history
  • Loading branch information
pelord authored and gignacnic committed Nov 8, 2018
1 parent 52b043c commit 8cd25a5
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,12 @@ export class RoutingFormComponent implements OnInit, AfterViewInit, OnDestroy {
const selectRouteHover = new olinteraction.Select({
layers: [routesLayer.ol],
condition: olcondition.pointerMove,
hitTolerance: 10
hitTolerance: 7
});

this.selectRoute = new olinteraction.Select({
layers: [routesLayer.ol]
layers: [routesLayer.ol],
hitTolerance: 7
});

this.map.ol.on('pointermove', evt => {
Expand Down

0 comments on commit 8cd25a5

Please sign in to comment.