Commit Graph

65 Commits

Author SHA1 Message Date
Konstantin Käfer
a4d259c33f [core] move gl::Context to Backend and refactor View 2016-10-25 13:52:36 -07: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
Minh Nguyễn
0f5b194617 [core, qt] Generalized source change notification
This same notification can in the future be used for other changes to a source.
2016-09-26 15:43:01 -07:00
Minh Nguyễn
f307652548 [core] Source-driven attribution
Implemented observer callbacks so the style knows when the source’s attribution changes and the map knows when the style’s attribution changes. Also implemented a getter for a tile source’s attribution.

Fixes #2723.
2016-09-26 11:37:06 -07:00
Bruno de Oliveira Abinader
9eb33d6669 [Qt] Implement QQuickMapboxGL::error{,String} properties 2016-09-26 11:47:34 +02:00
Bruno de Oliveira Abinader
5a12539d34 [Qt] Replace remaining Mapbox-specific features as MapParameter 2016-09-26 11:47:34 +02:00
Bruno de Oliveira Abinader
327cb22095 [Qt] Added 'image' MapParameter type 2016-09-26 11:47:34 +02:00
Bruno de Oliveira Abinader
3e42a0de9f [Qt] s/QQuickMapboxGL{Style,StyleProperty}/QQuickMapboxGLMapParameter 2016-09-26 11:47:34 +02:00
Bruno de Oliveira Abinader
478241a90f [Qt] Added QQuickMapboxGLMapParameter 2016-09-26 11:47:34 +02:00
Bruno de Oliveira Abinader
39e30c7687 [Qt] QQuickMapboxGLRenderer is now a friend of QQuickMapboxGL
Simplify implementation by removing unsafe accessors from
QQuickMapboxGL meant only to be used by QQuickMapboxGLRenderer.
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
fdd114d275 [qt] Separate transition options accessors from class API 2016-09-13 13:00:24 +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
Bruno de Oliveira Abinader
8843bebee2 [Qt] Added QQuickMapboxGLStyle
A QQuickMapboxGLStyleProperty being a child of QQuickMapboxGLStyle
assures that only properties associated with that particular style will
reflect on the map - and that happens only when the style is the current
set via style property.
2016-08-17 15:21:52 +03:00
Bruno de Oliveira Abinader
45da1abbe1 [Qt] Use MapChangeWillStartLoadingMap to get notified about style changes 2016-08-17 14:43:22 +03:00
Bruno de Oliveira Abinader
ee62a807a3 [Qt] Invert parent/child notification mechanism in QQuickMapboxGLStyleProperty
Parent item (QQuickMapboxGL) should check for signals from its child
items e.g. QQuickMapboxGLStyleProperty, and not the opposite.
2016-08-17 14:43:22 +03:00
Bruno de Oliveira Abinader
5057d7ef5d [Qt] Use QVariantMap in QQuickMapboxGLStyleProperty 2016-08-17 14:43:22 +03:00
Bruno de Oliveira Abinader
aa13acdb87 [Qt] Use strict signature for add{Source,Layer} 2016-08-17 14:43:22 +03:00
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