diff options
author | Brad Leege <bleege@gmail.com> | 2015-04-09 18:49:53 -0500 |
---|---|---|
committer | Brad Leege <bleege@gmail.com> | 2015-04-09 18:49:53 -0500 |
commit | 88ec0f1607bd3a2cde92989660eb4bca18f4c5cc (patch) | |
tree | eafd0c79f8a7e2d4ec93c4d1f9e77405f1037964 | |
parent | 8f987ae4cd32440943f39691065ea170fe1a6338 (diff) | |
parent | 19e4bc7541afe6d1eee6c60de5bac8b914c0a1aa (diff) | |
download | qtlocation-mapboxgl-88ec0f1607bd3a2cde92989660eb4bca18f4c5cc.tar.gz |
Merge pull request #1249 from mapbox/1247-altitude
Altitude Metric
-rw-r--r-- | include/mbgl/ios/MGLMapboxEvents.h | 2 | ||||
-rw-r--r-- | platform/ios/MGLMapboxEvents.m | 2 | ||||
-rw-r--r-- | platform/ios/MGLMetricsLocationManager.m | 4 |
3 files changed, 7 insertions, 1 deletions
diff --git a/include/mbgl/ios/MGLMapboxEvents.h b/include/mbgl/ios/MGLMapboxEvents.h index 2af3d8b168..b10d79e114 100644 --- a/include/mbgl/ios/MGLMapboxEvents.h +++ b/include/mbgl/ios/MGLMapboxEvents.h @@ -10,6 +10,8 @@ extern NSString *const MGLEventKeyLongitude; extern NSString *const MGLEventKeyZoomLevel; extern NSString *const MGLEventKeySpeed; extern NSString *const MGLEventKeyCourse; +extern NSString *const MGLEventKeyAltitude; +extern NSString *const MGLEventKeyVerticalAccuracy; extern NSString *const MGLEventKeyPushEnabled; extern NSString *const MGLEventKeyEmailEnabled; extern NSString *const MGLEventKeyGestureID; diff --git a/platform/ios/MGLMapboxEvents.m b/platform/ios/MGLMapboxEvents.m index 346bd70aca..90822e6832 100644 --- a/platform/ios/MGLMapboxEvents.m +++ b/platform/ios/MGLMapboxEvents.m @@ -23,6 +23,8 @@ NSString *const MGLEventKeyLongitude = @"lng"; NSString *const MGLEventKeyZoomLevel = @"zoom"; NSString *const MGLEventKeySpeed = @"speed"; NSString *const MGLEventKeyCourse = @"course"; +NSString *const MGLEventKeyAltitude = @"altitude"; +NSString *const MGLEventKeyVerticalAccuracy = @"verticalAccuracy"; NSString *const MGLEventKeyPushEnabled = @"enabled.push"; NSString *const MGLEventKeyEmailEnabled = @"enabled.email"; NSString *const MGLEventKeyGestureID = @"gesture"; diff --git a/platform/ios/MGLMetricsLocationManager.m b/platform/ios/MGLMetricsLocationManager.m index 406186bb2a..b8b52f38d7 100644 --- a/platform/ios/MGLMetricsLocationManager.m +++ b/platform/ios/MGLMetricsLocationManager.m @@ -45,7 +45,9 @@ MGLEventKeyLatitude: @(loc.coordinate.latitude), MGLEventKeyLongitude: @(loc.coordinate.longitude), MGLEventKeySpeed: @(loc.speed), - MGLEventKeyCourse: @(loc.course) + MGLEventKeyCourse: @(loc.course), + MGLEventKeyAltitude: @(loc.altitude), + MGLEventKeyVerticalAccuracy: @(loc.verticalAccuracy) }]; } } |