forked from felt/tippecanoe
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid placing polygon labels in holes (felt#62)
* Avoid placing polygon labels in holes * Traverse vertices in hilbert order to find potential label points * Update test to reflect new label placements * Sorting by Y coordinate is better and easier than Hilbert order * Give a bonus for being near the center of mass * Make label points a little more border-shy * Tall places, not just wide places; border lines, not just border points * Clean up * Try diagonals through the features too * Limit the search for label points to prevent slowing down too much * At this point the center of mass bonus is doing more harm than good * Forgot to update test
- Loading branch information
Showing
4 changed files
with
264 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.