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

Support map zooms relative to the Viking zoom level (e.g. 2×) #159

Open
vinc17fr opened this issue Aug 11, 2022 · 2 comments
Open

Support map zooms relative to the Viking zoom level (e.g. 2×) #159

vinc17fr opened this issue Aug 11, 2022 · 2 comments

Comments

@vinc17fr
Copy link

In the Default Map → Properties dialog box, one can set Zoom Level either to some fixed value (a power of 2) or to "Use Viking Zoom Level". A fixed value consists in scaling the viewport on a fixed image, meaning that when zooming in, the image can be pixelized, and when zooming out, the text from the map can become unreadable. So "Use Viking Zoom Level" is normally much more interesting, as the selected image (set of tiles) depends on the zoom level, thus with the most possible details on the map, but on very high DPI screens, the fonts can be too small, making text almost unreadable. So a value relative to the Viking zoom level would be useful to keep text readable though some details would be lost (a map type with big fonts for HDPI screens would be the best solution, but such maps do not seem to be available); just a value of 2× may actually be sufficient, so that this would need only one additional line in the Zoom Level menu.

Note: setting viewport_scale=2 in the ~/.viking/viking.ini file almost achieves the above feature, but

  • this unnecessarily affects the scaling of some other things (not related to text);
  • changing its value needs a restart of Viking.
@vinc17fr
Copy link
Author

The use of viewport_scale is mentioned in the related issue #97.

@rnorris
Copy link
Collaborator

rnorris commented Jul 10, 2023

Apologies for lateness of the reply, just to clarify my understanding of the request...

You would like an additional scale factor to apply solely to the map images (unlike the viewport_scale). I will ponder on how best to achieve this.

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

2 participants