diff options
author | Asheem Mamoowala <asheem.mamoowala@mapbox.com> | 2017-12-18 17:11:43 -0800 |
---|---|---|
committer | Asheem Mamoowala <asheem.mamoowala@mapbox.com> | 2018-04-05 18:04:25 -0700 |
commit | cc01781db7281032f8c0c5eae54281187522a861 (patch) | |
tree | c12b23f6b69f8499a4d3db476b0f30c693c654e2 /platform/darwin/test | |
parent | dc495e1c9d831ccf928381845ffcb409c5d91271 (diff) | |
download | qtlocation-mapboxgl-cc01781db7281032f8c0c5eae54281187522a861.tar.gz |
[ios, macos] Projection Matrix and LatLng projection to Mercator methods
Diffstat (limited to 'platform/darwin/test')
-rw-r--r-- | platform/darwin/test/MGLGeometryTests.mm | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/platform/darwin/test/MGLGeometryTests.mm b/platform/darwin/test/MGLGeometryTests.mm index 1c85470188..57840d9953 100644 --- a/platform/darwin/test/MGLGeometryTests.mm +++ b/platform/darwin/test/MGLGeometryTests.mm @@ -163,4 +163,13 @@ [NSValue valueWithMGLCoordinate:quad.bottomRight], @"Quad bottom right should be computed correctly."); } + +- (void)testMGLMapPoint { + MGLMapPoint point = MGLMapPointMake(CLLocationCoordinate2DMake(37.936, -80.425), 0.0); + + MGLMapPoint roundTrippedPoint = [NSValue valueWithMGLMapPoint:point].MGLMapPointValue; + XCTAssertEqual(point.x, roundTrippedPoint.x); + XCTAssertEqual(point.y, roundTrippedPoint.y); + XCTAssertEqual(point.zoomLevel, roundTrippedPoint.zoomLevel); +} @end |