summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Guerra <fabian.guerra@mapbox.com>2018-01-24 16:23:19 -0500
committerFabian Guerra <fabian.guerra@mapbox.com>2018-01-24 16:23:19 -0500
commit0e36fbc5ab0ef67c501f8e360b4e2c8ebfd7914b (patch)
tree4d697d9e6b8db8c0d373170ff860dfadef93c7c5
parent3f7c30f9d3716bcf1ebea617a38aebe1401e20a1 (diff)
downloadqtlocation-mapboxgl-upstream/fabian-point-for-coordinate-11003.tar.gz
[ios, macos] Fix MGLMapSnapshotter pointForCoordinate returns an scaled point.upstream/fabian-point-for-coordinate-11003
-rw-r--r--platform/darwin/src/MGLMapSnapshotter.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/darwin/src/MGLMapSnapshotter.mm b/platform/darwin/src/MGLMapSnapshotter.mm
index 15a8f6c8ca..8b4ae7977b 100644
--- a/platform/darwin/src/MGLMapSnapshotter.mm
+++ b/platform/darwin/src/MGLMapSnapshotter.mm
@@ -76,7 +76,7 @@ const CGFloat MGLSnapshotterMinimumPixelSize = 64;
- (CGPoint)pointForCoordinate:(CLLocationCoordinate2D)coordinate
{
mbgl::ScreenCoordinate sc = _pointForFn(MGLLatLngFromLocationCoordinate2D(coordinate));
- return CGPointMake(sc.x * self.scale, sc.y * self.scale);
+ return CGPointMake(sc.x, sc.y);
}
@end