[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:
Bruno de Oliveira Abinader
2016-03-14 12:16:53 +02:00
parent 7a509b0369
commit fc0a0ef98a
2 changed files with 7 additions and 1 deletions

View File

@@ -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();
}