summaryrefslogtreecommitdiff
path: root/platform/osx/app/MapDocument.m
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2016-04-22 00:17:39 -0700
committerMinh Nguyễn <mxn@1ec5.org>2016-04-22 11:13:03 -0700
commit91023f02f85ad243f867a2fb920699c3e1659f94 (patch)
tree4f3e68615c6a6562e74a2a21d6069ce788993c90 /platform/osx/app/MapDocument.m
parenta852ee24fbf6c883b7f64bad9883937eb7b8d80d (diff)
downloadqtlocation-mapboxgl-91023f02f85ad243f867a2fb920699c3e1659f94.tar.gz
[ios, osx] Coordinate formatter
Added a degree-minute-second coordinate formatter for general use. Use this formatter in iosapp and osxapp. Added unit tests for the coordinate formatter and for round-tripping geometry types through NSValue.
Diffstat (limited to 'platform/osx/app/MapDocument.m')
-rw-r--r--platform/osx/app/MapDocument.m3
1 files changed, 1 insertions, 2 deletions
diff --git a/platform/osx/app/MapDocument.m b/platform/osx/app/MapDocument.m
index aaa04e9914..2a537772b5 100644
--- a/platform/osx/app/MapDocument.m
+++ b/platform/osx/app/MapDocument.m
@@ -2,7 +2,6 @@
#import "AppDelegate.h"
#import "DroppedPinAnnotation.h"
-#import "NSValue+Additions.h"
#import <Mapbox/Mapbox.h>
@@ -222,7 +221,7 @@ static const CLLocationCoordinate2D WorldTourDestinations[] = {
// Temporarily set the display name to the default center coordinate instead
// of “Untitled” until the binding kicks in.
- NSValue *coordinateValue = [NSValue valueWithCLLocationCoordinate2D:self.mapView.centerCoordinate];
+ NSValue *coordinateValue = [NSValue valueWithMGLCoordinate:self.mapView.centerCoordinate];
self.displayName = [[NSValueTransformer valueTransformerForName:@"LocationCoordinate2DTransformer"]
transformedValue:coordinateValue];
}