summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Wray <jason@mapbox.com>2017-01-12 21:38:56 -0500
committerJason Wray <jason@mapbox.com>2017-01-13 15:43:41 -0500
commitbc0c8043d2f27df1c6be04f49a3563b9879bce15 (patch)
tree582cbb062851651e1077e397e4dae8d9d4fa6664
parent8f6009ea20dd74e39054c005d0e226ee07a3f168 (diff)
downloadqtlocation-mapboxgl-bc0c8043d2f27df1c6be04f49a3563b9879bce15.tar.gz
[ios] Add larger polyline to iosapp test shapes
-rw-r--r--platform/ios/app/MBXViewController.m11
1 files changed, 11 insertions, 0 deletions
diff --git a/platform/ios/app/MBXViewController.m b/platform/ios/app/MBXViewController.m
index 1d3139ee79..a14ad9350f 100644
--- a/platform/ios/app/MBXViewController.m
+++ b/platform/ios/app/MBXViewController.m
@@ -626,6 +626,17 @@ typedef NS_ENUM(NSInteger, MBXSettingsMiscellaneousRows) {
[self.mapView addAnnotation:triangle];
+ // West coast polyline
+ //
+ CLLocationCoordinate2D lineCoordinates[4] = {
+ CLLocationCoordinate2DMake(47.6025, -122.3327),
+ CLLocationCoordinate2DMake(45.5189, -122.6726),
+ CLLocationCoordinate2DMake(37.7790, -122.4177),
+ CLLocationCoordinate2DMake(34.0532, -118.2349)
+ };
+ MGLPolyline *line = [MGLPolyline polylineWithCoordinates:lineCoordinates count:4];
+ [self.mapView addAnnotation:line];
+
// Orcas Island, WA hike polyline
//
NSDictionary *hike = [NSJSONSerialization JSONObjectWithData: