summaryrefslogtreecommitdiff
path: root/include/mbgl/map
Commit message (Collapse)AuthorAgeFilesLines
...
* | [core] s/Update::Zoom/Update/RecalculateStyle/Bruno de Oliveira Abinader2016-03-181-1/+1
| |
* | [core] Added user-defined transition properties when modifying classesBruno de Oliveira Abinader2016-03-181-3/+5
| |
* | [core] Remove MapData::defaultTransitionDelayBruno de Oliveira Abinader2016-03-181-3/+0
| |
* | [core] Harden Transform anchor & padding usageBruno de Oliveira Abinader2016-03-131-14/+15
|/ | | | | Use optional values for anchor & padding in Map and Transform functions instead of NaNs. Added unit tests to stress some edge cases.
* [core] PrecisionPoint is now ScreenCoordinateBruno de Oliveira Abinader2016-03-012-10/+10
|
* Merge branch 'release-ios-v3.1.0'Minh Nguyễn2016-02-242-0/+5
|\
| * [core, ios, osx] Only constrain after adding to a windowMinh Nguyễn2016-02-102-0/+5
| | | | | | | | | | | | Introduced a setter/getter for constrain mode. On iOS and OS X, the zoom level inspectable causes the zoom level to be set independently from the longitude and latitude. Thus, the latitude inspectable had no effect because the latitude was constrained to 0 at z0. Temporarily removing the heightwise constraint allows the map to center on the intended location before zooming, which is the usual case for storyboards and XIBs. On iOS, the only guarantee we have timing-wise is that all the inspectables are applied after initialization but before the view is added to a window. So we reimpose the heightwise constraint as soon as the view is added to a window, that is, before the user has a chance to pan the map out of bounds. Fixes #3868.
* | [core] Add support for updating point annotationsGabriel Miklós2016-02-121-0/+2
|/
* [core] Remove unusedJohn Firebaugh2016-02-021-1/+0
|
* [core] Remove unusedJohn Firebaugh2016-02-021-3/+0
|
* [core] add setMaxZoom, setMinZoomAnsis Brammanis2016-01-281-0/+2
| | | | also change the default maxZoom to 20 to match -js.
* [core, ios, osx] Tilt around visual center pointMinh Nguyễn2016-01-261-0/+1
| | | | The tilt gesture on both iOS and OS X now respects the content insets. On iOS, in user tracking mode, it additionally respects the user dot’s position if it’s aligned to the top or bottom of the view.
* Cleanup std::chrono usageBruno de Oliveira Abinader2016-01-251-2/+2
| | | | Use mbgl::Duration and mbgl::{,Milli}Seconds whenever possible.
* [core] Use experimental optional instead of mapbox::util::optionalJohn Firebaugh2016-01-191-12/+11
|
* [core, osx] Added optional padding to convenience methodsMinh Nguyễn2016-01-181-2/+6
| | | | Methods that offer a convenient way to jump or ease now accept an optional padding parameter. MGLMapView specifies the padding to ensure that keyboard-based zooming and rotation respects the toolbar.
* [core] Added padding option to CameraOptionsMinh Nguyễn2016-01-182-8/+6
| | | | | | 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-142-2/+9
| | | | | | 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-142-11/+11
|
* [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
|
* [ios, android] Add methods to remove a custom layerJohn Firebaugh2015-12-171-0/+1
|
* [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] allow changing the orientationKonstantin Käfer2015-12-151-0/+4
| | | | You can now change the orientation of north to be to the right, bottom, left in addition to the default of top
* [core] Reduce custom layer API to lowest common denominatorJohn Firebaugh2015-12-111-4/+7
|
* Implementation of flyTo.Adam Hunter2015-12-091-0/+1
|
* [core] Custom layersJohn Firebaugh2015-12-091-0/+5
|
* [core] add namespace comment to closing braceKonstantin Käfer2015-12-033-4/+4
|
* [core] Map::setSprite ⇢ Map::addAnnotationIconJohn Firebaugh2015-12-011-5/+4
| | | | Fixes #3084
* [core] Move MapData storage to MapContextJohn Firebaugh2015-12-011-1/+1
| | | | | This allows MapData members to hold GL resources which must be released on the MapContext thread -- necessary for the following commit.
* [core] Collision debug is now MapDebugOptions::CollisionBruno de Oliveira Abinader2015-11-272-3/+1
|
* [core] Added MapDebugOptionsBruno de Oliveira Abinader2015-11-272-6/+29
| | | | | Map debug options are now cycled up to all debug options enabled, then back to none.
* [core] Fix image type of Map::renderStillJohn Firebaugh2015-11-252-2/+2
| | | | | | | It's a premultiplied image. This implies that we were misusing encodePNG in most cases, as we were passing premultiplied pixels which were then interpreted as unmultiplied. I changed encodePNG to accept premultipled pixels, and unpremultiply in the implementations.
* [core] Rewrite image handlingJohn Firebaugh2015-11-253-24/+5
| | | | | | * Consolidate Image and StillImage * Typecheck unassociated vs premultiplied images * Rewrite default platform image decoding implementation
* [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.
* [core] For binary image data use uint8_t, not charJohn Firebaugh2015-11-231-5/+3
|
* [core] Added ConstrainMode::{HeightOnly,WidthAndHeight}Bruno de Oliveira Abinader2015-11-182-1/+9
| | | | | | | | | | ConstrainMode gives flexibility to our engine to choose between constraining both vertically and horizontally, or just vertically (default behavior). Constrain in both axis means we can no longer pan the map beyond the map boundaries. This fixes an issue where e.g. annotations disappear upon crossing the map boundaries.
* [core] PrecisionPoint is now a vec2<double>Bruno de Oliveira Abinader2015-11-121-1/+1
| | | | | We could reuse all the operators defined in vec2<>, including operator bool() that checks if the contained values are !NaN.
* [core] Added MetersBoundsBruno de Oliveira Abinader2015-11-111-2/+2
|
* [core] Use PrecisionPoint in zoom and angle functionsBruno de Oliveira Abinader2015-11-111-7/+8
|
* [core] Use pass-by-ref in CameraOptionsBruno de Oliveira Abinader2015-11-111-4/+4
| | | | | | | | Pass-by-const-ref is not always possible because CameraOptions gets its members modified along the way. Also fixes a case in Map::jumpTo where Update::Zoom should be called if zoom is affected.
* [core] Use PrecisionPoint in coordinate functionsBruno de Oliveira Abinader2015-11-111-7/+7
|
* [core] Added PrecisionPoint to represent pixel pointsBruno de Oliveira Abinader2015-11-111-1/+1
|
* [core] Expose default fade duration to Map APIBruno de Oliveira Abinader2015-11-101-2/+5
|
* [node] Output debug logs when a render test times outJohn Firebaugh2015-10-281-0/+1
|
* improve gestures in perspective viewAnsis Brammanis2015-10-261-0/+1
| | | | | | | The location under your finger stays under your finger as you pan. The location you double tap to zoom stays at the same point. The location at the center of a pinch zoom stays at the center. The location at the center of a rotation stays at the center.
* [core] Added save/restore capabilities to GL configBruno de Oliveira Abinader2015-10-221-0/+4
|
* [core] Added GLContextMode to MapDataBruno de Oliveira Abinader2015-10-222-3/+9
| | | | | | | Adding new mbgl::GLContextMode enum to mbgl::Map ctor, which gets stored in MapData. In shared GL context environments, we cannot assume that the GL state that has been left since the last draw is the same, so we reset the GL configurations to their default values.
* [core] Added more transform state gettersBruno de Oliveira Abinader2015-10-211-0/+4
| | | | | Some platforms requires specific information that was previously not available in public API, but stored internally in TransformState object.