Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extended tile set store #34

Open
wants to merge 17 commits into
base: master
Choose a base branch
from

Conversation

tordanik
Copy link
Contributor

@tordanik tordanik commented Jun 6, 2022

This PR improves handling of extended tile sets. Notably, it encourages multiple map elements (nodes, ways, relations) to reference the same extended set by ...

  • using the same indices, and refraining from modifying existing sets
  • adding the "primary" tile to the extended set as well, thus allowing e.g. all nodes of a way to use the same set even if they are in different tiles themselves
  • looking at the most recently added set for reuse potential.

A new ExtendedTileSetStore class handles adding and retrieving tile sets (growing the backing array as needed, much as an ArrayList).

This pull request also includes some cleanup work and is based on #32.

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