-
Notifications
You must be signed in to change notification settings - Fork 13
Adjust defaults new map defaults #1113
Comments
👍
Could you please elaborate? It is the users choice which images are used? Do you mean automatic downsampling? |
After analyzing this issue, I see two possible ways to approach the problem:
@markus2330 What is your opinion? Should we, for now, implement option 1 and have a new issue for option 2 to be done later? Or work on option 2 right away? |
Thx @andreicristian97 good analysis! Nr 1. should be enough. Rationale: we want to remember the last viewing state of the user. So the default viewing state is only relevant when a user sees an map the first time. For later times, the old viewing state gets remembered. |
Ok, with this in mind, we have two ways we can proceed based on how the map is currently set up by default. Currently, the default view of the map is with the (0, 0) point in the top left of the map, with the Viewing rectangle calculated around that.
I have a working solution for option 2, but I am not happy that it uses hardcoded values. Not sure how to write this calculation otherwise. I will publish a PR now with that code, I will explain there the calculation. |
Why is the algorithm different to zooming out and panning? Or did I misunderstand? |
I'm not sure I understand the question. |
I mean why not give default values that are equivalent to when the user would have zoomed out+panned to see the whole border rectangle (of the base layer) in the visible window? |
Tasks
Use case
No response
Related Pull request
No response
The text was updated successfully, but these errors were encountered: