Commit Graph

81 Commits

Author SHA1 Message Date
Bruno de Oliveira Abinader
12258215af [Qt] Update style to v9 + bumped min/max zoom levels 2016-05-11 16:25:51 +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
6a9a8e2008 [build] Fix broken build on OSX 2016-05-10 14:41:04 +03:00
Thiago Marcos P. Santos
4213dc53dc [Qt] Use C++11 ABI packages
These were causing linking errors on more recent Linux distros.

Fixes #3123.
2016-05-10 11:36:56 +03:00
Bruno de Oliveira Abinader
c4b3c0142c [Qt] Added Qt SDK documentation
Fixes #4970.

[skip ci]
2016-05-08 14:12:28 +03:00
John Firebaugh
771e79a769 [core] Update geometry to 0.3.0 2016-05-06 11:59:29 -07:00
John Firebaugh
9330d674a9 [core] Use geometry.hpp's point 2016-05-05 11:30:53 -07:00
Thiago Marcos P. Santos
a818917714 [Qt] Make it possible to disable libwebp and libjpeg-turbo at build time
Pull less dependencies.
2016-05-05 18:47:14 +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
John Firebaugh
c8391729c7 [core] Use geometry.hpp feature type 2016-05-03 17:25:49 -07:00
Dane Springmeyer
c82b02c508 [core] port to protozero (#4906) 2016-05-03 13:57:17 -07:00
Bruno de Oliveira Abinader
78584b7fed [Qt] Removed unused resource 2016-05-03 17:11:47 +03:00
Thiago Marcos P. Santos
ee75d18473 [Qt] Add new features to the Qt QML app
Cool features like Flipable, satellite maps and
sliders interacting with the map properties.
2016-05-03 14:35:00 +03:00
Thiago Marcos P. Santos
96a2c93609 [Qt] Use mbgl constants to define zoom limits 2016-05-03 14:35:00 +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
John Firebaugh
7800445c85 [core] Use gyp's direct_dependent_settings to propagate variant cflags 2016-05-02 13:12:24 -07: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
d3f08f1442 [Qt] Constrain zoom levels when min/max changes 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
daf33180fd [Qt] Add QtLocation to the buildsystem
Needed by the next patch.
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
a02686447a [Qt] Set the test application icon
The super cool Mapbox logo.
2016-05-02 16:06:41 +03:00
John Firebaugh
c1ad321485 [linux] Build with GCC 5 (#4901)
* [linux] Build with GCC 5

* [build] -fabi-version=0 is the default for GCC 5
2016-04-29 09:57:21 -07:00
John Firebaugh
10528091db [core] Upgrade to boost 1.60.0 (#4899) 2016-04-28 15:21:50 -07: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
a9327c07e7 [Qt] Make needsRendering signal asynchronous
Fixes label animation not completing.
2016-04-28 16:33:48 +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
6ea257fa6a [Qt] Set a zoom and a coordinate on the QML test app 2016-04-27 21:53:21 +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
fde981a4fc [build] Move Qt version define to configure.sh 2016-04-27 18:57:31 +03:00
Bruno de Oliveira Abinader
c7379f188e [Qt] Flip Qt Quick item vertically if Qt version >= 5.6 2016-04-27 17:36:36 +03:00
Bruno de Oliveira Abinader
a083fcbd77 [Qt] Added qt-qml-app example 2016-04-27 17:36:35 +03:00
Bruno de Oliveira Abinader
72bcad210d [Qt] Added QQuickMapboxGL{,Renderer} 2016-04-27 17:36:35 +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
0e465a1248 [build] Qt cleanup 2016-04-27 17:07:19 +03:00
Thiago Marcos P. Santos
18c337c845 [Qt] Split Qt flags
The shared library won't link with things that we don't
use, like QtOpenGL anymore.
2016-04-26 18:36:07 +03:00
Thiago Marcos P. Santos
8b9f84d815 [Qt] Add toolchain support
Enables cross-compilation.
2016-04-25 16:44:28 +03:00
Bruno de Oliveira Abinader
db9f305b49 [Qt] Force lib install name to be executable path on OS X 2016-04-25 16:19:03 +03:00
Thiago Marcos P. Santos
1abad528af [Qt] Do not ignore compilation errors
But will no longer build with GCC 5.
2016-04-25 15:32:39 +03:00
Thiago Marcos P. Santos
5c3ae4c3d6 [Qt] Only include and link with QMapboxGL lib
Fixes #4808
2016-04-25 15:26:30 +03:00
Thiago Marcos P. Santos
d00f55de41 [Qt] Do not use non-Qt headers 2016-04-25 15:00:14 +03:00
Thiago Marcos P. Santos
a65c9ca134 [Qt] Set default visibility to hidden for Qt
Expose less symbols on the shared library.

Fixes #4809
2016-04-25 14:15:04 +03:00
Bruno de Oliveira Abinader
3ee9d12013 [Qt] Remove duplicated mbgl::Map initialization 2016-04-21 17:33:07 +03:00