Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

[core] Omnibus Style::update method #8888

Merged
merged 1 commit into from
May 4, 2017
Merged

[core] Omnibus Style::update method #8888

merged 1 commit into from
May 4, 2017

Conversation

jfirebaugh
Copy link
Contributor

Combine Style::cascade, recalculate, relayout, and updateTiles into a single method. This allows multiple loops over sources and layers to be consolidated and prepares for additional Style-Map decoupling: rather than tracking pending updates via a set of Update flags held by the Map and passed to the Style, the Style can use its own data to determine what to update. To start out with, this replaces Update::Layout with use of the UpdateBatch::sourceIDs that the Style already tracks.

Combine Style::cascade, recalculate, relayout, and updateTiles into a single method. This allows multiple loops over sources and layers to be consolidated and prepares for additional Style-Map decoupling: rather than tracking pending updates via a set of Update flags held by the Map and passed to the Style, the Style can use its own data to determine what to update.
@jfirebaugh jfirebaugh mentioned this pull request May 4, 2017
Copy link
Contributor

@ivovandongen ivovandongen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@jfirebaugh jfirebaugh merged commit e7d2796 into master May 4, 2017
@jfirebaugh jfirebaugh deleted the style-update branch May 4, 2017 17:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants