Skip to content

Commit

Permalink
Merge pull request #215 from 22-David/master
Browse files Browse the repository at this point in the history
Support for flutter_map prerelease version 7.0.0-dev.1
  • Loading branch information
lpongetti authored May 8, 2024
2 parents ee3c8ce + 582630e commit 74dda7d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/src/map_calculator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@ class MapCalculator {
MapCalculator(this.mapState);

Point<double> getPixelFromPoint(LatLng point) {
return mapState
.project(point)
.subtract(mapState.pixelOrigin)
.toDoublePoint();
return mapState.project(point) - mapState.pixelOrigin.toDoublePoint();
}

Point<double> project(LatLng latLng, {double? zoom}) =>
Expand Down

0 comments on commit 74dda7d

Please sign in to comment.