Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Keep zoom level constant if zooming to one selected point
- Loading branch information
15e3fc3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Marco, don't we have separate Pan Map to selection tool for panning without zooming? I believe Zoom should always zoom)
15e3fc3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In general I agree. However, in the special case of one selected point, the zoom extent is undefined. I think it is then better to not zoom than to zoom in double. E.g. say you select with expression and zoom to selection many times. If you have a lot of one-point selections, you zoom in more and more. Even if there is the pan to selection tool, if is unconvenient to check the number of selected objects before choosing the map tool.