Opened 14 years ago

Closed 14 years ago

#3527 closed enhancement (fixed)

[patch] settable minimal size of "zoom to selection" view

Reported by: bilbo Owned by: team
Priority: normal Milestone:
Component: Core Version: latest
Keywords: Cc:


When you zoom to selection, the bounding box is enlarged by 0.002 degrees in every direction. While this can be good settings while editing large maps, it is very bad when editing in crowded city, as if you select something quite small (cca 50m large or even a single node) and want to zoom to it, zoom is set to area about 400x400 meters around it.

I have attached patch that allows you to set how much is the bbox enlarged when zooming (in advanced settings, key "edit.zoom-enlarge-bbox")

Also, perhaps the default should be changed from 0.002 to something like 0.0005

Attachments (1)

settable-zoom.patch (586 bytes ) - added by bilbo 14 years ago.
settable zoom patch

Download all attachments as: .zip

Change History (4)

by bilbo, 14 years ago

Attachment: settable-zoom.patch added

settable zoom patch

comment:1 by xeen, 14 years ago

May I suggest instead trying to auto-determine this dependent on the selection? For example, when correcting keep right bugs it's very possible changing from editing a long highway to a single node. This would certainly improve keep right. I haven't tried the patch, can you judge if the decreased value is still suitable for long highways and the like?

comment:2 by bilbo, 14 years ago

The zoomed-in area always contain the selection. Just the border is smaller. I think the border was added mainly to solve "zoom to selection with single node selected", so it won't zoom to infinitely small area. The default value of border is IMHO too large, so this patch makes it configurable. There could be some extra value based on percent, but you always need some minimal distance in meters/degrees to avoid problems with zooming to single point.

comment:3 by stoecker, 14 years ago

Resolution: fixed
Status: newclosed

(In [2572]) applied #3527 - hidden option for zoom extension

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment

E-mail address and name can be saved in the Preferences .
Note: See TracTickets for help on using tickets.