Skip to content

Commit

Permalink
doc
Browse files Browse the repository at this point in the history
  • Loading branch information
podusowski committed Nov 1, 2023
1 parent e66b5e0 commit df3076a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions walkers/src/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ pub struct DetachedPosition {
}

impl DetachedPosition {
/// Calculate the real position, i.e. including the offset.
fn position(&self, zoom: u8) -> Position {
screen_to_position(self.position.project(zoom) - self.offset, zoom)
}
Expand Down

0 comments on commit df3076a

Please sign in to comment.