[core, ios, android, qt] Observe style layer mutations rather than requiring SDKs to use Map::update
This paves the way for updates to filter and layout properties to trigger a source reload, without each SDK having to participate in the implementation.
This commit is contained in:
@@ -541,8 +541,6 @@ void QMapboxGL::setLayoutProperty(const QString& layer_, const QString& property
|
||||
qWarning() << "Error setting layout property:" << layer_ << "-" << property;
|
||||
return;
|
||||
}
|
||||
|
||||
d_ptr->mapObj->update(mbgl::Update::RecalculateStyle);
|
||||
}
|
||||
|
||||
void QMapboxGL::setPaintProperty(const QString& layer_, const QString& property, const QVariant& value, const QString& klass_)
|
||||
@@ -564,8 +562,6 @@ void QMapboxGL::setPaintProperty(const QString& layer_, const QString& property,
|
||||
qWarning() << "Error setting paint property:" << layer_ << "-" << property;
|
||||
return;
|
||||
}
|
||||
|
||||
d_ptr->mapObj->update(mbgl::Update::RecalculateStyle | mbgl::Update::Classes);
|
||||
}
|
||||
|
||||
bool QMapboxGL::isRotating() const
|
||||
|
||||
Reference in New Issue
Block a user