Konstantin Käfer
f7801e5d82
[core] correctly set the framebuffer size on retina screens
...
Also asserts in Debug mode that the internal state and the OpenGL state are identical
2016-11-01 10:46:04 +01:00
Bruno de Oliveira Abinader
fa96612888
[Qt] Fix viewport size for Linux on Qt5
2016-10-28 14:36:07 +03:00
Konstantin Käfer
62b56b799a
[core] change std::array<uint16_t, 2> to mbgl::Size
2016-10-27 18:30:58 -07:00
Konstantin Käfer
a4d259c33f
[core] move gl::Context to Backend and refactor View
2016-10-25 13:52:36 -07:00
Konstantin Käfer
5cc390d694
[core] separate Backend from View for headless rendering
2016-10-25 13:52:36 -07:00
Mike Morris
817c26111a
[core] [node] pass thread pool impl to Map constructor
...
Updates mbgl::Map constructor usage everywhere
Adds NodeThreadPool implementation using AsyncQueue to call
Nan::AsyncQueueWorker from main thread
2016-10-20 14:37:36 -04:00
Thiago Marcos P. Santos
e881795ed1
[Qt] Header cleanup ( #6477 )
...
Make some headers private, so we only commit with the QML API.
2016-09-27 16:18:04 +03:00
Konstantin Käfer
63e53de157
[core] standardize on uint16_t for texture sizes
2016-09-27 10:42:10 +02:00
Bruno de Oliveira Abinader
15f7b21c4b
[Qt] Fix RVO warning in QMapbox::addAnnotationIcon
2016-09-26 11:47:34 +02:00
Bruno de Oliveira Abinader
1ce6e1b4bb
[Qt] Move QMapboxGL::MapChange to QMapbox namespace
2016-09-26 11:47:34 +02:00
Thiago Marcos P. Santos
746bb678c8
[Qt] Add API for adding icon to the style
2016-09-23 16:43:37 +03:00
Bruno de Oliveira Abinader
fdaf26b2c0
[qt] Fix bug in fromQStringList
2016-09-13 13:00:24 +03:00
Bruno de Oliveira Abinader
fdd114d275
[qt] Separate transition options accessors from class API
2016-09-13 13:00:24 +03:00
John Firebaugh
fe2a26225f
[core, ios, android, qt] Observe style layer mutations rather than requiring SDKs to use Map::update
...
This paves the way for updates to filter and layout properties to trigger a source reload, without each SDK having to participate in the implementation.
2016-09-06 14:29:22 -07:00
Thiago Marcos P. Santos
8801c9031b
[Qt] s/parent_/parent
...
Fits better with the docs.
2016-08-26 16:39:38 +03:00
Thiago Marcos P. Santos
8d258e3542
[Qt] Initial documentation stub
2016-08-26 16:39:34 +03:00
Thiago Marcos P. Santos
9605cac3e9
[Qt] setStyleURL and setStyleJSON name review
...
Qt uses URL as Url and JSON as Json.
2016-08-26 15:52:16 +03:00
Thiago Marcos P. Santos
e9a453271b
[Qt] Read the access token from the environment by default
2016-08-26 00:25:31 +03:00
Bruno de Oliveira Abinader
aa13acdb87
[Qt] Use strict signature for add{Source,Layer}
2016-08-17 14:43:22 +03:00
Thiago Marcos P. Santos
86cebd4cca
[core] Report conversion errors using std::string
...
char* increases the risk of pointing to a invalid reference. Qt had
to use a static variable as retainer to workaround.
2016-07-12 16:04:20 +03:00
Thiago Marcos P. Santos
abeee2087c
[Qt] Added add/remove style source method
2016-07-11 17:01:32 +03:00
Thiago Marcos P. Santos
abff8e42c1
[Qt] Added add style layer method
2016-07-11 17:01:32 +03:00
Thiago Marcos P. Santos
18c8830169
[Qt] Added set style filter method
2016-07-11 17:01:32 +03:00
Thiago Marcos P. Santos
b59070590b
[Qt] Added set style paint properties method
2016-07-11 17:01:32 +03:00
Thiago Marcos P. Santos
e9259fc03e
[Qt] Added set style layout properties method
2016-07-11 17:01:32 +03:00
Thiago Marcos P. Santos
46df5d58f9
[Qt] Added conversion functions for the runtime style API
2016-07-11 17:01:31 +03:00
Bruno de Oliveira Abinader
65868b28cc
[Qt] Janitor private headers
2016-07-11 17:01:31 +03:00
Bruno de Oliveira Abinader
7d63847bec
[Qt] Use mbgl::LineString instead of mbgl::Polygon as default shape
2016-06-22 18:07:19 +03:00
Bruno de Oliveira Abinader
760a692378
[Qt] Added QMapbox::TransitionOptions to style class functions
2016-06-20 13:01:59 +03:00
Bruno de Oliveira Abinader
d323f393ec
[Qt] Cleanup annotation usage
2016-06-16 19:30:19 +03:00
John Firebaugh
c902f9098b
[core] Rationalize naming for style-related code
2016-06-02 14:51:39 -07:00
John Firebaugh
d7e1ecd19e
[core] Generalize Map::{add,remove}CustomLayer
2016-06-02 14:51:39 -07:00
John Firebaugh
0fba70d5a8
[all] Rationalize annotation API
2016-06-01 17:37:01 -07:00
Thiago Marcos P. Santos
cfd6757ecc
[Qt] Use geometry.hpp internally for shape annotations
2016-06-01 17:36:50 -07:00
Bruno de Oliveira Abinader
6c94898297
[Qt] Fix typo in QMapboxGL::resize
2016-06-01 15:52:00 +03:00
Thiago Marcos P. Santos
5be5bab730
[Qt] Share the same RunLoop if in the same thread
2016-05-27 15:44:59 +03:00
Bruno de Oliveira Abinader
26a425fa6d
[Qt] QMapboxGLPrivate::getPixelRatio() cleanup
2016-05-26 17:52:34 +03:00
Bruno de Oliveira Abinader
835790d41a
[Qt] Consider pixel ratio in View::getFramebufferSize()
2016-05-24 19:58:24 +03:00
Bruno de Oliveira Abinader
c1dde52c73
[Qt] Fix map aspect ratio
...
Take QGuiApplication::devicePixelRatio() in consideration when resizing
the map.
Fixes #4889 .
2016-05-13 17:29:36 +03:00
Bruno de Oliveira Abinader
ae7a0ddea4
[Qt] Added viewport mode
...
Qt Quick requires third-party rendering codes to follow its standards
with regards to viewport transform. Qt 5.6 adds a 'mirrorVertically'
property but that only solves the solution for that version of Qt
onwards. Telling Mapbox GL core to flip the Y axis makes QQuickMapboxGL
item available for Qt 5.2 onwards.
Qt 'mirrorVertically' property documentation:
http://doc.qt.io/qt-5/qquickframebufferobject.html#mirrorVertically-prop
Fixes #4866 .
2016-05-11 15:50:28 +03:00
John Firebaugh
9330d674a9
[core] Use geometry.hpp's point
2016-05-05 11:30:53 -07:00
Bruno de Oliveira Abinader
9c5ed9c378
[Qt] Statically assert reflected Qt enums
2016-04-28 19:10:58 +03:00
Bruno de Oliveira Abinader
ffb59864dc
[Qt] s/mapRegionDidChange()/mapChanged(QMapboxGL::MapChange)/ signal
2016-04-28 17:12:09 +03:00
Thiago Marcos P. Santos
a9327c07e7
[Qt] Make needsRendering signal asynchronous
...
Fixes label animation not completing.
2016-04-28 16:33:48 +03:00
Thiago Marcos P. Santos
205ecff6d7
[Qt] Use shared GL context by default
2016-04-27 17:36:30 +03:00
Bruno de Oliveira Abinader
3ee9d12013
[Qt] Remove duplicated mbgl::Map initialization
2016-04-21 17:33:07 +03:00
Bruno de Oliveira Abinader
8ff17ffc9a
[Qt] Expose {add,remove}CustomLayer
2016-04-20 20:55:51 +03:00
Bruno de Oliveira Abinader
0d4ccd4e44
[Qt] Expose QMapboxGL::updatePointAnnotation
2016-04-20 20:55:51 +03:00
Bruno de Oliveira Abinader
fa6421a56f
[Qt] Implement QMapboxGL::jumpTo
2016-04-20 20:55:51 +03:00
Thiago Marcos P. Santos
e974dd282d
[Qt] Add function for get coordinates and zoom based on a bounding box
2016-04-20 20:55:51 +03:00