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

Review pixel alignment for TileLayer #11

Open
oliverheilig opened this issue Dec 20, 2017 · 0 comments
Open

Review pixel alignment for TileLayer #11

oliverheilig opened this issue Dec 20, 2017 · 0 comments

Comments

@oliverheilig
Copy link
Member

One could expect that the pixels of an image-tile exeactly match the pixels on the panel if:

  • Windows is confiugured in a way that corresponds to a 96-DPI resolution for the panel.
  • The map is zoomed at an integer zoom-level
  • The (WPF-) container of the map is aligned to pixels (UseLayoutRounding=true)

Note: This isn't easy to implement. Unlinke the NonTiledLayer, which is always aligned exactly to the viewport-rect, the tiles can have any wpf position (Pan-Transformation X/Y). This would require a "pan snapping", so the texture-pixel exactly hits the panel-pixel for this case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant