Konstantin Käfer
3ceabcd3ec
[core] clang-tidy fixes
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
be3b5917c1
[core] add generic base class for renderbuffers
2019-04-05 11:49:17 +02:00
Konstantin Käfer
839f4687aa
[core] gl::RenderbufferType -> gfx::RenderbufferPixelType
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
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
067ff28d0a
[core] ResoureOptions explicit copy via clone()
2019-03-25 13:15:09 +02:00
Bruno de Oliveira Abinader
d5868d3da8
[core] Remove file source from public Map ctor
2019-03-20 21:30:08 +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
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
586b22c0df
[core] Remove map coordinate setters/getters
2019-03-04 14:45:32 +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
Jason Wray
5a5b8520cc
[core] Remove old sqlite3 usage note
2019-02-14 10:51:49 -08:00
Michael Muesch
24468956fc
Ability to disable any layer using pre-processing flags.
2019-01-17 18:56:58 +02:00
Alexander Shalamov
ab160ac321
[core] Notify requests about network reachability in priority order
2019-01-14 17:34:37 +02:00
Alexander Shalamov
2da9d483ac
[android] Implement google benchmark runner for Android platform
2019-01-11 09:49:36 +02:00
Konstantin Käfer
6f60ccf08e
[build] generate header maps instead of -files.txt
2019-01-09 10:26:53 +01:00
Chris Loer
b7e2b11a75
[core] Support for excluding ideographic glyphs from offline downloads.
2018-12-21 15:13:48 -08:00
Julian Rex
1c7cd243c4
[core,ios,macos] Updates default styles to streets v11, etc. ( #13585 )
2018-12-18 16:00:19 -05:00
Alexander Shalamov
a228f3d80a
[core] Refactor duplicated code in Asset and File sources
2018-12-17 11:37:56 +02:00
Alexander Shalamov
f076a1fe39
[core] Use util::readFile for Local and Asset file sources
...
Use exception free util::readFile instead of util::read_file for
LocalFileSource and AssetFileSource implementations.
2018-12-17 11:37:56 +02:00
Konstantin Käfer
1d8235f5b8
[build] rework platform/default directory and add -files.txt for vendored libs
2018-12-14 11:03:03 +01:00
Mikhail Pozdnyakov
ebd87a5442
[core, android, darwin] Move layer factories to separate files
2018-12-10 18:20:32 +02:00
Mikhail Pozdnyakov
92352de87d
[core] layermanager folder
...
Move `LayerManager` and `LayerFactory` abstract classes to a dedicated folder.
2018-11-30 19:09:17 +02:00
Mikhail Pozdnyakov
ad03e42b28
[core] LayerManager can disable annotations
...
At the moment, the annotations implementation in the `mapbox-gl-native`
core is creating concrete layer instances apart from `LayerManager/LayerFactory`
code path.
So, annotations must be disabled if the `LayerManager` implementation does
not provide line, fill or symbol layers (those, used by the annotations).
Note: in future, annotations implementation will be moved from the core to the
platform SDK level(see https://github.com/mapbox/mapbox-plugins-android/tree/master/plugin-annotation )
and `LayerManager` won't need to disable it.
2018-11-28 17:18:38 +02:00
Mikhail Pozdnyakov
361982fef8
[core][Android][Darwin] LayerManager creates RenderLayer instances
...
`LayerManager` is now responsible for `RenderLayer` instances creation,
so that there is a single entry point for creating of objects, which
correspond to a certain layer type.
The `LayerType type` field is dropped from `Layer::Impl`.
2018-11-27 18:10:21 +02:00
Chris Loer
afdc243042
[core] Expose "local ideograph font family" in MapSnapshotter.
2018-11-24 09:57:32 -08:00
Huyen Chau Nguyen
9a606caf0b
[core] define number of concurrent downloads in online file source variable
2018-11-15 12:19:48 -08:00
Mikhail Pozdnyakov
33818233cf
[core][android] Introduce mbgl::style::LayerTypeInfo
...
The `LayerTypeInfo` contains static meta data about certain layer type.
Each layer module should have a single immutable `LayerTypeInfo` instance
for the represented layer type. Both `LayerImpl` and `LayerFactory` from the
module always refer to the same `LayerTypeInfo` instance, so address of this
instance can be used as a layer module Id during the process life time.
2018-11-15 18:32:31 +02:00
Bruno de Oliveira Abinader
db2e1b2e5f
[core] Add RendererState::{pixelForLatLng,latLngForPixel}
2018-11-14 12:22:22 +02:00
Mikhail Pozdnyakov
5a70f2b150
noexcept specifier for layer factory methods
2018-11-07 16:34:20 +02:00
Mikhail Pozdnyakov
ffdeef3a26
Refer corresponding LayerFactory instance from the Layer::Impl
2018-11-07 16:34:20 +02:00
Thiago Marcos P. Santos
7ff85374a7
[build] Remove #pragma diagnostic for boost
...
Boost is now included as a system header and the compiler
should ignore it when issuing warnings.
2018-11-01 16:29:37 +02:00
Bruno de Oliveira Abinader
a7b3f40f44
[build] GCC 7+ complains about -Wimplicit-fallthrough in utf.cpp
2018-10-25 16:23:40 +03:00
Bruno de Oliveira Abinader
55710cbb67
[core] Added RendererState::has{Image,Layer,Source}
2018-10-25 16:23:40 +03:00
Huyen Chau Nguyen
fa78bcadfd
[core] add tests for handling requests with different priorities
...
- ensure that low priority requests are handled last
- add option to set the number of maximum concurrent requests for tests
- some style fixups
2018-10-23 12:47:10 +02:00
Huyen Chau Nguyen
40693e00a8
[core] add logic of high and low priority requests to OnlineFileSource
...
- only process low priority requests (=offline requests) if there are no outstanding regular requests
- favour regular requests over low priority ones
2018-10-23 12:47:10 +02:00
Huyen Chau Nguyen
1e3a744d22
[core] add priorities to resources
...
- priorities can be low or regular
- offline downloads should have low priority to not throttle "regular requests"
2018-10-23 12:47:10 +02:00
Konstantin Käfer
282c71e8e9
[core] unify UTF-8/16 conversion to <boost/locale/encoding_utf.hpp>
2018-10-23 12:23:40 +02:00
Bruno de Oliveira Abinader
ea51b11dcc
[core] Introduce mbgl::RendererState
2018-10-19 12:05:16 +02:00
Bruno de Oliveira Abinader
b94be6e68f
[core] Add TransformState::getCameraOptions()
2018-10-19 12:05:16 +02:00
Chris Loer
f510b577aa
[core] Promote DefaultFileSource::put to general use.
2018-10-17 12:53:24 -07:00
Chris Loer
fc11d2e872
[core, test] Add BiDi unit test
...
- Port of arabic.test.js from mapbox-gl-rtl-text
- Modify BiDi::getLine to remove trailing nulls in the event UBIDI_REMOVE_BIDI_CONTROLS causes the string to shorten.
- Patch vendored ICU to avoid undefined undefined bit shifting behavior (triggered sanitizer failure)
2018-10-15 13:15:46 -07:00
Chris Loer
bc71825774
[core] Bidi support for styled text.
...
Remove use of QString from non-ICU Qt stub bidi implementation since we weren't making use of it.
2018-10-15 13:15:46 -07:00
Konstantin Käfer
4004a85a79
[android] explicitly set temp directory for SQLite3
2018-09-26 13:47:28 +02:00
Konstantin Käfer
153acd981b
[core] Always request 1x and @2x sprite images for portability
...
When creating a offline region, we've previously only requested the sprite image for the specified resolution. This lead to offline packs not being usable on devices that have a different pixel ratio. We're now requesting both 1x and 2x sprites. Some devices use even higher or fractional pixel ratios. However, we only ever use 1x and 2x sprite images in our requests.
2018-09-24 11:35:44 +02:00