[Qt] Added 'image' MapParameter type

This commit is contained in:
Bruno de Oliveira Abinader
2016-09-23 20:30:37 +03:00
parent 3e42a0de9f
commit 327cb22095
3 changed files with 29 additions and 1 deletions

View File

@@ -96,6 +96,11 @@ void QQuickMapboxGLRenderer::synchronize(QQuickFramebufferObject *item)
}
quickMap->m_filterChanges.clear();
for (const auto& change : quickMap->m_imageChanges) {
m_map->addImage(change.name, change.sprite);
}
quickMap->m_imageChanges.clear();
for (const auto& change : quickMap->m_stylePropertyChanges) {
if (change.type == QQuickMapboxGL::StyleProperty::Paint) {
m_map->setPaintProperty(change.layer, change.property, change.value, change.klass);