Skip to content

Commit 582630e

Browse files
committed
Replace deprecated subtract operation from Point
1 parent ee3c8ce commit 582630e

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)