Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [core] Fix MapSnapshotter build failure on Windows | Ander Conselvan de Oliveira | 2019-11-13 | 1 | -7/+2 |
| | | | | | | | | MSVC implementation of std::promise is buggy and only works with types that can be default-constructed. To avoid a compilation failure in the instantiation of ask() inside MapSnapshotter::getRegion(), which creates a std::promise<LanLngBounds>, make LatLngBounds' default constructor public. | ||||
* | [core] Fix performance-move-const-arg | Thiago Marcos P. Santos | 2019-09-25 | 1 | -2/+1 |
| | |||||
* | [core] Remove optional from Map::setLatLngBounds() | Ander Conselvan de Oliveira | 2019-03-14 | 1 | -1/+14 |
| | | | | | | | | This is a first step into grouping together bounds related Map methods into one that takes a "BoundOptions" object. LatLngBounds::unbounded() replaces an undefined optional<LatLngBounds>. v2: Document LatLngBounds::unbounded() | ||||
* | [core] Use unwrapped longitude for bounds check | Bruno de Oliveira Abinader | 2019-02-26 | 1 | -9/+4 |
| | |||||
* | [core] Avoid wrapping longitude values of exactly 180 and 360 (#12797) (#13006) | Ryan Hamley | 2018-10-24 | 1 | -1/+1 |
| | |||||
* | Support TileJSON bounds property (#10701) | Asheem Mamoowala | 2018-01-05 | 1 | -74/+4 |
| | | | | | | | | * [core] Parse TileJSON bounds property * [core] Add TileRange and LatLngBounds::contains(CanonicalTileID) Move LatLngBounds::contains impl to cpp file * [core] Skip tile creation outside of tileset bounds * [core] Fix TileRange for wrapped bounds and use for CustomTileLoader instead of LatLngBounds comparisons for tiles. | ||||
* | [core] Support wrapped bounds in LatLngBounds::contains and ↵ | Asheem Mamoowala | 2017-12-07 | 1 | -15/+74 |
| | | | | LatLngBounds::intersect. | ||||
* | [core] Add LatLngBounds::contains(const LatLngBounds&) | Asheem Mamoowala | 2017-10-30 | 1 | -0/+7 |
| | |||||
* | [core] Move ProjectedMeters to projection.hpp | John Firebaugh | 2017-04-18 | 1 | -28/+0 |
| | |||||
* | [core] Tighten geo.hpp ctors | Bruno de Oliveira Abinader | 2017-04-14 | 1 | -41/+70 |
| | |||||
* | [core] Revert use of optional<EdgeInsets>, because EdgeInsets has a natural ↵ | John Firebaugh | 2017-04-11 | 1 | -0/+3 |
| | | | | "empty" state | ||||
* | [core] Added LatLngBounds::{valid,constrain} | Bruno de Oliveira Abinader | 2017-04-11 | 1 | -0/+15 |
| | |||||
* | [all] Make LatLng coordinates read-only | John Firebaugh | 2017-04-06 | 1 | -37/+41 |
| | |||||
* | [core] Tighten LatLng and other geo.hpp classes | John Firebaugh | 2017-04-06 | 1 | -17/+18 |
| | | | | | * Remove LatLng::null and enforce invariants * Remove unnecessary operator bool() | ||||
* | [core] Added Map::latLngBoundsForCamera | Bruno de Oliveira Abinader | 2017-03-24 | 1 | -0/+8 |
| | |||||
* | [core] remove trailing whitespace, add trailing newlines, add space after // | Konstantin Käfer | 2017-01-27 | 1 | -4/+4 |
| | |||||
* | [core] code style cleanups | Konstantin Käfer | 2016-07-01 | 1 | -4/+4 |
| | | | | | | | - 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] Cleaned up enum classes | Bruno de Oliveira Abinader | 2016-06-18 | 1 | -7/+7 |
| | | | | | - Replaced static_cast with C++ casts. - Replaced inline with constexpr. | ||||
* | [tidy] Check modernize-pass-by-value | Bruno de Oliveira Abinader | 2016-06-13 | 1 | -2/+2 |
| | | | | Ref: http://clang.llvm.org/extra/clang-tidy/checks/modernize-pass-by-value.html | ||||
* | [test] Added Projection tests | Bruno de Oliveira Abinader | 2016-06-13 | 1 | -2/+6 |
| | |||||
* | [core] use #pragma once instead of ifdef include guards | Konstantin Käfer | 2016-05-25 | 1 | -4/+1 |
| | |||||
* | [core] Introduce StyleQueryParameters; push coordinate calculations into Source | John Firebaugh | 2016-05-17 | 1 | -0/+2 |
| | |||||
* | [core] Use mapbox::geometry::box in queryRenderedFeatures | John Firebaugh | 2016-05-13 | 1 | -0/+2 |
| | |||||
* | [core] Remove unused | John Firebaugh | 2016-05-13 | 1 | -13/+0 |
| | |||||
* | [core] move TileData and dependents to new *TileID classes | Konstantin Käfer | 2016-05-10 | 1 | -3/+5 |
| | |||||
* | [core] Use geometry.hpp's point | John Firebaugh | 2016-05-05 | 1 | -2/+4 |
| | |||||
* | [core] Inline LatLng::project definition the one place it's used | John Firebaugh | 2016-05-05 | 1 | -2/+0 |
| | |||||
* | [core] Privatize math.hpp and vec.hpp | John Firebaugh | 2016-05-05 | 1 | -1/+1 |
| | |||||
* | [core] Simplify LatLng::unwrapForShortestPath usage | Bruno de Oliveira Abinader | 2016-03-14 | 1 | -9/+8 |
| | | | | | | | | | | 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 | -0/+4 |
| | |||||
* | [core] Check for NaNs in EdgeInsets | Bruno de Oliveira Abinader | 2016-03-10 | 1 | -2/+3 |
| | |||||
* | [core] Coordinate wrapping fixes | Bruno de Oliveira Abinader | 2016-03-10 | 1 | -13/+11 |
| | | | | | | | | | | | | | | | - 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] Regression fix in LatLng::unwrapForShortestPath | Bruno de Oliveira Abinader | 2016-03-03 | 1 | -1/+5 |
| | | | | | | | When porting this from Transform::unwrapLatLng, I forgot to check for the second alternative. Fixes #4174. | ||||
* | [core] Added DEGREES_MAX as constant value | Bruno de Oliveira Abinader | 2016-03-01 | 1 | -1/+1 |
| | |||||
* | [core] Moved wrapping to LatLng scope | Bruno de Oliveira Abinader | 2016-03-01 | 1 | -4/+22 |
| | | | | Fixes a precision loss when converting unwrapped LatLngs. | ||||
* | [core] PrecisionPoint is now ScreenCoordinate | Bruno de Oliveira Abinader | 2016-03-01 | 1 | -3/+3 |
| | |||||
* | [core] Comparison operators for LatLngBounds | John Firebaugh | 2016-02-03 | 1 | -0/+11 |
| | |||||
* | [core] Make bool conversions explicit | John Firebaugh | 2016-02-03 | 1 | -4/+12 |
| | | | | Implicit bool conversions are bad; they'll be used e.g. for a == b and a != b if those operators are not defined. This was happening at https://github.com/mapbox/mapbox-gl-native/blob/032c8fba3c8e3c122dd399b5c9341d92ad9d286f/src/mbgl/map/transform.cpp#L132-L132, for example. | ||||
* | [core] Improve LatLngBounds API | John Firebaugh | 2016-02-02 | 1 | -9/+47 |
| | | | | | | | * 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 superflous inlines | John Firebaugh | 2016-02-02 | 1 | -18/+18 |
| | |||||
* | [core] Remove unused | John Firebaugh | 2016-02-02 | 1 | -4/+0 |
| | |||||
* | [core] Don't use struct | John Firebaugh | 2016-02-01 | 1 | -5/+10 |
| | | | | It makes forward declarations inconsistent and liable to change, for no real gain. | ||||
* | [ios] Flip points, not edge insets | Minh Nguyễn | 2016-01-18 | 1 | -2/+0 |
| | |||||
* | [core] Added padding option to CameraOptions | Minh Nguyễn | 2016-01-18 | 1 | -0/+34 |
| | | | | | | 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] allow changing the orientation | Konstantin Käfer | 2015-12-15 | 1 | -0/+8 |
| | | | | You can now change the orientation of north to be to the right, bottom, left in addition to the default of top | ||||
* | [core] add namespace comment to closing brace | Konstantin Käfer | 2015-12-03 | 1 | -1/+1 |
| | |||||
* | [core] Fix LatLngBounds default coordinates | Bruno de Oliveira Abinader | 2015-11-18 | 1 | -3/+10 |
| | | | | | | | | | LatLngBounds southwest and northeast coordinate points were inverted, so they could be extended via LatLngBounds::extend(). However, this looks confusing and error-prone. A static LatLngBounds::getExtendable() is added to address cases when we want to extend LatLngBounds. | ||||
* | [core] PrecisionPoint is now a vec2<double> | Bruno de Oliveira Abinader | 2015-11-12 | 1 | -17/+7 |
| | | | | | We could reuse all the operators defined in vec2<>, including operator bool() that checks if the contained values are !NaN. | ||||
* | [core] Added MetersBounds | Bruno de Oliveira Abinader | 2015-11-11 | 1 | -1/+13 |
| | |||||
* | [core] Added PrecisionPoint to represent pixel points | Bruno de Oliveira Abinader | 2015-11-11 | 1 | -1/+15 |
| |