summaryrefslogtreecommitdiff
path: root/test/api/annotations.test.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [test] Run Annotations DebugSparse test only with OpenGL rendererJuha Alanen2020-03-121-0/+4
|
* [core] Add batch conversion of latLngs to/from screenCoords (#15891)zmiao2019-11-071-10/+39
| | | | | | * [core] Add batch conversion of latLng vs screenCoord * [core] Take the simple approach
* [render-test] Implement gfx probe for tracking gpu resourcesMikko Pulkki2019-10-301-2/+1
|
* [core] Offset viewport center when edge insets are specifiedAleksandar Stojiljkovic2019-05-281-0/+67
| | | | | | | | | | | | | | | | | | | | | 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-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-4/+2
| | | | | | | | | | - 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] Include pixelRatio property in MapOptionsSudarsana Babu Nagineni2019-03-281-4/+3
| | | | Move pixelRatio property from Map constructor to MapOptions.
* [core] Add setter/getter for size property in MapOptionsSudarsana Babu Nagineni2019-03-281-2/+2
|
* [core] Remove file source from public Map ctorBruno de Oliveira Abinader2019-03-201-4/+3
|
* [core] Group Map LatLngBounds, min and max zoom methodsAnder Conselvan de Oliveira2019-03-141-5/+5
| | | | | | | | 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-1/+1
|
* [core] Add MapOptions to define properties of MapSudarsana Babu Nagineni2019-03-081-1/+3
| | | | | | To simplify the Map constructor, introduce MapOptions interface to define the properties that can be set on a Map.
* [core] Transform{State}: s/angle/bearing/Bruno de Oliveira Abinader2019-03-041-2/+2
|
* [core] Remove map bearing setters/gettersBruno de Oliveira Abinader2019-03-041-1/+1
|
* [core] Remove map zoom setters/gettersBruno de Oliveira Abinader2019-03-041-14/+13
|
* [build] Update to geometry v1.0.0Bruno de Oliveira Abinader2018-11-131-4/+4
|
* [core] Fix querying for annotations near tile boundaries at high zoom.Chris Loer2018-08-141-0/+13
| | | | | | | | Fixes issue #12472. This commit doesn't address the underlying issues that come from symbolAnnotationTree using a slightly lower precision coordinate system than the annotations themselves. Instead, it just puts a small padding around each tile when it queries for tile data, so that symbols right at the tile boundary will be included in both tiles. The rendering/querying code will take care of only displaying one instance. The padding is in global coordinates, so at higher zoom the padding will be larger in tile units -- this is consistent with precision loss also being greater at higher zoom.
* [core] don't tie Annotation geometries to Map maxzoomKonstantin Käfer2018-01-021-0/+16
| | | | Instead, geometry generation via GeoJSONVT is now bound to the hardcoded limit of the annotation tile source.
* [core] Split MapMode::Still into Static and TileAnsis Brammanis2017-11-171-1/+1
| | | | | `Tile` makes sure the symbols in the resulting tile are tileable while symbols in `Still` match rendering in `Continuous` mode.
* [core] Update unit tests for viewport collision.Chris Loer2017-11-171-4/+4
| | | | Add 'GridIndex' unit test.
* [all] Merge View into RendererBackendJohn Firebaugh2017-07-261-1/+1
|
* [node, tests] Consolidate headless rendering logic in HeadlessFrontendJohn Firebaugh2017-07-261-34/+28
|
* [test] allow only a single shared display to avoid egl errorsIvo van Dongen2017-07-181-1/+1
|
* [core] rename backend to renderer backendIvo van Dongen2017-07-181-1/+1
|
* [core] renderer interfaceIvo van Dongen2017-07-181-6/+11
|
* [core] split backend from mapobserverIvo van Dongen2017-07-181-1/+1
|
* [core] Move setStyleJSON/URL to Style; add Map::setStyleJohn Firebaugh2017-06-221-25/+26
|
* [core] Fix several bugs in AnnotationManagerJohn Firebaugh2017-06-051-0/+6
|
* [tests] Add test for calling addAnnotationImage with an existing IDJohn Firebaugh2017-05-261-2/+18
|
* [core, node, darwin, android, qt] Make image ID part of ImageJohn Firebaugh2017-05-161-14/+14
| | | | More like Source and Layer.
* [core] Remove StyleSourcedAnnotation supportJohn Firebaugh2017-05-101-10/+0
| | | | The functionality this provided has been subsumed by the runtime styling API.
* [all] Rationalize style::ImageJohn Firebaugh2017-04-241-15/+15
| | | | | | | A style has a collection of images, just as it has collections of sources and layers. * Name things appropriately * Use std::unique_ptr
* [core] Ensure that a BackendScope exists when doing GL callsKonstantin Käfer2017-03-231-0/+2
|
* [test] Fix polygon construction to compile with clang 3.9.xDane Springmeyer2017-03-091-9/+9
|
* [core] Add support for queryRenderedFeatures filterAsheem Mamoowala2017-03-041-1/+1
|
* [core] private OffscreenView implementationKonstantin Käfer2017-02-271-4/+4
|
* [core] Add support for data-driven stylingJohn Firebaugh2017-02-021-7/+7
|
* [core] Assert valid range for color componentsJohn Firebaugh2016-11-291-16/+16
|
* [build] upgrade to variant 1.1.4 and dependenciesKonstantin Käfer2016-11-281-2/+2
|
* [build] move headless rendering files to platform/defaultKonstantin Käfer2016-11-221-2/+2
|
* [build] move default ThreadPool implementation to platform/defaultKonstantin Käfer2016-11-221-1/+1
|
* [test] Check all zoom levels in Annotations.SymbolAnnotationBruno de Oliveira Abinader2016-11-181-8/+5
|
* [test] Use shared headless displayBruno de Oliveira Abinader2016-11-171-2/+2
| | | | Prevents some OpenGL implementations from bailing out.
* [core] don't assign clip IDs to tiles that aren't renderedKonstantin Käfer2016-11-081-0/+29
|
* Revert "[core] Don't use GL_LINEAR if panning w/o rotation nor pitch"Bruno de Oliveira Abinader2016-11-011-16/+0
| | | | This reverts commit a70bfd89108cf1aef75181819ae43e550a69255e.
* [core] Don't use GL_LINEAR if panning w/o rotation nor pitchBruno de Oliveira Abinader2016-10-311-0/+16
|
* [core] change std::array<uint16_t, 2> to mbgl::SizeKonstantin Käfer2016-10-271-7/+7
|
* [core] move gl::Context to Backend and refactor ViewKonstantin Käfer2016-10-251-20/+20
|
* [core] separate Backend from View for headless renderingKonstantin Käfer2016-10-251-4/+4
|
* [core] [node] pass thread pool impl to Map constructorMike Morris2016-10-201-1/+3
| | | | | | | Updates mbgl::Map constructor usage everywhere Adds NodeThreadPool implementation using AsyncQueue to call Nan::AsyncQueueWorker from main thread