Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [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 |
| | |||||
* | [core] Added isValid to geo helper structs | Bruno de Oliveira Abinader | 2015-11-11 | 1 | -0/+12 |
| | |||||
* | [core] Annotation refactor | John Firebaugh | 2015-10-20 | 1 | -0/+4 |
| | |||||
* | squash of #1655: shape annotations support for core & iOS | Justin R. Miller | 2015-06-15 | 1 | -1/+13 |
| | |||||
* | allow constructing LatLng/LatLngBounds objects from TileIDs | Konstantin Käfer | 2015-06-08 | 1 | -0/+8 |
| | |||||
* | Cocoa annotations API | Justin R. Miller | 2015-03-22 | 1 | -0/+7 |
| | |||||
* | refs #893 #992: point annotations API | Justin R. Miller | 2015-03-17 | 1 | -0/+15 |
| | |||||
* | fixes #476 & #853: pixel/meter/latlng conversion routines in core & iOS | Justin R. Miller | 2015-02-16 | 1 | -0/+24 |