summaryrefslogtreecommitdiff
path: root/include/mbgl/map/camera.hpp
Commit message (Collapse)AuthorAgeFilesLines
* [core] Revert use of optional<EdgeInsets>, because EdgeInsets has a natural ↵John Firebaugh2017-04-111-1/+1
| | | | "empty" state
* [core] Added Map::latLngBoundsForCameraBruno de Oliveira Abinader2017-03-241-0/+13
|
* [core] code style cleanupsKonstantin Käfer2016-07-011-13/+13
| | | | | | | - puts function definitions in a namespace ... {} rather than using namespace ...; - remove trailing whitespace - add trailing newline - protect SQL statements from being formatted by clang-format
* [core] Avoid redundant 'inline' usageBruno de Oliveira Abinader2016-06-181-2/+2
|
* [core] use #pragma once instead of ifdef include guardsKonstantin Käfer2016-05-251-4/+1
|
* [core] PrecisionPoint is now ScreenCoordinateBruno de Oliveira Abinader2016-03-011-1/+1
|
* [core] Use experimental optional instead of mapbox::util::optionalJohn Firebaugh2016-01-191-12/+11
|
* [core] Added padding option to CameraOptionsMinh Nguyễn2016-01-181-0/+4
| | | | | | Moved EdgeInsets to geo.hpp so CameraOptions and Transform can refer to it. Added a padding option to CameraOptions that alters the frame of reference for the center option. Added optional padding parameters to LatLng getters and setters. Working towards #2600.
* [core] Consolidated zoom and angle anchor logicMinh Nguyễn2016-01-141-0/+4
| | | | Made anchor a CameraOption for easeTo().
* [core] Cleaned up TransformMinh Nguyễn2016-01-141-0/+7
| | | | | | Eliminated many redundant methods on Transform. Minimized usage of TransformState::x and TransformState::y. Added convenient constructors for AnimationOptions. When scaling, passing in view’s origin as the anchor no longer anchors the scaling operation at the view’s center. To specify no anchor, use NaN. Increased precision of worldSize(), now that it’s used much more heavily in transform methods.
* [core] Separated AnimationOptions from CameraOptionsMinh Nguyễn2016-01-141-9/+8
|
* [core] Reformulated flyTo optionsMinh Nguyễn2015-12-191-8/+9
| | | | The speed and curve fields in CameraOptions have been replaced with velocity and minZoom fields, which expressed in screen units. Scaling and easing make it difficult to derive options that are expressed in physical units.
* [core] Refined and commented flyToMinh Nguyễn2015-12-191-5/+42
| | | | | | | | Rewrote the flyTo implementation to more closely match GL JS’s implementation and the paper on which it is based. Rewrote CameraOptions documentation. Only document units for generic types like double. The semantics of LatLng and Duration are already baked into the types; one just needs to look up the types’ definitions. Also, the […) is set notation, so the braces are supposed to be mismatched. Fixes #3296.
* [android] Camera APIBrad Leege2015-12-181-5/+5
|
* [core] Corrected flying trajectory; pitched flightMinh Nguyễn2015-12-151-0/+2
| | | | | | Corrected some fairly opaque code that was incorrectly ported from GL JS the first time around in #3171, causing the trajectory to extend far into the Earth’s orbit. Also transition pitch while flying, call transition frame/finish callback functions, and recognize the same “speed” and “curve” parameters that GL JS does. Fixes #3296, fixes #3297.
* [core] add namespace comment to closing braceKonstantin Käfer2015-12-031-1/+1
|
* [core] [iOS] Completion handlers for animated methodsMinh Nguyễn2015-11-251-0/+4
| | | | | | Added transition frame and finish functions to CameraOptions. Added Objective-C equivalents to the three main entry points to easeTo() in MGLMapView. Fixes #1581.
* mason variant@1.0Mike Morris2015-09-301-1/+2
|
* CameraOptionsMinh Nguyễn2015-09-071-0/+22
Plumbed camera options all the way through to MGLMapView. Added a method that lets you specify a direction in addition to center point and zoom level. Added Map::jumpTo() for parity with mapbox-gl-js. Replaced usage of Map::setLatLng() and Map::setLatLngZoom() with Map::jumpTo() or Map::easeTo() within MGLMapView. Replaced MGLMapView.pitch with MGLMapCamera for setting all supported degrees of freedom simultaneously. Simultaneously move and rotate with course. Support customizable timing functions on iOS. iosapp now persists an archived MGLMapCamera instead of separate viewpoint properties and also synchronizes user defaults on termination. This change implements persistence entirely in Objective-C, eliminating the use of the Objective-C++ implementation. Fixes #1643, fixes #1834. Ref #1581.