diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2015-06-25 11:58:23 -0700 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2015-06-25 21:54:57 -0700 |
commit | 1d11624efdf2d73a8adb43310c481969ead18d46 (patch) | |
tree | c362981a8e2ff82e0cb00285de39565bae49588d /platform | |
parent | 68e404c522d318ca87e5435a997a21a9604ad0e8 (diff) | |
download | qtlocation-mapboxgl-1d11624efdf2d73a8adb43310c481969ead18d46.tar.gz |
Test fit to bounds; added MGLCoordinateBounds functions
Added a bunch of functions to work with MGLCoordinateBounds in a separate header analogous to MKGeometry.h. Added resolution-independent tests for common fit to bounds scenarios.
Diffstat (limited to 'platform')
-rw-r--r-- | platform/ios/MGLGeometry.m | 3 | ||||
-rw-r--r-- | platform/ios/MGLMultiPoint.mm | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/platform/ios/MGLGeometry.m b/platform/ios/MGLGeometry.m new file mode 100644 index 0000000000..9eab5565fa --- /dev/null +++ b/platform/ios/MGLGeometry.m @@ -0,0 +1,3 @@ +#import "MGLGeometry.h" + +const MGLCoordinateSpan MGLCoordinateSpanZero = {0, 0}; diff --git a/platform/ios/MGLMultiPoint.mm b/platform/ios/MGLMultiPoint.mm index 5721086e86..624c1658ad 100644 --- a/platform/ios/MGLMultiPoint.mm +++ b/platform/ios/MGLMultiPoint.mm @@ -1,5 +1,5 @@ #import "MGLMultiPoint.h" -#import "MGLTypes.h" +#import "MGLGeometry.h" #import <mbgl/util/geo.hpp> |