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
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
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
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
5057d7ef5d
[Qt] Use QVariantMap in QQuickMapboxGLStyleProperty
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
Bruno de Oliveira Abinader
26a425fa6d
[Qt] QMapboxGLPrivate::getPixelRatio() cleanup
2016-05-26 17:52:34 +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
Thiago Marcos P. Santos
e84b9a83fa
[Qt] Always use setCoordinateZoom()
...
Because at low zoom levels setting a new coordinate won't
correspond to the actual coordinate on the map.
2016-05-10 21:04:06 +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
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