From 09a22715769c629ad433b405908b60e1b9fa969b Mon Sep 17 00:00:00 2001 From: Bruno de Oliveira Abinader Date: Thu, 13 Apr 2017 23:46:19 +0300 Subject: [core] Ignore shortest path in Map::pixelForLatLng --- src/mbgl/map/transform.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/mbgl/map/transform.cpp') diff --git a/src/mbgl/map/transform.cpp b/src/mbgl/map/transform.cpp index f9a687480c..0480ce4d9d 100644 --- a/src/mbgl/map/transform.cpp +++ b/src/mbgl/map/transform.cpp @@ -621,12 +621,7 @@ void Transform::setGestureInProgress(bool inProgress) { #pragma mark Conversion and projection ScreenCoordinate Transform::latLngToScreenCoordinate(const LatLng& latLng) const { - // If the center and point longitudes are not in the same side of the - // antimeridian, we unwrap the point longitude so it would be seen if - // e.g. the next antimeridian side is visible. - LatLng unwrappedLatLng = latLng.wrapped(); - unwrappedLatLng.unwrapForShortestPath(getLatLng()); - ScreenCoordinate point = state.latLngToScreenCoordinate(unwrappedLatLng); + ScreenCoordinate point = state.latLngToScreenCoordinate(latLng); point.y = state.size.height - point.y; return point; } -- cgit v1.2.1