summaryrefslogtreecommitdiff
path: root/test/map
Commit message (Collapse)AuthorAgeFilesLines
* [core] change std::array<uint16_t, 2> to mbgl::SizeKonstantin Käfer2016-10-272-35/+35
|
* [core] don't load tiles from sources that aren't usedKonstantin Käfer2016-10-271-0/+48
|
* [core] move gl::Context to Backend and refactor ViewKonstantin Käfer2016-10-251-43/+27
|
* [core] separate Backend from View for headless renderingKonstantin Käfer2016-10-251-23/+39
|
* [core] [node] pass thread pool impl to Map constructorMike Morris2016-10-201-17/+19
| | | | | | | Updates mbgl::Map constructor usage everywhere Adds NodeThreadPool implementation using AsyncQueue to call Nan::AsyncQueueWorker from main thread
* [core] Fix Map::setLatLng behaviorBruno de Oliveira Abinader2016-10-071-0/+16
| | | | | We were erroneously assigning a value to optional<ScreenCoordinate> (null island), causing it to be a valid anchor for Transform::easeTo.
* [test] add .test.cpp suffix to test case filesKonstantin Käfer2016-09-282-0/+0
|
* [tests] Add tests for Map::[add|remove]ImageThiago Marcos P. Santos2016-09-221-0/+33
|
* [core] do not render layers that are outside their zoom rangeKonstantin Käfer2016-09-201-0/+61
| | | | So far, we didn't properly disable layers that are outside the zoom range. This means that we rendered layers that should not have been rendered, albeit we didn't make any attempt to load tiles for those layers. However, when zooming in/out, existing tiles might already have been loaded in the source which continued to be rendered. In most cases they weren't actually visible because either the matrices weren't updated, or the clip IDs weren't set so that they would be "rendered" off-screen and clipped completely. In any case, we did way too much work.
* [core] add MapChangeDidFinishLoadingStyle signal (#6371)Ivo van Dongen2016-09-201-0/+20
|
* [test] Added Map class accessors testsBruno de Oliveira Abinader2016-09-131-0/+34
|
* [tests] Add unit test for style loading failuresThiago Marcos P. Santos2016-08-241-0/+32
|
* [core] Emit MapChangeDidFailLoadingMap when the style cannot be loaded or parsedThiago Marcos P. Santos2016-08-241-1/+1
| | | | | Currently this signal is never emitted, which can cause the Still mode to starve in case of an invalid style or failed request.
* [tests] Test that style mutations due to annotations don't cancel style ↵John Firebaugh2016-08-231-0/+26
| | | | revalidation
* [core] Don't allow style mutations to be overwritten by revalidationJohn Firebaugh2016-08-231-0/+64
| | | | | * Once we get a fresh style, stop revalidating. * If the style is mutated, stop revalidating and preserve the existing mutations.
* [tests] Merge single test in set_style.cpp with other Map testsJohn Firebaugh2016-08-231-0/+19
|
* [core] support "scheme": "tms" in TileJSON filesKonstantin Käfer2016-08-161-1/+1
|
* 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.