summaryrefslogtreecommitdiff
path: root/test/map
Commit message (Collapse)AuthorAgeFilesLines
* [core] Fix non-anchored Transform::setAngleBruno de Oliveira Abinader2016-03-111-12/+17
| | | | | 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 Abinader2016-03-111-0/+16
| | | | Added missing case. Really fixes #4155 this time.
* [core] Fix screen coordinates when crossing the antimeridianBruno de Oliveira Abinader2016-03-101-0/+22
| | | | | | | | | 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] Check for NaNs in EdgeInsetsBruno de Oliveira Abinader2016-03-101-2/+36
|
* [core] Coordinate wrapping fixesBruno de Oliveira Abinader2016-03-101-6/+10
| | | | | | | | | | | | | | | - 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] Moved TileCoordinate to tile cover scopeBruno de Oliveira Abinader2016-03-011-6/+10
|
* [core] Moved wrapping to LatLng scopeBruno de Oliveira Abinader2016-03-011-0/+23
| | | | Fixes a precision loss when converting unwrapped LatLngs.
* [core] PrecisionPoint is now ScreenCoordinateBruno de Oliveira Abinader2016-03-011-7/+7
|
* [core] Enforce constants usageBruno de Oliveira Abinader2016-03-011-16/+17
| | | | | Use 'LATITUDE_MAX', 'LONGITUDE_MAX', 'DEG2RAD' and 'RAD2DEG' whenever possible.
* [core] Moving caching logic to DefaultFileSourceJohn Firebaugh2016-02-102-5/+5
| | | | This results in OnlineFileSource containing precisely the logic we want for reuse by OfflineFileSource, and no more.
* [core] Make bool conversions explicitJohn Firebaugh2016-02-031-2/+1
| | | | 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 APIJohn Firebaugh2016-02-021-6/+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
* [tests] Reorganize tests to match src structureJohn Firebaugh2016-02-024-0/+368