Commit Graph

46 Commits

Author SHA1 Message Date
Bruno de Oliveira Abinader
472ab7442f [qt] Added QQuickMapboxGL{Layout,Paint}StyleProperty 2016-07-29 19:14:41 +03:00
Bruno de Oliveira Abinader
6edaf2dc81 [qt] Implement QQuickMapboxGL color property 2016-07-27 16:24:11 +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
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
John Firebaugh
0fba70d5a8 [all] Rationalize annotation API 2016-06-01 17:37:01 -07:00
Bruno de Oliveira Abinader
d36111abed [Qt] Initialize GL extensions on MapWindow
QMapboxGL relies on its embedding widget to call for the GL extensions
initialization function.

Fixes #5024.
2016-05-13 13:28:49 +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
Thiago Marcos P. Santos
bdf4f81553 [Qt] Include what you use
Build fix for some Qt versions.
2016-05-04 22:01:09 +03:00
Thiago Marcos P. Santos
a60f401e5a [Qt] Add pitch property to QML MapboxGL Type 2016-05-03 14:34:59 +03:00
Thiago Marcos P. Santos
7aa0a88c64 [Qt] Fix panning the map not updating the center property 2016-05-03 13:51:52 +03:00
Thiago Marcos P. Santos
41f63db98b [Qt] Implement bearing on the QML Mapbox Map type 2016-05-02 19:33:54 +03:00
Thiago Marcos P. Santos
91cdcbebf4 [Qt] Implement pan() method 2016-05-02 19:33:54 +03:00
Thiago Marcos P. Santos
da653ec537 [Qt] Allow setting the style via QML 2016-05-02 19:33:54 +03:00
Thiago Marcos P. Santos
c8d6540bc1 [Qt] Added plugin stub 2016-05-02 19:33:54 +03:00
Thiago Marcos P. Santos
1ac75a718d [Qt] Added error handling stubs 2016-05-02 19:33:54 +03:00
Thiago Marcos P. Santos
133f71dd01 [Qt] Add more properties stubs 2016-05-02 19:33:54 +03:00
Thiago Marcos P. Santos
8507b8663d [Qt] C++98 compatibility
Yeah, looks horrible.
2016-04-28 19:31:53 +03: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
a91d5ad7da [Qt] Initialize GL extensions
It will also enable Vertex Array Objects.
2016-04-28 12:55:46 +03:00
Thiago Marcos P. Santos
30fb7f4738 [Qt] Expose center and zoom properties 2016-04-27 21:53:21 +03:00
Bruno de Oliveira Abinader
72bcad210d [Qt] Added QQuickMapboxGL{,Renderer} 2016-04-27 17:36:35 +03:00
Thiago Marcos P. Santos
d00f55de41 [Qt] Do not use non-Qt headers 2016-04-25 15:00:14 +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
459e72d72a [Qt] Expose API to go full offline/online 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
Thiago Marcos P. Santos
19e1129367 [Qt] Add the QMapbox header with QMapbox datatypes 2016-04-20 20:55:51 +03:00
Bruno de Oliveira Abinader
dd075d53ed [Qt] Added pitch property 2016-04-20 20:55:51 +03:00
Thiago Marcos P. Santos
1ea7bde065 [Qt] Add support for margins 2016-04-20 20:55:51 +03:00
Thiago Marcos P. Santos
f83b8d8ea4 [Qt] Do not use Mapbox GL animations
Let animations to QPropertyAnimation so it can sync with other
Qt animations and let the user define the easing curve Qt-style.
2016-04-20 20:55:51 +03:00
Bruno de Oliveira Abinader
7d863d259a [Qt] Added {Map,GLContext,Constrain}Mode settings 2016-04-20 20:55:51 +03:00
Konstantin Käfer
41dd14d208 [Qt] expose NorthOrientation 2016-04-20 20:55:51 +03:00
Bruno de Oliveira Abinader
5482a46a04 [Qt] Wire up connection established signal 2016-04-20 20:55:51 +03:00
Bruno de Oliveira Abinader
0e6cc4006f [Qt] Forward annotations functions
Support for custom style properties in shape annotations will be
implemented in the future.
2016-04-20 20:55:51 +03:00
Bruno de Oliveira Abinader
814a12a63c [Qt] Forward style{JSON,URL} getters 2016-04-20 20:55:51 +03:00
Bruno de Oliveira Abinader
01d50b7bd2 [Qt] Forward style class functions 2016-04-20 20:55:51 +03:00
Bruno de Oliveira Abinader
b2cd18a550 [Qt] Forward toggleDebug() from mbgl::Map 2016-04-20 20:55:51 +03:00
Bruno de Oliveira Abinader
2d156ec6a9 [Qt] Forward scale setter/getter 2016-04-20 20:55:51 +03:00
Thiago Marcos P. Santos
854b3bc39b [Qt] Add a Qt wrapper aroung mbgl::Map
Signed-off-by: Bruno Abinader <bruno@mapbox.com>
Signed-off-by: Thiago Marcos P. Santos <thiago@mapbox.com>
2016-04-20 20:55:51 +03:00