Skip to content

Commit

Permalink
Fix area mode
Browse files Browse the repository at this point in the history
  • Loading branch information
dabreegster committed Oct 24, 2023
1 parent 226282f commit 5f1b938
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions route-snapper/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ impl JsRouteSnapper {
/// Enables area mode, where the snapper produces polygons.
#[wasm_bindgen(js_name = setAreaMode)]
pub fn set_area_mode(&mut self) {
self.snap_mode = true;
self.router.config = Config {
avoid_doubling_back: true,
extend_route: true,
Expand Down

0 comments on commit 5f1b938

Please sign in to comment.