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

[core] trigger repaint after placement is redone #3657

Merged
merged 1 commit into from
Jan 22, 2016

Conversation

ansis
Copy link
Contributor

@ansis ansis commented Jan 21, 2016

This adds onPlacementRedone to Source::Observer which is called when a tile is updated with new symbol placement. Style uses this to trigger a repaint.

fixes #3140

This also fixes a bug where placement could be redone with a stale PlacementConfig after the tile first finishes loading.

@jfirebaugh can you review?

@jfirebaugh
Copy link
Contributor

Code changes look good.

One render test failed: symbol-avoid-edges rotated-false.

image

It looks like other symbol-avoid-edges tests have similar diffs but are passing. Thoughts?

@jfirebaugh
Copy link
Contributor

@ansis ansis force-pushed the placement-redone-update branch from 44b75ee to 0abef62 Compare January 22, 2016 21:37
fixes #3140

This also fixes a bug where placement could be redone with a stale
PlacementConfig after the tile first finishes loading.
@ansis ansis force-pushed the placement-redone-update branch from 0abef62 to 0101fc0 Compare January 22, 2016 21:57
@ansis ansis merged commit 0101fc0 into master Jan 22, 2016
@ansis ansis removed the in progress label Jan 22, 2016
@ansis ansis deleted the placement-redone-update branch January 22, 2016 22:17
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.

Collision debug does not properly repaint upon toggling
2 participants