[ios, macos] Fix MGLMapSnapshotter pointForCoordinate returns an scaled point.
This commit is contained in:
committed by
Fabian Guerra Soto
parent
3f7c30f9d3
commit
0ebc2ee91f
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user