summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <tmpsantos@gmail.com>2018-02-24 21:18:07 +0200
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2018-05-16 11:27:33 +0000
commit4b05f361d32a355c34278656ab0eb473f787fb4c (patch)
tree2a67ce72d6a1dd104a3e40a477585d619e08b9c2
parentb7c7fc30fb9273936426914d78d1bf0d64314fe4 (diff)
downloadqtlocation-4b05f361d32a355c34278656ab0eb473f787fb4c.tar.gz
Bump Mapbox GL to the latest version
New features like: - Heatmaps - Better label rendering - Bugfixes mapbox-gl-native @ 27b21363e62c105db0b040b4c5a5ef31170ebd30 Change-Id: I443fb91ba42065b0de101d13c3bf51713ed01a89 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io>
-rw-r--r--.gitmodules2
m---------src/3rdparty/mapbox-gl-native0
-rw-r--r--src/plugins/geoservices/mapboxgl/mapboxgl.pro5
-rw-r--r--src/plugins/geoservices/mapboxgl/qgeomapmapboxgl.cpp2
-rw-r--r--src/plugins/geoservices/mapboxgl/qsgmapboxglnode.cpp4
5 files changed, 9 insertions, 4 deletions
diff --git a/.gitmodules b/.gitmodules
index 22c3849d..a5343bfd 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -1,4 +1,4 @@
[submodule "src/3rdparty/mapbox-gl-native"]
path = src/3rdparty/mapbox-gl-native
url = ../qtlocation-mapboxgl.git
- branch = upstream/qt-staging-5.11.0
+ branch = upstream/qt-staging
diff --git a/src/3rdparty/mapbox-gl-native b/src/3rdparty/mapbox-gl-native
-Subproject 74df5203628b47931b4edcb5e8fe352f40fe7df
+Subproject b59b0450c60b3df9e0852f62f6c8a6024889cd9
diff --git a/src/plugins/geoservices/mapboxgl/mapboxgl.pro b/src/plugins/geoservices/mapboxgl/mapboxgl.pro
index 17b6f53a..9a586ff6 100644
--- a/src/plugins/geoservices/mapboxgl/mapboxgl.pro
+++ b/src/plugins/geoservices/mapboxgl/mapboxgl.pro
@@ -22,6 +22,11 @@ SOURCES += \
qmapboxglstylechange.cpp \
qsgmapboxglnode.cpp
+# Mapbox GL Native is always a static
+# library linked to this plugin
+QMAKE_CXXFLAGS += \
+ -DQT_MAPBOXGL_STATIC
+
RESOURCES += mapboxgl.qrc
OTHER_FILES += \
diff --git a/src/plugins/geoservices/mapboxgl/qgeomapmapboxgl.cpp b/src/plugins/geoservices/mapboxgl/qgeomapmapboxgl.cpp
index c04aa5e3..dfebc20d 100644
--- a/src/plugins/geoservices/mapboxgl/qgeomapmapboxgl.cpp
+++ b/src/plugins/geoservices/mapboxgl/qgeomapmapboxgl.cpp
@@ -138,7 +138,7 @@ QSGNode *QGeoMapMapboxGLPrivate::updateSceneGraph(QSGNode *node, QQuickWindow *w
if (m_useFBO) {
static_cast<QSGMapboxGLTextureNode *>(node)->resize(m_viewportSize, window->devicePixelRatio());
} else {
- map->resize(m_viewportSize, m_viewportSize * window->devicePixelRatio());
+ map->resize(m_viewportSize);
}
}
diff --git a/src/plugins/geoservices/mapboxgl/qsgmapboxglnode.cpp b/src/plugins/geoservices/mapboxgl/qsgmapboxglnode.cpp
index 7721fe61..ed594b56 100644
--- a/src/plugins/geoservices/mapboxgl/qsgmapboxglnode.cpp
+++ b/src/plugins/geoservices/mapboxgl/qsgmapboxglnode.cpp
@@ -62,10 +62,10 @@ void QSGMapboxGLTextureNode::resize(const QSize &size, qreal pixelRatio)
{
const QSize& minSize = size.expandedTo(minTextureSize);
const QSize fbSize = minSize * pixelRatio;
- m_map->resize(minSize, fbSize);
+ m_map->resize(minSize);
m_fbo.reset(new QOpenGLFramebufferObject(fbSize, QOpenGLFramebufferObject::CombinedDepthStencil));
- m_map->setFramebufferObject(m_fbo->handle());
+ m_map->setFramebufferObject(m_fbo->handle(), fbSize);
QSGPlainTexture *fboTexture = static_cast<QSGPlainTexture *>(texture());
if (!fboTexture) {