[Qt] Implement updateSource
It will create or update a source. Right now only GeoJSON sources are mutable and can be updated using this method.
This commit is contained in:
committed by
Thiago Marcos P. Santos
parent
070a9b43e1
commit
8f24119bd0
@@ -88,7 +88,7 @@ void QQuickMapboxGLRenderer::synchronize(QQuickFramebufferObject *item)
|
||||
}
|
||||
|
||||
for (const auto& change : quickMap->m_sourceChanges) {
|
||||
m_map->addSource(change.value("id").toString(), change);
|
||||
m_map->updateSource(change.value("id").toString(), change);
|
||||
}
|
||||
quickMap->m_sourceChanges.clear();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user