Aleksandar Stojiljkovic
3cd8c6c1fd
[core] Refactor HeadlessFrontend/Backend: GL separation and factory ( #14692 )
...
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).
2019-05-21 07:37:49 +03:00
Thiago Marcos P. Santos
06f1dc48a2
[core] Make the BackgroundScheduler a singleton
...
- 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`.
2019-05-10 14:20:38 +03:00
Konstantin Käfer
3ceabcd3ec
[core] clang-tidy fixes
2019-04-05 11:49:17 +02:00
Konstantin Käfer
a782a6d15b
[core] move BackendScope to gfx namespace
2019-04-05 11:49:17 +02:00
Sudarsana Babu Nagineni
7af00a404f
[core] Include pixelRatio property in MapOptions
...
Move pixelRatio property from Map constructor to MapOptions.
2019-03-28 16:41:15 +02:00
Sudarsana Babu Nagineni
1cc1d4ea08
[core] Add setter/getter for size property in MapOptions
2019-03-28 16:41:15 +02:00
Bruno de Oliveira Abinader
d5868d3da8
[core] Remove file source from public Map ctor
2019-03-20 21:30:08 +02:00
Ander Conselvan de Oliveira
5733440747
[core] Group Map LatLngBounds, min and max zoom methods
...
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.
2019-03-14 18:33:11 +02:00
Bruno de Oliveira Abinader
8cc100bfd5
[core] Get FileSource via UpdateParameters in Renderer::Impl
2019-03-13 17:56:44 +02:00
Sudarsana Babu Nagineni
5e2b6bf636
[core] Add MapOptions to define properties of Map
...
To simplify the Map constructor, introduce MapOptions
interface to define the properties that can be set on
a Map.
2019-03-08 18:20:55 +02:00
Bruno de Oliveira Abinader
ba7427b4ac
[core] Transform{State}: s/angle/bearing/
2019-03-04 14:45:32 +02:00
Bruno de Oliveira Abinader
73ac3c784f
[core] Remove map bearing setters/getters
2019-03-04 14:45:32 +02:00
Bruno de Oliveira Abinader
f5f10ec119
[core] Remove map zoom setters/getters
2019-03-04 14:45:32 +02:00
Thiago Marcos P. Santos
690833ef92
[core] Switch to the new OpenGL abstraction
...
This patch will make Mapbox GL Core never use OpenGL
directly. We should consider locking into OpenGL ES 2.0
to simplify the code path and remove #ifdefs.
2019-02-12 19:42:08 +02:00
Alexander Shalamov
191d47b935
[core] Add unit tests for queryFeatureExtensions
2018-12-12 15:08:18 +02:00
Bruno de Oliveira Abinader
bf8b24fa8d
[build] Update to geometry v1.0.0
2018-11-13 17:28:26 +02:00
Chris Loer
20f880ebec
[core] Fix querying for annotations near tile boundaries at high zoom.
...
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.
2018-08-14 12:35:50 -07:00
Sudarsana Babu Nagineni
15a1c7b71f
Fix compilation errors with libc++ on QNX 7
...
This patch fixes the compilation errors on QNX 7:
1) QNX 7 compiler (i.e qcc based GCC 5.4.0 with libc++ from LLVM) has a
limited c++11 feature support and causing the compilation
errors with the inheriting constructors. This fixes the issues by
providing the required constructors explicitly.
2) Resolves an ambiguous overload error with optional<T>
2018-07-30 12:38:24 +03:00
John Firebaugh
542a4b4501
[core] Replace use of *Stops with expressions DSL
2018-06-29 15:38:11 -07:00
John Firebaugh
ab5e496219
[tests] Replaced the ZoomHistory test with a render test
2018-06-28 16:31:48 -07:00
Konstantin Käfer
4067a61c80
[core] wrap glGetString in MBGL_CHECK_ERROR too
2018-05-24 11:19:59 +02:00
Lucas Wojciechowski
a4e2c1af1f
[core] Convert "legacy" filters directly into expressions ( #11610 )
...
Ports the specialized filter-* expressions from GL JS, adding them to src/mbgl/style/expression/compound_expression.cpp
2018-05-10 12:37:14 -07:00
Asheem Mamoowala
099fcc3b3c
Use a host interface for CustomLayer instead of function pointers ( #11553 )
...
Use a host interface for CustomLayer instead of function pointers
Co-authored-by: Julian Rex <julian.rex@mapbox.com >
2018-04-02 16:15:25 -07:00
Konstantin Käfer
ac32b41493
[core] don't tie Annotation geometries to Map maxzoom
...
Instead, geometry generation via GeoJSONVT is now bound to the hardcoded limit of the annotation tile source.
2018-01-02 19:41:07 +01:00
Asheem Mamoowala
acae193861
[core] Custom Geometry Sources
2017-11-22 13:56:38 -08:00
Ansis Brammanis
22c07596a0
[core] Split MapMode::Still into Static and Tile
...
`Tile` makes sure the symbols in the resulting tile are tileable while
symbols in `Still` match rendering in `Continuous` mode.
2017-11-17 10:05:15 -08:00
Chris Loer
54b990eb33
[core] Update unit tests for viewport collision.
...
Add 'GridIndex' unit test.
2017-11-17 10:05:15 -08:00
Bruno de Oliveira Abinader
45d07163eb
[core] Reset zoom history state in still mode
2017-09-15 16:41:29 -03:00
Bruno de Oliveira Abinader
224e9e6261
[test] Re-added API.ZoomHistory
2017-08-22 10:17:25 +03:00
Bruno de Oliveira Abinader
5d62028ed2
[test] Added API.RecycleMapUpdateImages test
2017-08-14 18:23:03 +03:00
John Firebaugh
d4cb498d7a
[all] Merge View into RendererBackend
2017-07-26 09:50:38 -07:00
John Firebaugh
32bd1d54fa
[node, tests] Consolidate headless rendering logic in HeadlessFrontend
2017-07-26 09:50:38 -07:00
John Firebaugh
11933f6ab8
[core] Remove API tests that are covered by node tests
2017-07-26 09:50:38 -07:00
John Firebaugh
c85193a0ad
[core] Replace API.ZoomHistory test with integration test
2017-07-26 09:50:38 -07:00
Ivo van Dongen
a5a0558bde
[test] allow only a single shared display to avoid egl errors
2017-07-18 10:45:12 +02:00
Ivo van Dongen
46c43510d7
[core] rename backend to renderer backend
2017-07-18 10:45:12 +02:00
Ivo van Dongen
3832f8d0d8
[core] renderer interface
2017-07-18 10:45:12 +02:00
Ivo van Dongen
57351c068b
[core] split backend from mapobserver
2017-07-18 10:45:12 +02:00
Bruno de Oliveira Abinader
a744e35f44
[test] Added API.ZoomHistory
2017-07-04 15:50:50 +03:00
Bruno de Oliveira Abinader
9a0c5b4dfa
[test] Use test::checkImage in API.RepeatedRender
2017-07-04 15:50:50 +03:00
John Firebaugh
40e4755621
[core] Move setStyleJSON/URL to Style; add Map::setStyle
2017-06-22 08:04:39 -07:00
John Firebaugh
1520a56813
[all] Promote Style to public API
2017-06-22 08:04:39 -07:00
John Firebaugh
fe024bbdf6
[core] Implement "smart setStyle"
2017-06-15 07:43:51 -07:00
John Firebaugh
f983c2716b
[core] Fix several bugs in AnnotationManager
2017-06-05 19:38:08 -07:00
John Firebaugh
e4e08aca79
[tests] Add test for calling addAnnotationImage with an existing ID
2017-05-26 11:21:56 -07:00
John Firebaugh
cc1ea759a6
[core, node, darwin, android, qt] Make image ID part of Image
...
More like Source and Layer.
2017-05-16 12:26:35 -07:00
John Firebaugh
c130d470a1
[core] Remove StyleSourcedAnnotation support
...
The functionality this provided has been subsumed by the runtime styling API.
2017-05-10 14:22:01 -07:00
John Firebaugh
c2b00378b7
[all] Push querySourceFeatures back out to Map
...
Once Source and RendererSource are split, Source will no longer have access to tiles.
2017-05-02 08:45:09 -07:00
John Firebaugh
5dd98df50b
[all] Rationalize style::Image
...
A style has a collection of images, just as it has collections of sources and layers.
* Name things appropriately
* Use std::unique_ptr
2017-04-24 15:52:28 -07:00
Konstantin Käfer
197f0ca6b4
[android] use AAssetManager instead of libzip
2017-04-24 10:42:10 +02:00