summaryrefslogtreecommitdiff
path: root/platform/darwin
diff options
context:
space:
mode:
authorFabian Guerra <fabian.guerra@mapbox.com>2018-01-24 16:23:19 -0500
committerFabian Guerra Soto <fabian.guerra@mapbox.com>2018-01-25 10:06:54 -0500
commit0ebc2ee91fa7f96a5cf3f4538b64d1835f08c81a (patch)
tree4d697d9e6b8db8c0d373170ff860dfadef93c7c5 /platform/darwin
parent3f7c30f9d3716bcf1ebea617a38aebe1401e20a1 (diff)
downloadqtlocation-mapboxgl-0ebc2ee91fa7f96a5cf3f4538b64d1835f08c81a.tar.gz
[ios, macos] Fix MGLMapSnapshotter pointForCoordinate returns an scaled point.
Diffstat (limited to 'platform/darwin')
-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