summaryrefslogtreecommitdiff
path: root/test/map
Commit message (Collapse)AuthorAgeFilesLines
* Color class (#5361)Young Hahn2016-06-151-2/+3
| | | | | | * Color class * Switch to list initialization
* [core, node, android] Remove used "base" parameter from setStyleJSONJohn Firebaugh2016-06-021-4/+4
|
* [core] Rationalize naming for style-related codeJohn Firebaugh2016-06-021-1/+2
|
* [tests] Add basic tests for Map::{add,remove}LayerJohn Firebaugh2016-06-021-10/+38
|
* [core] Avoid NaNs in TransformState unit conversionsBruno de Oliveira Abinader2016-05-201-0/+40
| | | | | 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 TransformKonstantin Käfer2016-05-181-25/+12
|
* [core] move from microsecond precision timestamp to integer second precisionKonstantin Käfer2016-05-131-1/+1
|
* [core] Added Viewport modeBruno de Oliveira Abinader2016-05-111-12/+12
| | | | | | Satisfies embedding platforms that requires the viewport coordinate systems to be set according to its standards e.g. viewport mirrored vertically.
* [core] retain tiles differently and remove old TileID classKonstantin Käfer2016-05-101-50/+0
|
* [core] Use geometry.hpp's pointJohn Firebaugh2016-05-051-4/+1
|
* [tests] Rationalize test fixtures (#4834)John Firebaugh2016-04-251-10/+10
| | | Place them in a directory corresponding to the test .cpp file name.
* [core] Use the proper type for font stacksJohn Firebaugh2016-04-221-1/+1
|
* [core] Convert MapContext to Map::Impl; eliminate indirectionJohn Firebaugh2016-04-152-26/+13
|
* [core] Clean up ThreadContext vestigesJohn Firebaugh2016-04-151-1/+1
|
* [tests] Use StubFileSource where a real FileSource is not requiredJohn Firebaugh2016-04-141-2/+2
|
* [core] Remove internal threading from OnlineFileRequestJohn Firebaugh2016-04-141-0/+3
| | | | There's no need to do the work that OnlineFileRequest does on a separate thread from the DefaultFileSource thread, and having AsyncTasks proxy to other tasks across a thread boundary adds needless complexity.
* [core] Render from the main threadJohn Firebaugh2016-04-141-45/+3
| | | | Do not create a thread for the MapContext anymore.
* [ios] Run core unit tests in CIJohn Firebaugh2016-04-111-8/+37
|
* [test] rearrange test files so they're not in the fixtures folderKonstantin Käfer2016-03-224-5/+5
|
* [core] Always return wrapped coordinatesBruno de Oliveira Abinader2016-03-141-0/+6
| | | | | | 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] Simplify LatLng::unwrapForShortestPath usageBruno de Oliveira Abinader2016-03-141-2/+70
| | | | | | | | | | 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 Abinader2016-03-131-0/+3
|
* [core] Harden Transform anchor & padding usageBruno de Oliveira Abinader2016-03-131-4/+77
| | | | | 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::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