[core] Always return wrapped coordinates
This fixes an issue in both iOS and Android when e.g. adding a marker on both sides of the dateline border in Taveuni island, the marker in one of the sides would have an out-of-bounds longitude.
This commit is contained in:
@@ -662,5 +662,5 @@ LatLng Transform::screenCoordinateToLatLng(const ScreenCoordinate& point) const
|
||||
|
||||
ScreenCoordinate flippedPoint = point;
|
||||
flippedPoint.y = state.height - flippedPoint.y;
|
||||
return state.screenCoordinateToLatLng(flippedPoint);
|
||||
return state.screenCoordinateToLatLng(flippedPoint).wrapped();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user