summaryrefslogtreecommitdiff
path: root/test/map
Commit message (Collapse)AuthorAgeFilesLines
* Add unit tests for the free cameraMikko Pulkki2020-05-021-2/+243
|
* Add Map.VolatileSource unit testMikhail Pozdnyakov2020-04-221-0/+33
|
* Add Map.SourceMinimumUpdateIntervalOverride unit testMikhail Pozdnyakov2020-04-201-0/+57
|
* [core] Fix google-default-arguments errors in header filesThiago Marcos P. Santos2020-04-171-9/+10
| | | | As reported by clang-tidy-8.
* [core] PlacedSymbolData contains layer idMikhail Pozdnyakov2020-04-091-0/+11
|
* Add Map.PlacedSymbolData unit testMikhail Pozdnyakov2020-04-021-1/+71
|
* [core] Render::clearData clears fontsMikhail Pozdnyakov2020-03-201-22/+24
|
* [core] Introduce Renderer::clearData() instead of keepRenderData map optionsMikhail Pozdnyakov2020-03-201-27/+17
| | | | | | | | | | `Renderer::clearData()` is a better API than the removed `MapOptions::keepRenderData()`: - gives more flexibility to the client - similar to the existing `Renderer::reduceMemoryUse()` - the `MapOptions::keepRenderData()` API implementation could not handle the raise condition, which happened if the new still image request had come before all tiles from the previous requests were loaded. Co-authored-by: Dane Springmeyer <dane@mapbox.com>
* Add additional transformState::latLngToScreenCoordinate getter (#16311)galinelle2020-03-191-0/+10
| | | | | | This change adds a latLngToScreenCoordinate overload, to retrieve the projected vec4 in additional to the ScreenCoordinate object, that is useful to detect whether the projected latLng is in front or behind the camera.
* Add Map.KeepRenderData and Map.DontKeepRenderData testsMikhail Pozdnyakov2020-03-181-0/+57
|
* [core] Add snapshotter unit testsAlexander Shalamov2020-03-051-0/+138
|
* [core] FileSourceManager::getFileSource() returns PassRefPtrMikhail Pozdnyakov2020-02-261-3/+6
|
* [core] Update Map.UniversalStyleGetter testAlexander Shalamov2020-02-261-10/+19
|
* [test] Verify pitch boundsJuha Alanen2020-02-261-0/+4
|
* [test] Add test for min and max pitch optionsJuha Alanen2020-02-252-0/+93
|
* [core] Add unit test for Style::Impl::onSpriteLoadedAlexander Shalamov2020-02-171-2/+53
|
* [test] Fix failing tests on iOSJuha Alanen2020-02-141-2/+3
|
* [core] Use atomic int in Map.PrefetchDelta* unit testsAlexander Shalamov2020-02-121-4/+6
|
* [core] Add unit test for Source::setPrefetchZoomDeltaAlexander Shalamov2020-02-111-0/+132
| | | | | Test verifies that tile pyramid will request only 4 tiles for current zoom level, if Source's setPrefetchZoomDelta is 0.
* [core] Modularize FileSource codebase (#15768)Alexander Shalamov2020-01-131-48/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [core] Introduce FileSourceManager and use it for default platform impl - Add `FileSourceManager` interface that provides access to `FileSource` instances and means of registering / unregistering `FileSource` factories - Split `DefaultFileSource` into smaller parts - Add `DatabaseFileSource` interface and it's default implementation - Remove inter-dependencies between concrete `FileSource` classes * [build] Add files to next build system * [core] Add generic property setters / getters * [core] Remove setOnlineStatus from OnlineFileSource interface * [core] Hide threading implementation details from DatabaseFileSource interface * [core] Make DB file source methods virtual * [core] Add documentation for DatabaseFileSource and rename one method * [core] Use simple callback instead of ActorRef * [core] Remove ActorRef from OnlineFileSource public header * [core] Add callback to FileSource::forward async API * [core] Pass OfflineRegionDefinition by value * [core] Update tests to use modular file sources * [core] Update unit tests * [core] Update unit tests after rebase * [core] Backport low prio fix for cached requests * [core] Backport pack database * [core] Return removed factory from unRegisterFileSourceFactory * [core] Rename shadowed args in onlinefilesource * [core] Remove simple std::function callback aliases * [core] Expose online file source property keys in public header file * [test-runner] Add proxy file source test runner * [cache] Update mbgl-cache utility to use new file source * [metrics] Rebaseline binary size metrics * [offline] Update offline utility * [core] Update changelog
* [test] Increase the threshold for Map.Offline test on AndroidJuha Alanen2020-01-101-1/+4
|
* [android][core] Add `Map::latLngBoundsForCameraUnwrapped` and jni binding ↵Peng Liu2020-01-091-0/+42
| | | | | | | | | for `getVisibleCoordinateBounds`. (#16069) * [android] Add getVisibleCoordinateBounds method. * Fix Map::latLngBoundsForCamera, add Android binding for getVisibleRegionBounds. * Add unit tests for CameraToLatLngBoundsWithRotation and CameraToLatLngBoundsCrossDateLine. * Move API breaking changes to a new method name latLngBoundsForCameraUnwrapped.
* Include padding when testing camera scale in cameraForLatLngBoundsAleksandar Stojiljkovic2019-12-171-10/+24
| | | | | Repurpose LatLngBoundsToCameraWithBearingAndPitch to test scaling and camera setup, both with and without padding. This adds testing of path not covered in mapbox/mapbox-gl-native-ios#59.
* [core] Fix MapSnapshotter build failure on WindowsAnder Conselvan de Oliveira2019-11-132-4/+4
| | | | | | | | 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.
* [render-test] Implement gfx probe for tracking gpu resourcesMikko Pulkki2019-10-301-13/+7
|
* [core] Add Map.NoHangOnMissingImage unit testMikhail Pozdnyakov2019-10-281-0/+51
|
* [core] Enable move semantics for StylePropertyMikhail Pozdnyakov2019-09-271-24/+24
|
* [core] Return enum layer property values as stringAnder Conselvan de Oliveira2019-09-271-3/+3
| | | | | | | | | | The output of Layer::getProperty is a mapbox::base::Value which is equivalent to JSON. When setting the value of an enum property via JSON its value would be a string, so it would be natural to return a string too. Also, the numbers generated depend on the enum definition. They are not part of the style spec.
* [core] Layer::getProperty supports layout propertiesMikhail Pozdnyakov2019-09-271-0/+9
|
* [core] Layer::getPaintProperty() -> Layer::getProperty()Mikhail Pozdnyakov2019-09-261-6/+6
|
* [core] LayerProperty -> StylePropertyMikhail Pozdnyakov2019-09-261-12/+12
|
* [core] Add Map.UniversalStyleGetter testMikhail Pozdnyakov2019-09-261-0/+73
|
* [core] Add Map.Issue15342 unit testMikhail Pozdnyakov2019-09-121-0/+49
| | | | | The newly added test checks the fix for constant repaint, caused by `RenderSource::hasFadingTiles()` returning `true` all the time.
* [core] Update MapObserver::onDidFinishRenderingFrame() APIMikhail Pozdnyakov2019-09-121-1/+1
|
* [core] Limit pitch based on edge insets. Fix max Z calculation in getProjMatrix.Aleksandar Stojiljkovic2019-08-011-0/+3
| | | | | | | | | | | | | Patch partly fixes #15163 in a way that it doesn't allow loading tens of thousands of tiles and attempt to show area above horizon: Limit pitch based on edge insets. It is not too bad - current limit of 60 degrees stays active until center of perspective is moved towards the bottom, to 84% of screen height. The plan is to split removal of 60 degrees limit to follow up patch. Fix max Z calculation in getProjMatrix. TransformState::getProjMatrix calculation of farZ was complex with possibility to lead to negative z values. Replacing it with simpler, precise calculation: furthestDistance = cameraToCenterDistance / (1 - tanFovAboveCenter * std::tan(getPitch())); TransformState::getProjMatrix calculation of farZ was an aproximation. Replacing it with simpler, but precise calculation. Related to: #15163
* [core] Added unit test for issue 15216Mikhail Pozdnyakov2019-07-261-0/+11
|
* [core] refactor program object creationKonstantin Käfer2019-05-281-0/+4
|
* [core] Offset viewport center when edge insets are specifiedAleksandar Stojiljkovic2019-05-281-11/+34
| | | | | | | | | | | | | | | | | | | | | The change is implemented in TransformState::getProjMatrix, the rest of the code is making sure that existing API contracts stay and there are tests verifyingrendering and render query processing only items within screen and given tolerance around screen edges. MapView: don't bake edge insets into relalculated camera center. Keep edge insets as property of camera in TransformState (similar to pitch, zoom, bearing) independent from specified camera center. Interpolate edge insets in animation. iOS Demo app: "Turn On/Off Content Insets" pitch the camera and navigate to convenient location in Denver, where streets are parallel to cardinal directions, to illustrate viewport center offset when edge insets are set. Tests: ViewFrustumCulling: although Annotations are deprecated, queryRenderedFeatures related tests in Annotations would need to get ported and decided to add the edge insets related query tests next to them. Verify frustum culling (render+queryRenderedFeatures) With different camera and edge insets setups. TODO: port Annotations tests. Transform.Padding: Verify that coordinates take proper place on screen after applying edge insets. LocalGlyphRasterizer: verify text rendering when applying padding. Related to #11882: both use projection matrix elements [8] and [9]. Alternative approach to this was to increase and offset map origin so that the screen would be a sub-rectangle in larger map viewport. This approach has a drawback of unecessary processing the items that are outside screen area. Fixes #12107, #12728, navigation-sdks/issues/120
* [core] Refactor HeadlessFrontend/Backend: GL separation and factory (#14692)Aleksandar Stojiljkovic2019-05-212-2/+2
| | | | | Refactor out HeadlessFrontend and HeadlessBackend gl independent code to gfx. Define gl::HeadlessBackend as subclass, instantiated by gfx::HeadlessBackend static factory method. GL dependent tests are still using gl::HeadlessBackend directly (not through gfx).
* [core] Make the BackgroundScheduler a singletonThiago Marcos P. Santos2019-05-102-13/+8
| | | | | | | | | | - Do not carry it over everywhere as parameter, it is a shared instance anyway and the lifecycle is pretty much the app lifecycle from the moment we instantiate a map. - Rename to BackgroundScheduler because it is a Scheduler that will do tasks in the background, we don't make assumptions if it is a thread pool or a single thread. - Most importantly, remove the dependency from `core` on `platform`.
* [core] clang-tidy fixesKonstantin Käfer2019-04-051-1/+1
|
* [core] refactor RendererBackendKonstantin Käfer2019-04-051-1/+1
|
* [core] move BackendScope to gfx namespaceKonstantin Käfer2019-04-051-1/+2
|
* [core] Include pixelRatio property in MapOptionsSudarsana Babu Nagineni2019-03-282-9/+11
| | | | Move pixelRatio property from Map constructor to MapOptions.
* [test] Add unit tests for MapOptionsSudarsana Babu Nagineni2019-03-281-0/+30
|
* [core] Add setter/getter for size property in MapOptionsSudarsana Babu Nagineni2019-03-282-10/+11
|
* [core] harden fetching camera for bounds when padding is excessiveŁukasz Paczos2019-03-251-0/+12
|
* [core] Remove file source from public Map ctorBruno de Oliveira Abinader2019-03-202-55/+54
|
* [core] Group Map LatLngBounds, min and max zoom methodsAnder Conselvan de Oliveira2019-03-141-0/+26
| | | | | | | | Group bounds, minimum and maximum zoom related methods together using the new BoundOptions. v2: Document that getBounds() initializes all optional fields. - Add test for getBounds() on a map with default values.
* [core] Remove optional from Map::setLatLngBounds()Ander Conselvan de Oliveira2019-03-141-2/+2
| | | | | | | | 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()