summaryrefslogtreecommitdiff
path: root/platform/qt
Commit message (Collapse)AuthorAgeFilesLines
* [core] Add number-format expressionJuha Alanen2019-06-272-0/+27
|
* [core] option to perform platform specific operations when ↵Łukasz Paczos2019-05-221-0/+7
| | | | creating/destroying core threads
* [core] Refactor HeadlessFrontend/Backend: GL separation and factory (#14692)Aleksandar Stojiljkovic2019-05-211-2/+4
| | | | | 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-106-17/+4
| | | | | | | | | | - 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] refactor ThreadLocal backendKonstantin Käfer2019-04-081-27/+17
|
* [core] move GLContextMode to RendererBackendKonstantin Käfer2019-04-054-6/+8
|
* [core] refactor RendererBackendKonstantin Käfer2019-04-056-38/+60
|
* [core] move BackendScope to gfx namespaceKonstantin Käfer2019-04-054-5/+4
|
* [core] Include pixelRatio property in MapOptionsSudarsana Babu Nagineni2019-03-281-3/+5
| | | | Move pixelRatio property from Map constructor to MapOptions.
* [core] Add setter/getter for size property in MapOptionsSudarsana Babu Nagineni2019-03-281-4/+5
|
* [core] Add interface to change the orientation through MapOptionsSudarsana Babu Nagineni2019-03-281-1/+1
|
* [core] Fix signature of fluent interface settersBruno de Oliveira Abinader2019-03-231-4/+4
|
* [core] Remove file source from public Map ctorBruno de Oliveira Abinader2019-03-203-66/+34
|
* [core] Group Map LatLngBounds, min and max zoom methodsAnder Conselvan de Oliveira2019-03-141-2/+2
| | | | | | | | 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-134-9/+3
|
* [core] Don't use exceptions in MapObserver::onDidFailLoadingMapAnder Conselvan de Oliveira2019-03-132-18/+16
| | | | | | | 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.
* [Qt] Fix race when locking a FileSourceThiago Marcos P. Santos2019-03-081-2/+5
| | | | | | We were returning the FileSource, it could have expired already. We _need_ to check if the lock() on the weak pointer worked before returning.
* [core] Add MapOptions to define properties of MapSudarsana Babu Nagineni2019-03-081-3/+6
| | | | | | To simplify the Map constructor, introduce MapOptions interface to define the properties that can be set on a Map.
* [qt] Also use the base API URL as key for sharing the cache.Thiago Marcos P. Santos2019-03-041-2/+3
| | | | | Otherwise we will have a URL pointing to different servers and potentially different data.
* [core] Remove map coordinate setters/gettersBruno de Oliveira Abinader2019-03-041-6/+8
|
* [core] Transform{State}: s/angle/bearing/Bruno de Oliveira Abinader2019-03-042-6/+6
|
* [core] Remove map bearing setters/gettersBruno de Oliveira Abinader2019-03-041-3/+7
|
* [core] Remove map pitch setters/gettersBruno de Oliveira Abinader2019-03-041-2/+2
|
* [core] Remove map zoom setters/gettersBruno de Oliveira Abinader2019-03-041-6/+8
|
* [core] Added Map::pitchBy()Bruno de Oliveira Abinader2019-03-043-1/+7
|
* [core] Added Map::scaleBy()Bruno de Oliveira Abinader2019-03-041-1/+1
|
* [qt] Cleanup QMapboxGL::coordinateZoomForBounds()Bruno de Oliveira Abinader2019-03-041-14/+1
|
* [qt] Share the same file source only if using the same access tokenThiago Marcos P. Santos2019-02-271-13/+14
| | | | | If access tokens are different, we cannot share the file source, because it will override the previously set access token.
* [qt] fix missing alpha channel for `QColor`xylosper2019-02-202-5/+12
| | | | | | | | `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.
* [build] Use the correct define on WindowsThiago Marcos P. Santos2019-02-191-1/+0
| | | | https://blog.kowalczyk.info/article/j/guide-to-predefined-macros-in-c-compilers-gcc-clang-msvc-etc..html
* [android,darwin,ios,qt] Remove unused codeThiago Marcos P. Santos2019-02-122-178/+0
| | | | These files are no longer needed after the new GL abstraction.
* [core] Switch to the new OpenGL abstractionThiago Marcos P. Santos2019-02-122-1/+2
| | | | | | 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.
* [android,linux,darwin,qt] Load OpenGL for the platformThiago Marcos P. Santos2019-02-121-0/+566
| | | | | | | | These loaders will provide pointers to the platform implementation of OpenGL. On Android, Linux and Darwin, we simply link with the OpenGL implementation that is expected to exist on the platform. Qt has its own GL loader, so we just connect the dots.
* [qt] fix missing Q_MAPBOXGL_EXPORTsxylosper2019-02-121-3/+3
| | | | | New projection-related functions in QMapbox namespace are missing Q_MAPBOXGL_EXPORTs.
* [qt] add global projection functionsxylosper2019-02-123-5/+34
| | | | | | | | | | | There are 3 methods in QMapboxGL which can be static method. QMapboxGL::metersPerPixelAtLatitude QMapboxGL::projectedMetersForCoordinate QMapboxGL::coordinateForProjectedMeters Add these functions into QMapbox namespace as global functions. The methods in QMapboxGL are kept for backward compatibility.
* [qt] Add example of feature collection data for GeoJSON sourcexylosper2019-02-011-0/+54
| | | | | | The example shows that both of QList<QMapbox::Feature> and QVector<QMapbox::Feature> can be used as feature collection data for GeoJSON layer.
* [qt] Support feature collection for GeoJSON source dataxylosper2019-02-011-1/+18
| | | | | This commit adds support of `QVector<QMapbox::Feature>` and `QList<QMapbox::Feature>` for data in GeoJSON source.
* [qt] Use QVector instead of QListThiago Marcos P. Santos2019-01-304-17/+17
| | | | | | | For our use case `QVector` is more efficient and will do less memory allocations. Fixes: #13830
* [Qt] Support local font family in QMapboxGLSettingsBruno de Oliveira Abinader2019-01-045-4/+35
|
* [Qt] Implement LocalGlyphRasterizerBruno de Oliveira Abinader2019-01-042-1/+75
|
* [build] rework platform/default directory and add -files.txt for vendored libsKonstantin Käfer2018-12-143-20/+20
|
* [core] define number of concurrent downloads in online file source variableHuyen Chau Nguyen2018-11-151-4/+0
|
* [qt] Fix crash on Qt filesourceThiago Marcos P. Santos2018-11-131-2/+6
| | | | | | | | | | | | | | | | | | | | When opening many maps and sharing the same filesource: - Say we open around 30 maps and they all have the same style. - They will all request the same sprite.json, but Qt filesource will restrict simultaneous request to 20. - Mapbox GL will send some sprite.json to the filesource and queue some internally along with other requests. - When the first sprite.json arrives and the Qt filesource calls the callback, Mapbox GL will synchronously push queued requests to the Qt filesource when a request is handled. - We are walking a QVector dispatching sprite.json requests, but more requests get added to this QVector while we are walking it using an iterator. - That corrupts the iterator and we get a crash. The fix is simple, just pop items from the QVector until it is empty instead of using iterators.
* [qt] Deprecate Qt4 and old versions of Qt5Thiago Marcos P. Santos2018-11-1317-351/+179
| | | | Not enough adoption to keep the platform alive.
* Refer corresponding LayerFactory instance from the Layer::ImplMikhail Pozdnyakov2018-11-071-0/+3
|
* [build] Add build system for submodulesThiago Marcos P. Santos2018-10-312-20/+2
| | | | | | | | | Vendorize the submodules and a simple CMake build system for all them. The dependencies will inherit compilation options for core. The goal is to make Mapbox GL Core completely self contained with a simple offline build.
* Consolidate `style::Layer` properties APIMikhail Pozdnyakov2018-10-251-43/+2
| | | | | | | | The `style::Layer` class now exposes all the properties contained at `style::LayerImpl`. This allowed to drop `style::Layer::accept()` method usage, avoid the repeated generated code and thus save some binary size. This patch is a part of the layers modularization effort.
* [core] unify UTF-8/16 conversion to <boost/locale/encoding_utf.hpp>Konstantin Käfer2018-10-231-1/+1
|
* [core] CameraOptions receives and outputs angle and pitch as degrees, not ↵Bruno de Oliveira Abinader2018-10-191-2/+2
| | | | radians
* [core] Bidi support for styled text.Chris Loer2018-10-151-22/+21
| | | | Remove use of QString from non-ICU Qt stub bidi implementation since we weren't making use of it.