Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [all] Merge View into RendererBackend | John Firebaugh | 2017-07-26 | 1 | -1/+0 |
| | |||||
* | [core] abort early when the dimension is 0 | Konstantin Käfer | 2017-07-17 | 1 | -1/+1 |
| | |||||
* | [core] Check if frameZoom is NaN in Transform::flyTo callback | Bruno de Oliveira Abinader | 2017-06-28 | 1 | -0/+5 |
| | |||||
* | fix #8300 flyTo for close points (#9199) | Ansis Brammanis | 2017-06-06 | 1 | -10/+7 |
| | | | | | | | | | | | | | | The isClose threshold is switched from 0.000001 pixels to 1 pixel. As a backup, it checks whether r0 and r1 are finite. It might be possible to have just the threshold check or just the finiteness check, but I don't see the harm in having both. std::abs(w0 - w1) < 0.000001 is removed because it doesn't look like it's needed. All calculations should run fine even if w0 === w1. Finally, the point interpolation is tweaked so that at the end of the flying (when k === 1) it ends up at the exact end point. I didn't see any bugs related to this, but it seems like a good thing to have explicitly. | ||||
* | [core] Make TransformState LatLngBounds optional | Bruno de Oliveira Abinader | 2017-06-01 | 1 | -3/+4 |
| | |||||
* | [core] Reduce use of RecalculateStyle | John Firebaugh | 2017-05-05 | 1 | -11/+7 |
| | | | | | | | * Don't use it to track zoom changes. Instead, Style::update can use the zoom history to check for a change in zoom from the previous frame. * Don't use it to track active property transitions. Style already knows which layers/light have an active transition, and can re-evaluate only those that do. This leaves layer property changes as the only use of RecalculateStyle. | ||||
* | [core] Ignore shortest path in Map::pixelForLatLng | Bruno de Oliveira Abinader | 2017-04-14 | 1 | -6/+1 |
| | |||||
* | [core] Tighten geo.hpp ctors | Bruno de Oliveira Abinader | 2017-04-14 | 1 | -2/+2 |
| | |||||
* | [all] Remove redundant scale-related camera methods | John Firebaugh | 2017-04-13 | 1 | -35/+11 |
| | | | | We don't need to have two different measurement systems for map zoom. | ||||
* | [core] Revert use of optional<EdgeInsets>, because EdgeInsets has a natural ↵ | John Firebaugh | 2017-04-11 | 1 | -24/+23 |
| | | | | "empty" state | ||||
* | [core] Added {set,get}{Min,Max}Pitch | Bruno de Oliveira Abinader | 2017-04-11 | 1 | -2/+12 |
| | |||||
* | [core] Added Map::{get,set}LatLngBounds | Bruno de Oliveira Abinader | 2017-04-11 | 1 | -0/+6 |
| | |||||
* | [core] Move {Map,Transform}::{get,set}{Min,Max}Zoom to bounds pragma | Bruno de Oliveira Abinader | 2017-04-11 | 1 | -0/+2 |
| | |||||
* | [core] Updated Size::isEmpty and TransformState::valid checks | Bruno de Oliveira Abinader | 2017-04-10 | 1 | -4/+6 |
| | |||||
* | [all] Make LatLng coordinates read-only | John Firebaugh | 2017-04-06 | 1 | -1/+3 |
| | |||||
* | [core] Tighten LatLng and other geo.hpp classes | John Firebaugh | 2017-04-06 | 1 | -22/+13 |
| | | | | | * Remove LatLng::null and enforce invariants * Remove unnecessary operator bool() | ||||
* | [core] Replace MapChange enum with MapObserver | Bruno de Oliveira Abinader | 2017-03-15 | 1 | -17/+7 |
| | |||||
* | [core] [android] - allow zooming/scaling to use AnimationOptions (#8181) | Tobrun | 2017-02-28 | 1 | -38/+38 |
| | | | [glfw] - allow glfw binding to use AnimationOptions instead of using direction directly | ||||
* | [core] - allow moveBy to use AnimationOptions | Tobrun | 2017-02-20 | 1 | -2/+2 |
| | | | | [android] - update jni bindings for moveBy with an interpolator | ||||
* | [build] move logging to util | Konstantin Käfer | 2016-11-22 | 1 | -2/+2 |
| | |||||
* | [core] change std::array<uint16_t, 2> to mbgl::Size | Konstantin Käfer | 2016-10-27 | 1 | -17/+16 |
| | |||||
* | [core] Move TransformState::{un,}project() to Projection | Bruno de Oliveira Abinader | 2016-10-19 | 1 | -8/+7 |
| | |||||
* | [core] Move TransformState::worldSize() to Projection | Bruno de Oliveira Abinader | 2016-10-19 | 1 | -3/+3 |
| | |||||
* | [core] Skip redundant spherical mercator variable updates in {ease,fly}To | Bruno de Oliveira Abinader | 2016-10-19 | 1 | -5/+0 |
| | |||||
* | [core] code style cleanups | Konstantin Käfer | 2016-07-01 | 1 | -35/+37 |
| | | | | | | | - 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] Added mbgl::util::DEFAULT_TRANSITION_EASE | Bruno de Oliveira Abinader | 2016-06-20 | 1 | -1/+1 |
| | |||||
* | [core] Avoid NaNs in TransformState unit conversions | Bruno de Oliveira Abinader | 2016-05-20 | 1 | -14/+13 |
| | | | | | Fix cases where e.g. state has either zero width or height, causing the unit convertion functions would return NaNs. | ||||
* | [core] remove MockView and View dependency in Transform | Konstantin Käfer | 2016-05-18 | 1 | -10/+20 |
| | |||||
* | [core] Rewrite TileCoordinate in terms of geometry.hpp point | John Firebaugh | 2016-05-17 | 1 | -26/+10 |
| | |||||
* | [core] Added Viewport mode | Bruno de Oliveira Abinader | 2016-05-11 | 1 | -2/+12 |
| | | | | | | Satisfies embedding platforms that requires the viewport coordinate systems to be set according to its standards e.g. viewport mirrored vertically. | ||||
* | [core] Use geometry.hpp's point | John Firebaugh | 2016-05-05 | 1 | -17/+3 |
| | |||||
* | [core] Privatize math.hpp and vec.hpp | John Firebaugh | 2016-05-05 | 1 | -1/+2 |
| | |||||
* | [core, ios, osx] cameraThatFitsCoordinateBounds | Minh Nguyễn | 2016-04-22 | 1 | -0/+10 |
| | | | | | | Added an API to get a camera that you can pass into -[MGLMapView setCamera:] that fits the given coordinate bounds, by analogy with -[MKMapView regionThatFits:] or -[MKMapView mapRectThatFits:edgePadding:]. Added mbgl::Map::getCameraOptions() for getting the current camera options more conveniently. | ||||
* | [core] s/Update::Zoom/Update/RecalculateStyle/ | Bruno de Oliveira Abinader | 2016-03-18 | 1 | -2/+2 |
| | |||||
* | [core] Check for NaNs in mbgl::util::{min,max,clamp} | Bruno de Oliveira Abinader | 2016-03-18 | 1 | -0/+1 |
| | |||||
* | [core] Always return wrapped coordinates | Bruno de Oliveira Abinader | 2016-03-14 | 1 | -1/+1 |
| | | | | | | This fixes an issue in both iOS and Android when e.g. adding a marker on both sides of the dateline border in Taveuni island, the marker in one of the sides would have an out-of-bounds longitude. | ||||
* | [core] Ignore shortest path when gesturing in Transform::easeTo | Bruno de Oliveira Abinader | 2016-03-14 | 1 | -3/+9 |
| | | | | | | | If gesture in progress, we transfer the world rounds from the end longitude into start, so we can guarantee the "scroll effect" of rounding the world while assuring the end longitude remains wrapped. Otherwise, find the shortest path. | ||||
* | [core] Simplify LatLng::unwrapForShortestPath usage | Bruno de Oliveira Abinader | 2016-03-14 | 1 | -40/+20 |
| | | | | | | | | | | Simplify LatLng::{wrap,unwrapForShortestPath} code, avoiding duplicated code between Transform::{latLngToScreenCoordinate,easeTo,flyTo}. Added unit tests for camera usage in Transform to detect cases like e.g. crossing the antimeridian as a shortest path between two coordinates. Transform::flyTo precision loss to be handled in #4298. | ||||
* | [core] Implement LatLng::null() | Bruno de Oliveira Abinader | 2016-03-13 | 1 | -2/+3 |
| | |||||
* | [core] Harden Transform anchor & padding usage | Bruno de Oliveira Abinader | 2016-03-13 | 1 | -66/+58 |
| | | | | | Use optional values for anchor & padding in Map and Transform functions instead of NaNs. Added unit tests to stress some edge cases. | ||||
* | [core] Fix non-anchored Transform::setAngle | Bruno de Oliveira Abinader | 2016-03-11 | 1 | -1/+1 |
| | | | | | This reverts a line change from b33b2f15, because we explicitely want the anchor to be invalid. | ||||
* | [core] Fix screen coordinates when crossing the antimeridian (#2) | Bruno de Oliveira Abinader | 2016-03-11 | 1 | -1/+1 |
| | | | | Added missing case. Really fixes #4155 this time. | ||||
* | [core] Fix screen coordinates when crossing the antimeridian | Bruno de Oliveira Abinader | 2016-03-10 | 1 | -1/+15 |
| | | | | | | | | | If the center and point coordinates are not in the same side of the antimeridian, we need to unwrap the point longitude to make sure it can still be seen from the visible side of the antimeridian that is opposite to the center side. Fixes #4155. | ||||
* | [core] Extra checks in Transform | Bruno de Oliveira Abinader | 2016-03-10 | 1 | -1/+5 |
| | |||||
* | [core] Check for NaNs in EdgeInsets | Bruno de Oliveira Abinader | 2016-03-10 | 1 | -12/+11 |
| | |||||
* | [core] Added Transform::getScreenCoordinate | Bruno de Oliveira Abinader | 2016-03-10 | 1 | -13/+18 |
| | |||||
* | [core] Remove _validPoint from Transform code | Bruno de Oliveira Abinader | 2016-03-10 | 1 | -11/+3 |
| | | | | vec2<T>::operator bool() checks for NaNs already. | ||||
* | [core] Coordinate wrapping fixes | Bruno de Oliveira Abinader | 2016-03-10 | 1 | -5/+15 |
| | | | | | | | | | | | | | | | - Make returning LatLngs unwrapped by default. - PointAnnotation and ShapeAnnotation are always wrapped so they can be selected via intersection from the visible tile boundaries. - Fixes LatLng::wrap() calculation. - Fixes LatLng::unwrapForShortestPath() calculation. The new unwrapForShortestPath algorithm unwraps the start coordinate either forwards or backwards depending on the end coordinate value, so we can always cross the antimeridian when needed and still obtain a wrapped end coordinate in the end. Fixes #4214. | ||||
* | [core] Added DEGREES_MAX as constant value | Bruno de Oliveira Abinader | 2016-03-01 | 1 | -2/+2 |
| | |||||
* | [core] Cleared TileCoordinate from Painter | Bruno de Oliveira Abinader | 2016-03-01 | 1 | -1/+0 |
| |