Skip to content

implement symbol-avoid-edges - #1951

Merged
ansis merged 1 commit into
masterfrom
symbol-avoid-edges
Jan 20, 2016
Merged

ansis merged 1 commit into
masterfrom
symbol-avoid-edges

Conversation

@ansis

@ansis ansis commented Jan 20, 2016

Copy link
Copy Markdown
Contributor

Prevent symbols from colliding with tile edges when symbol-avoid-edges is true.

ref mapbox/mapbox-gl-native#3582

render tests: mapbox/mapbox-gl-test-suite@bc0272c

@ansis

ansis commented Jan 20, 2016

Copy link
Copy Markdown
Contributor Author

@lucaswoj can you review?

Comment thread js/symbol/collision_tile.js Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Would it make more sense for this method to be called findEdgeMinPlacementScale?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I suppose keeping these method names as similar as possible to those in native is most important.

@lucaswoj

Copy link
Copy Markdown
Contributor

Looks 👍 overall. Ready to ship once minor comments are addressed.

if `symbol-avoid-edges` is true, this prevents symbols from colliding
with tile edges.
@ansis
ansis force-pushed the symbol-avoid-edges branch from a490ee6 to f023f65 Compare January 20, 2016 22:20
@ansis
ansis merged commit f023f65 into master Jan 20, 2016
@ansis ansis removed the in progress label Jan 20, 2016
@ansis
ansis deleted the symbol-avoid-edges branch February 20, 2016 01:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants