diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2018-11-23 15:26:10 +0200 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2018-11-27 21:38:36 +0200 |
commit | e8f7866e9e3328bb4d40da172fb5a549315fd486 (patch) | |
tree | 88d4ca1f9ecfab5d54cfa3a3e340fb8c04b99141 /platform | |
parent | 9d1d4ecdb8bcbb10c8b1f3125ca2d78510856ce9 (diff) | |
download | qtlocation-mapboxgl-e8f7866e9e3328bb4d40da172fb5a549315fd486.tar.gz |
[core] Remove error-prone setlatLng overload
Diffstat (limited to 'platform')
-rw-r--r-- | platform/ios/src/MGLMapView.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/ios/src/MGLMapView.mm b/platform/ios/src/MGLMapView.mm index 8ab612663c..28367e83be 100644 --- a/platform/ios/src/MGLMapView.mm +++ b/platform/ios/src/MGLMapView.mm @@ -1579,7 +1579,7 @@ public: { CLLocationCoordinate2D centerCoordinate = _previousPinchCenterCoordinate; self.mbglMap.setLatLng(MGLLatLngFromLocationCoordinate2D(centerCoordinate), - mbgl::ScreenCoordinate { centerPoint.x, centerPoint.y }); + mbgl::EdgeInsets { centerPoint.y, centerPoint.x, self.size.height - centerPoint.y, self.size.width - centerPoint.x }); } } [self cameraIsChanging]; |