summaryrefslogtreecommitdiff
path: root/src/mbgl/map/transform.cpp
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2017-04-13 23:46:19 +0300
committerJohn Firebaugh <john.firebaugh@gmail.com>2017-04-14 12:52:20 -0700
commit09a22715769c629ad433b405908b60e1b9fa969b (patch)
treeed4851f872f97de32fe38578d6c7b1c4bac5bb01 /src/mbgl/map/transform.cpp
parent98e2e59e5e963dbc5451a19233d942b429a74855 (diff)
downloadqtlocation-mapboxgl-09a22715769c629ad433b405908b60e1b9fa969b.tar.gz
[core] Ignore shortest path in Map::pixelForLatLng
Diffstat (limited to 'src/mbgl/map/transform.cpp')
-rw-r--r--src/mbgl/map/transform.cpp7
1 files changed, 1 insertions, 6 deletions
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;
}