Thiago Marcos P. Santos
d15b9c1f9c
[core] Fix performance-unnecessary-value-param errors
...
As reported by clang-tidy-8.
2020-03-23 12:09:09 +02:00
Mikhail Pozdnyakov
ba4f5efa09
[core] OnlineFileSource is never accessed directly
2020-02-26 22:31:59 +02:00
Mikhail Pozdnyakov
aad13f6a3f
[core] FileSourceManager::getFileSource() returns PassRefPtr
2020-02-26 22:31:59 +02:00
Thiago Marcos P. Santos
44f9a694c5
[qt] Fix compilation error
...
GCC complains about this variable being potentially not initialized.
2020-02-20 19:41:03 +03:00
Alexander Shalamov
4be2fa4f9a
[core] Add platform::setCurrentThreadPriority(double)
2020-02-06 23:54:19 +02:00
Thomas Moenicke
b64ed75444
[build] Adding a build flag to build without GL if needed ( #16120 )
...
* [build] Adding a build flag to build without GL if needed
* [build] Moving custom layer to mbgl/gl
2020-02-03 19:10:57 +02:00
Mikhail Pozdnyakov
d24c1d625a
[core] Pass std::shared_ptr<UpdateParameters> to the render orchestrator
...
So that it can retain ownership of the given parameters.
2020-01-22 14:30:26 +02:00
Alexander Shalamov
1e6ad76516
[qt] Use new FileSourceManager interface
2020-01-13 10:57:23 +02:00
Mikhail Pozdnyakov
6c2461baf9
[qt] Fix usage of QNetworkReply after deletion
2019-12-17 11:31:21 +02:00
Bruno de Oliveira Abinader
1e2cd1e086
[core] Remove Map::cycleDebugOptions
2019-12-04 11:50:05 +02:00
Mikhail Pozdnyakov
5d46cd662f
[android][node][qt] Update platform code for style::Layer::setProperty()
2019-12-03 14:20:17 +02:00
Thiago Marcos P. Santos
bd5397a886
[qt] Fix code formatting
2019-11-11 23:10:10 +02:00
Tadej Novak
910335c51f
[qt] Make image source url update possible
2019-11-11 23:10:10 +02:00
Juha Alanen
360b8b4247
[core,android,darwin,qt] Add fields related to feature-state
...
Move the fields from geometry.hpp/feature.hpp as they are not
part of the GeoJSON specification.
2019-10-28 16:46:55 +02:00
Mikhail Pozdnyakov
f62e5b00c9
[core] Introduce Scheduler::makeWeakPtr()
2019-10-09 23:46:11 +03:00
Mikhail Pozdnyakov
bef635765a
[core] Decouple Scheduler interface from actor model
...
So that it is possible to schedule normal `std::function` and use `mapbox::base::WeakPtr`.
2019-10-04 17:42:21 +03:00
Alexander Shalamov
e5cdc4ecf3
[core][android][darwin] Move number format to i18n
2019-09-26 10:55:47 +03:00
Thiago Marcos P. Santos
c7bbd5bbef
[core] Fix performance-move-const-arg
2019-09-25 18:59:07 +03:00
Mikhail Pozdnyakov
8af78ddbb9
[core] Update MapObserver::onDidFinishRenderingFrame() API
2019-09-12 00:40:08 +03:00
Alexander Shalamov
5d316a8076
[core][qt] Check if QFont supports glyph and adjust backing image width
...
- Don't rasterize glyphs if font does not support requested code point
- Render symbols at hardcoded baseline, so that locally rasterized glyphs
align better with server side generated fonts.
- Resize backing QImage width to be at least 24px
2019-08-28 12:08:54 +03:00
Ander Conselvan de Oliveira
21632a66f8
[core] Remove programCacheDir parameter from ProgramParameters
...
Binary shader support has been removed in commit c2f974f2a5 ([core]
Remove binary shader support). This left-over parameter is not used
anywhere anymore.
2019-08-27 16:23:48 +03:00
Mikhail Pozdnyakov
ef3d04dee5
[core] Export symbol placement update status from MapObserver
2019-08-23 10:56:05 +03:00
Juha Alanen
0ca8ea6f16
[core] Add number-format expression
2019-06-27 15:51:22 +03:00
Łukasz Paczos
7d6255c860
[core] option to perform platform specific operations when creating/destroying core threads
2019-05-22 15:52:55 +02: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
8f331f5ae3
[core] refactor ThreadLocal backend
2019-04-08 14:41:16 +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
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
Bruno de Oliveira Abinader
ac6855a473
[core] Fix signature of fluent interface setters
2019-03-23 09:12:44 +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
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
Thiago Marcos P. Santos
7cdc39bee9
[Qt] Fix race when locking a FileSource
...
We were returning the FileSource, it could have expired
already. We _need_ to check if the lock() on the weak
pointer worked before returning.
2019-03-08 20:56:45 +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
Thiago Marcos P. Santos
7b7ad9d39b
[qt] Also use the base API URL as key for sharing the cache.
...
Otherwise we will have a URL pointing to different servers and
potentially different data.
2019-03-04 19:33:45 +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
Bruno de Oliveira Abinader
362231e2d0
[qt] Cleanup QMapboxGL::coordinateZoomForBounds()
2019-03-04 14:45:32 +02:00
Thiago Marcos P. Santos
edc6a5dd8b
[qt] Share the same file source only if using the same access token
...
If access tokens are different, we cannot share the file source,
because it will override the previously set access token.
2019-02-27 13:31:21 +02:00
xylosper
0c66ce9a95
[qt] fix missing alpha channel for QColor
...
`QColor::name()` produces `#rrggbb` format where alpha is missing.
Use `rgba(...)` string instead when convert `QColor` to mapbox style.
Note: `QColor::name(QColor::HexArgb)` produces `#aarrggbb` format string,
but mapbox does not support this format apparently.
2019-02-20 16:16:34 +02:00