summaryrefslogtreecommitdiff
path: root/src/mbgl/map/map.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [core] Get rid of MapData::{get,set}animationTimeBruno de Oliveira Abinader2016-03-181-2/+2
|
* [core] Default fade duration is now a constantBruno de Oliveira Abinader2016-03-181-9/+0
|
* [core] Remove default transition durationBruno de Oliveira Abinader2016-03-181-9/+0
|
* [core] s/Update::Zoom/Update/RecalculateStyle/Bruno de Oliveira Abinader2016-03-181-8/+8
|
* [core] Added user-defined transition properties when modifying classesBruno de Oliveira Abinader2016-03-181-6/+7
|
* [core] Remove MapData::defaultTransitionDelayBruno de Oliveira Abinader2016-03-181-9/+0
|
* [core] Move class handling to StyleBruno de Oliveira Abinader2016-03-181-17/+10
|
* [core] Harden Transform anchor & padding usageBruno de Oliveira Abinader2016-03-131-37/+40
| | | | | Use optional values for anchor & padding in Map and Transform functions instead of NaNs. Added unit tests to stress some edge cases.
* [core] Reset pitch in Map::resetPositionBruno de Oliveira Abinader2016-03-031-0/+1
|
* [core] PrecisionPoint is now ScreenCoordinateBruno de Oliveira Abinader2016-03-011-17/+17
|
* [core] Enforce constants usageBruno de Oliveira Abinader2016-03-011-5/+5
| | | | | Use 'LATITUDE_MAX', 'LONGITUDE_MAX', 'DEG2RAD' and 'RAD2DEG' whenever possible.
* Merge branch 'release-ios-v3.1.0'Minh Nguyễn2016-02-241-0/+10
|\
| * [core, ios, osx] Only constrain after adding to a windowMinh Nguyễn2016-02-101-0/+10
| | | | | | | | | | | | 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/+5
|/
* [core] Improve LatLngBounds APIJohn Firebaugh2016-02-021-4/+4
| | | | | | | * Use "named constructors": empty, world, hull * Make the two-argument constructor lenient (i.e., it is a hull operation) * Add various accessors * Enforce a single empty representation
* [core] Remove unusedJohn Firebaugh2016-02-021-4/+0
|
* [core] Remove unusedJohn Firebaugh2016-02-021-8/+0
|
* [core] add setMaxZoom, setMinZoomAnsis Brammanis2016-01-281-0/+14
| | | | also change the default maxZoom to 20 to match -js.
* [core, ios, osx] Tilt around visual center pointMinh Nguyễn2016-01-261-1/+5
| | | | 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.
* [core] Use experimental optional instead of mapbox::util::optionalJohn Firebaugh2016-01-191-1/+1
|
* [core, ios, osx, android, glfw] Flipped origin of Map::latLngForPixel(), ↵Minh Nguyễn2016-01-181-4/+8
| | | | | | | | Map::pixelForLatLng() Map and Transform methods assume an origin at the top-left corner of the view, like iOS, Android, and GLFW but unlike OS X. Transform is responsible for flipping coordinates between the top-left origin of Map and the bottom-left origin of TransformState. Fixes #3574.
* [core, osx] Added optional padding to convenience methodsMinh Nguyễn2016-01-181-11/+26
| | | | 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-181-4/+8
| | | | | | 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] Separated AnimationOptions from CameraOptionsMinh Nguyễn2016-01-141-9/+9
|
* [core] Clamp pitch in easeTo(), flyTo()Minh Nguyễn2015-12-191-1/+1
| | | | Also factored out the maximum pitch into a constant.
* [ios, android] Add methods to remove a custom layerJohn Firebaugh2015-12-171-0/+4
|
* [core] Fixed annotation icon replacementMinh Nguyễn2015-12-151-1/+1
| | | | Another pass at #3146, including a unit test.
* 2210: Sprites can be removed / updated correctlyRomain Quidet2015-12-151-1/+1
|
* [core] allow changing the orientationKonstantin Käfer2015-12-151-0/+12
| | | | 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-6/+10
|
* Implementation of flyTo.Adam Hunter2015-12-091-0/+6
|
* [core] Custom layersJohn Firebaugh2015-12-091-0/+11
|
* [core] add namespace comment to closing braceKonstantin Käfer2015-12-031-1/+1
|
* [core] Map::setSprite ⇢ Map::addAnnotationIconJohn Firebaugh2015-12-011-14/+10
| | | | Fixes #3084
* [core] Move MapData storage to MapContextJohn Firebaugh2015-12-011-2/+4
| | | | | 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-271-14/+0
|
* [core] Added MapDebugOptionsBruno de Oliveira Abinader2015-11-271-5/+5
| | | | | Map debug options are now cycled up to all debug options enabled, then back to none.
* [core] Added ConstrainMode::{HeightOnly,WidthAndHeight}Bruno de Oliveira Abinader2015-11-181-2/+2
| | | | | | | | | | 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-2/+2
| | | | | 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-4/+4
|
* [core] Use PrecisionPoint in zoom and angle functionsBruno de Oliveira Abinader2015-11-111-9/+9
|
* [core] Use pass-by-ref in CameraOptionsBruno de Oliveira Abinader2015-11-111-5/+5
| | | | | | | | 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-18/+21
|
* [core] Added PrecisionPoint to represent pixel pointsBruno de Oliveira Abinader2015-11-111-2/+2
|
* [core] Expose default fade duration to Map APIBruno de Oliveira Abinader2015-11-101-0/+9
|
* [core] Update after final frame of transitionMinh Nguyễn2015-11-061-1/+1
| | | | | | | | The final frame is self-destructing – it destroys the frame and finish functions – so technically we’re no longer inTransition(). Yet there still needs to be an update after that final frame. Also, avoid a redundant change notification on the last frame. (It would come too late, after the DidChange notification, anyhow.) Fixes #2946.
* [node] Output debug logs when a render test times outJohn Firebaugh2015-10-281-0/+4
|
* improve gestures in perspective viewAnsis Brammanis2015-10-261-0/+5
| | | | | | | 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 GLContextMode to MapDataBruno de Oliveira Abinader2015-10-221-2/+2
| | | | | | | 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/+16
| | | | | Some platforms requires specific information that was previously not available in public API, but stored internally in TransformState object.