diff options
author | Dave Prukop <dave.prukop@mapbox.com> | 2018-09-20 15:13:03 -0700 |
---|---|---|
committer | Dave Prukop <dave.prukop@mapbox.com> | 2018-09-20 15:13:03 -0700 |
commit | 2bbd6ef18daaf78a3540cd3656018c8db7c51b61 (patch) | |
tree | 5f9f607719383312604b963afc1666bfc9cbb9fb /platform/macos/src/MGLMapView.h | |
parent | 2f7a1475e0287f9ca62c2d838f71011595cdb526 (diff) | |
download | qtlocation-mapboxgl-2bbd6ef18daaf78a3540cd3656018c8db7c51b61.tar.gz |
New setCamera: edgePadding: animated: methodupstream/new-set-camera
Diffstat (limited to 'platform/macos/src/MGLMapView.h')
-rw-r--r-- | platform/macos/src/MGLMapView.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/platform/macos/src/MGLMapView.h b/platform/macos/src/MGLMapView.h index ddb5747109..37e976e8c1 100644 --- a/platform/macos/src/MGLMapView.h +++ b/platform/macos/src/MGLMapView.h @@ -310,6 +310,19 @@ MGL_EXPORT IB_DESIGNABLE /** Moves the viewpoint to a different location with respect to the map with an + optional transition animation. + + @param camera The new viewpoint. + @param edgePadding The minimum padding (in screen points) that would be visible. + @param animated Specify `YES` if you want the map view to animate the change to + the new viewpoint or `NO` if you want the map to display the new viewpoint + immediately. + + */ +- (void)setCamera:(MGLMapCamera *)camera edgePadding:(NSEdgeInsets)edgePadding animated:(BOOL)animated; + +/** + Moves the viewpoint to a different location with respect to the map with an optional transition duration and timing function. @param camera The new viewpoint. |