[ios, macos] Fix MGLMapSnapshotter pointForCoordinate returns an scaled point.

This commit is contained in:
Fabian Guerra
2018-01-24 16:23:19 -05:00
committed by Fabian Guerra Soto
parent 3f7c30f9d3
commit 0ebc2ee91f

View File

@@ -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