diff options
Diffstat (limited to 'platform/darwin/src/MGLPointCollection.mm')
-rw-r--r-- | platform/darwin/src/MGLPointCollection.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/darwin/src/MGLPointCollection.mm b/platform/darwin/src/MGLPointCollection.mm index ac4aaed60c..d8f0f0d3dc 100644 --- a/platform/darwin/src/MGLPointCollection.mm +++ b/platform/darwin/src/MGLPointCollection.mm @@ -54,7 +54,7 @@ NS_ASSUME_NONNULL_BEGIN if (!_bounds) { mbgl::LatLngBounds bounds = mbgl::LatLngBounds::empty(); for (auto coordinate : _coordinates) { - bounds.extend(mbgl::LatLng(coordinate.latitude, coordinate.longitude)); + bounds.extend(MGLLatLngFromLocationCoordinate2D(coordinate)); } _bounds = bounds; } |