Konstantin Käfer
3ceabcd3ec
[core] clang-tidy fixes
2019-04-05 11:49:17 +02:00
Konstantin Käfer
7081d5e154
[core] move depth/stencil buffer debug viz to gfx::Context
2019-04-05 11:49:17 +02:00
Konstantin Käfer
1d58850d0c
[core] remove Renderer::flush
2019-04-05 11:49:17 +02:00
Konstantin Käfer
5cc3d7a733
[core] move GLContextMode to RendererBackend
2019-04-05 11:49:17 +02:00
Konstantin Käfer
66c020034e
[core] refactor RendererBackend
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
Konstantin Käfer
865f8a6c03
[core] add gfx::Renderable and gfx::OffscreenTexture
2019-04-05 11:49:17 +02:00
Ansis Brammanis
2455275bf4
add onStyleImageMissing to allow dynamically loaded or generated images ( #14253 )
...
Also make `Style#updateImage(...)` much faster when the image doesn't change size. This can be useful for asynchronously generating images.
2019-04-02 12:57:45 -04:00
Mikhail Pozdnyakov
b39c71eea8
[core] Introduce variable text placement for point labels - Layout part
2019-03-29 16:18:41 +02:00
Mikhail Pozdnyakov
9fc42b9c3c
[core] auto value for 'text-justify' field
2019-03-29 16:18:41 +02:00
Mikhail Pozdnyakov
2b9a52f5e4
[core] Enable 'text-radial-offset' property
2019-03-29 16:18:41 +02:00
Mikhail Pozdnyakov
a6d8742e63
[core] Enable text-variable-anchor property
2019-03-29 16:18:41 +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
Sudarsana Babu Nagineni
11afef7825
[core] Add interface to change the orientation through MapOptions
2019-03-28 16:41:15 +02:00
Sudarsana Babu Nagineni
e639087c91
[core] Add getter for Map options
...
Instead of having individual getter for each Map option,
add a common getter for all Map options.
2019-03-28 16:41:15 +02:00
Bruno de Oliveira Abinader
067ff28d0a
[core] ResoureOptions explicit copy via clone()
2019-03-25 13:15:09 +02:00
Bruno de Oliveira Abinader
ac6855a473
[core] Fix signature of fluent interface setters
2019-03-23 09:12:44 +02:00
Bruno de Oliveira Abinader
03db58cdc1
[core] Replace shared_ptr with unique_ptr in {Map,Resource}Options
2019-03-22 18:54:48 +02:00
Julian Rex
0945165353
[core] Change definition of "complete" so offline packs created before #11055 can complete. ( #14188 )
2019-03-21 14:04:19 -04:00
Bruno de Oliveira Abinader
d5868d3da8
[core] Remove file source from public Map ctor
2019-03-20 21:30:08 +02:00
Thiago Marcos P. Santos
3122df7e50
[core] Expose a way of flushing the graphics pipeline
...
Useful for apps before going to background that are
restricted by the OS of performing any operation.
2019-03-20 18:47:15 +02:00
Alexander Shalamov
69e11155c8
[core] Forward evaluation context directly to evaluated property
...
So that default value owned by the FormatSectionOverride, can be
evaluated based on required context parameters.
2019-03-15 10:37:45 +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
Ander Conselvan de Oliveira
11de777628
[core] Remove optional from Map::setLatLngBounds()
...
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()
2019-03-14 18:33:11 +02:00
Ander Conselvan de Oliveira
a73cc9d8e3
[core] Remove support for setting minimum and maximum pitch
...
Support for limiting pitch was introduced in commit c4fc89977b ([core]
Added {set,get}{Min,Max}Pitch) in 2017 but was never exposed by the
platform SDKs. Simplify the Map interface by removing this unused
feature.
v2: Add util::PITCH_MIN
2019-03-14 18:33:11 +02:00
Łukasz Paczos
3f7b70fdb0
[core] expose an option to change the db file path in runtime
2019-03-13 18:28:04 +01:00
Bruno de Oliveira Abinader
8cc100bfd5
[core] Get FileSource via UpdateParameters in Renderer::Impl
2019-03-13 17:56:44 +02:00
Alexander Shalamov
8be135231d
[core] Add possibility of overriding paint properties inside format expression #14062
...
* [core] Add format override expression and formatted section to evaluation context
* [core] Add textColor to TaggedString's formatted section
* [core] Add FormatSectionOverrides and introduce overridable properties
* [core] Populate symbol layer paint properties for text sections
* [core] Add benchmark for style that uses text-color override
* [core] Add unit test for FormatOverrideExpression
* [core] Add unit test for FormatSectionOverrides
2019-03-13 17:14:53 +02:00
Ander Conselvan de Oliveira
7d19115720
[core] Don't use exceptions in MapObserver::onDidFailLoadingMap
...
Using different exception pointers to specify the loading failure makes
an awkward API. Most users rethrow the exception only to figure out what
type of error happened so it can be reported properly. So replace the
exception pointer with a enum an string description of the failure.
2019-03-13 11:58:27 +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
Sudarsana Babu Nagineni
744d92e763
[core] consolidate Axonometric rendering API
...
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.
2019-03-08 17:36:40 +02:00
Bruno de Oliveira Abinader
bc033ad8d4
[core] util::wrap(): std::fmod is not lossless
2019-03-06 18:09:14 +02:00
Bruno de Oliveira Abinader
74538406e9
[core] Organize Map::{move,pitch,scale,rotate}By
2019-03-04 14:45:32 +02:00
Bruno de Oliveira Abinader
586b22c0df
[core] Remove map coordinate setters/getters
2019-03-04 14:45:32 +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
21a39306da
[core] Remove map pitch 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
Bruno de Oliveira Abinader
491fce6879
[core] Added Map::pitchBy()
2019-03-04 14:45:32 +02:00
Bruno de Oliveira Abinader
02f2b9c75c
[core] Added Map::scaleBy()
2019-03-04 14:45:32 +02:00
Mikhail Pozdnyakov
ceec74f52f
[core] peer must not wrap itself
2019-02-28 17:45:21 +02:00
Mikhail Pozdnyakov
810999fadf
[core] Simplify util::peer
...
Remove custom vtable, base implementation on `std::unique_ptr`.
2019-02-28 17:45:21 +02:00
Bruno de Oliveira Abinader
dd651691f3
[core] Move Map::Impl to its own def/impl files
2019-02-27 16:29:06 +02:00
Bruno de Oliveira Abinader
e5ed9d9ddf
[core] Use unwrapped longitude for bounds check
2019-02-26 21:17:31 +02:00
Mikhail Pozdnyakov
e800f37547
[core] Layer manager is responsible for buckets and layouts creation
...
This is a step to stop using of render layers in tile worker thread.
2019-02-25 13:47:56 +02:00
Thiago Marcos P. Santos
056073a904
[build] Use the correct define on Windows
...
https://blog.kowalczyk.info/article/j/guide-to-predefined-macros-in-c-compilers-gcc-clang-msvc-etc..html
2019-02-19 16:20:56 +02:00
Thiago Marcos P. Santos
9b66be7bef
[core] Abstract the OpenGL implementation
...
The platform will be responsible to load the OpenGL implementation
and give the function pointers to Mapbox GL Core. The platform might
load OpenGL by linking against some OpenGL implementation, load it
dynamically, etc. It doesn't matter as long as it is a valid
implementation.
Also adds the `::platform` namespace where all the missing symbols and
interfaces expected to be implemented by the platforms will live.
2019-02-12 19:42:08 +02:00
Mikhail Pozdnyakov
577e6ee98a
[core] Simplify mbgl::Immutable
2019-01-15 22:29:08 +02:00
Mikhail Pozdnyakov
c621b8100d
[core] Drop LayerType
...
Drop LayerType and its remaining usages.
The generic code should be layer type agnostic.
2019-01-04 11:51:33 +02:00