summaryrefslogtreecommitdiff
path: root/test/map/map.test.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [test] Add test for min and max pitch optionsupstream/jmalanen-clamp-pitchJuha Alanen2020-02-201-0/+21
|
* [core] Add unit test for Style::Impl::onSpriteLoadedAlexander Shalamov2020-02-171-2/+53
|
* [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-131-2/+2
| | | | | | | | 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] Added unit test for issue 15216Mikhail Pozdnyakov2019-07-261-0/+11
|
* [core] refactor program object creationKonstantin Käfer2019-05-281-0/+4
|
* [core] Refactor HeadlessFrontend/Backend: GL separation and factory (#14692)Aleksandar Stojiljkovic2019-05-211-1/+1
| | | | | 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-101-9/+6
| | | | | | | | | | - 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-281-8/+10
| | | | 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-281-8/+9
|
* [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-201-49/+49
|
* [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] Get FileSource via UpdateParameters in Renderer::ImplBruno de Oliveira Abinader2019-03-131-3/+3
|
* [core] Add MapOptions to define properties of MapSudarsana Babu Nagineni2019-03-081-3/+7
| | | | | | To simplify the Map constructor, introduce MapOptions interface to define the properties that can be set on a Map.
* [core] consolidate Axonometric rendering APISudarsana Babu Nagineni2019-03-081-0/+11
| | | | | | | Instead of having individual APIs for setting axonometric and skew options, create ProjectionMode struct that holds all the relevant options for Axonometric rendering and introduce setter/getter on the Map for those options.
* [core] Remove map coordinate setters/gettersBruno de Oliveira Abinader2019-03-041-3/+3
|
* [core] Transform{State}: s/angle/bearing/Bruno de Oliveira Abinader2019-03-041-10/+10
|
* [core] Remove map zoom setters/gettersBruno de Oliveira Abinader2019-03-041-18/+19
|
* [core] Add RendererState::{pixelForLatLng,latLngForPixel}Bruno de Oliveira Abinader2018-11-141-0/+10
|
* [core] Added RendererState::has{Image,Layer,Source}Bruno de Oliveira Abinader2018-10-251-0/+38
|
* [core] remove some uses of <iostream> and <sstream>Konstantin Käfer2018-10-231-1/+1
|
* [core] Introduce mbgl::RendererStateBruno de Oliveira Abinader2018-10-191-0/+28
|
* [core] CameraOptions receives and outputs angle and pitch as degrees, not ↵Bruno de Oliveira Abinader2018-10-191-8/+8
| | | | radians
* [core] Replace remaining dynamic_cast with static_castBruno de Oliveira Abinader2018-08-081-1/+1
|
* [core] Check all bucket dynamic_castsJohn Firebaugh2018-07-241-0/+49
| | | | A mismatch can occur when a layer changes from one type to another.
* Add pitch argument to cameraThatFits functions (#12213)Bobby Sudekum2018-07-021-2/+30
|
* [test] Update Map.PrefetchTilesBruno de Oliveira Abinader2018-02-281-42/+4
|
* [core] continue loading style even if we mutate itKonstantin Käfer2018-02-231-5/+16
| | | | When we load a stale style from cache, and the user immediately starts mutating it, we should continue loading the style so that we'll get a fresh copy of the data into our cache and avoid perpetually showing the stale style.
* [core] Split MapMode::Still into Static and TileAnsis Brammanis2017-11-171-2/+2
| | | | | `Tile` makes sure the symbols in the resulting tile are tileable while symbols in `Still` match rendering in `Continuous` mode.
* [core] Add `cameraForLatLngs()` method with modified bearingAsheem Mamoowala2017-10-091-0/+26
|