@@ -133,6 +133,9 @@ void MapContext::loadStyleJSON(const std::string& json, const std::string& base)
|
||||
style->setJSON(json, base);
|
||||
style->setObserver(this);
|
||||
|
||||
// force style cascade, causing all pending transitions to complete.
|
||||
style->cascade();
|
||||
|
||||
updated |= static_cast<UpdateType>(Update::DefaultTransitionDuration);
|
||||
updated |= static_cast<UpdateType>(Update::Classes);
|
||||
updated |= static_cast<UpdateType>(Update::Zoom);
|
||||
|
||||
Reference in New Issue
Block a user