Skip to content

Commit 74dda7d

Browse files
authored
Merge pull request #215 from 22-David/master
Support for flutter_map prerelease version 7.0.0-dev.1
2 parents ee3c8ce + 582630e commit 74dda7d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/src/map_calculator.dart

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@ class MapCalculator {
99
MapCalculator(this.mapState);
1010

1111
Point<double> getPixelFromPoint(LatLng point) {
12-
return mapState
13-
.project(point)
14-
.subtract(mapState.pixelOrigin)
15-
.toDoublePoint();
12+
return mapState.project(point) - mapState.pixelOrigin.toDoublePoint();
1613
}
1714

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

0 commit comments

Comments
 (0)