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

Add support for retina aerial imagery #8163

Open
zdila opened this issue Nov 4, 2020 · 0 comments
Open

Add support for retina aerial imagery #8163

zdila opened this issue Nov 4, 2020 · 0 comments

Comments

@zdila
Copy link

zdila commented Nov 4, 2020

TMS URL parameters {@2x} and {r} are a great addition to support retina background imagery for rendered maps (maps with labels, icons and other symbology). But iD should also support retina for pure aerial (non-hybrid) maps. These maps don't need any extra parameter in URL and to achieve sharp rendering it is sufficient to take 4 adjanced tiles from zoom+1 and place them to the same space as would be for the original tile.

Leaflet supports this by setting zoomOffset to 1 and tileSize to 128. Locus maps on Android also supports this feature.

If you have retina/HDPI display then you can compare the result visually:

There would still need to be a flag for every background to specift if it is suitable for this (ie. non-hybrid aerial imagery). Unfortunatley I found nothing like this in the documentation of the project defining background maps for iD and I think it should be added there.

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

No branches or pull requests

1 participant