OpenStreetMap Forum

The Free Wiki World Map

You are not logged in.

#1 2019-04-10 16:28:10

Peter Bremer
Member
Registered: 2015-06-30
Posts: 17

JOSM zooms out when downloading new data

Every time I download new data in JOSM, (File > Download data, or Ctrl+Shift+Down, and accepting the default selecting which is the current viewport), then the maps zooms out, with the downloaded data only covering the inner 50% of the new viewport. I have to zoom in once to go back to the previous view and the actual extends of the downloaded data.

Also using 5 (Zoom to Download) zooms out too much making the actual download only cover 50%.

Is this due to a combination of wrong settings?

I initially though this was some faulty HiDPI processing, but my screen is only 1920x1080 and set to 100% scaling in Windows.

Using JOSM 14945, jPortable 1.8.0_201, Windows 10.

Offline

#2 2019-04-10 16:45:16

GerdP
Member
Registered: 2015-12-18
Posts: 816

Re: JOSM zooms out when downloading new data

I think it depends on the background image and some settings like "Zoom to native resolution"

Offline

#3 2019-04-10 16:52:09

Peter Bremer
Member
Registered: 2015-06-30
Posts: 17

Re: JOSM zooms out when downloading new data

That seems related yes, without background image it still zooms out after a download, but now it's only about 15%. Where would I find the "Zoom to native resolution" option?

Offline

#4 2019-04-10 16:57:19

GerdP
Member
Registered: 2015-12-18
Posts: 816

Re: JOSM zooms out when downloading new data

Right click on the background image layer.
Reg. "5 (Zoom to Download) ": I can reproduce that and I agree that it is not correct.

Offline

#5 2019-04-10 17:26:40

Peter Bremer
Member
Registered: 2015-06-30
Posts: 17

Re: JOSM zooms out when downloading new data

The "Zoom to native resolution" on the right-click menu is an action, not an option. You can't "check" it, but I guess if you somehow zoomed to a non-native resolution, then this item puts you back to native resolution.

The weird thing is, I can not change my zoom to non-native. Even dragging the zoom bar in the top left of the map, jumps in large steps over what I guess is 100%, 200%, 300%, etc.

Offline

#6 2019-04-10 17:34:48

Peter Bremer
Member
Registered: 2015-06-30
Posts: 17

Re: JOSM zooms out when downloading new data

In the layers window, I found a little icon of black and white boxes, that says "Scale follows native resolution of this layer". However, disabling that for every layer, still doesn't stop the zooming out to double the downloaded area.

Offline

#7 2019-04-10 17:53:45

RicoElectrico
Member
From: Trójmiasto
Registered: 2012-07-01
Posts: 1,197

Re: JOSM zooms out when downloading new data

Guys, there is a solution.

Under expert settings change value of download.zoomtodata from true to false.

Offline

#8 2019-04-10 17:57:58

Peter Bremer
Member
Registered: 2015-06-30
Posts: 17

Re: JOSM zooms out when downloading new data

Doing that is the same as disabling "Zoom to downloaded data" in the download window. However, as the name implies, this also means that if you select another area, you won't get to see the download.

Disabling "Zoom to downloaded data" is really the opposite of what I want. I want it to zoom to the downloaded data, but what it does is zooming to double that area.

Offline

#9 2019-04-11 11:28:33

GerdP
Member
Registered: 2015-12-18
Posts: 816

Re: JOSM zooms out when downloading new data

I've openend a JOSM ticket: https://josm.openstreetmap.de/ticket/17591

Offline

#10 2019-04-12 10:04:54

Peter Bremer
Member
Registered: 2015-06-30
Posts: 17

Re: JOSM zooms out when downloading new data

Thanks! This works great in v.14986, *IF* I turn off "Scale follows native resolution of this layer" every time I add a layer.

Maybe this is a whole new issue, but is it possible to turn off this default "Scale follows native resolution of this layer"? I don't really see the reason for having this on by default.

Offline

#11 2019-04-12 10:14:50

GerdP
Member
Registered: 2015-12-18
Posts: 816

Re: JOSM zooms out when downloading new data

Peter Bremer wrote:

is it possible to turn off this default "Scale follows native resolution of this layer"?

Good question. Do you have an example where this option appears?

Offline

#12 2019-04-12 10:16:05

GerdP
Member
Registered: 2015-12-18
Posts: 816

Re: JOSM zooms out when downloading new data

Forget my question. I see it when I right click on the layer.

Offline

#13 2019-04-12 11:01:51

GerdP
Member
Registered: 2015-12-18
Posts: 816

Re: JOSM zooms out when downloading new data

Peter Bremer wrote:

I don't really see the reason for having this on by default.

See https://josm.openstreetmap.de/ticket/12350
I have to play with this to find out if it still makes sense...

Offline

#14 2019-04-19 16:19:58

GerdP
Member
Registered: 2015-12-18
Posts: 816

Re: JOSM zooms out when downloading new data

Did you try the new preference? If it works for you I'll add documentation to the wiki.

Offline

#15 2019-04-23 14:42:43

Peter Bremer
Member
Registered: 2015-06-30
Posts: 17

Re: JOSM zooms out when downloading new data

GerdP wrote:

Did you try the new preference?

Sorry, what new preference do you mean? Or do you mean the new zoom functionality? That works great, but I have to turn off "Scale follows native resolution of this layer" every time I add a layer, which I think is a weird requirement. (As well as that this option is difficult to find.)

GerdP wrote:
Peter Bremer wrote:

I don't really see the reason for having this on by default.

See https://josm.openstreetmap.de/ticket/12350
I have to play with this to find out if it still makes sense...

Reading that bug description ("Resizing uses nearest neighbour algorithm, resulting image is noisy"), I am wondering if they are talking about high-contrast graphic layers. When using aerial photos (which I normally use), there is no noise when the layer is resized, and this locking of the zoom to the layer resolution is of little use.

I am not able to find the "Snap zoom to Mercator zoom levels" setting described in the issue. I would really like a one-time setting where I can disable the locking of zoom to resolution.

Offline

#16 2019-04-23 19:38:05

GerdP
Member
Registered: 2015-12-18
Posts: 816

Re: JOSM zooms out when downloading new data

Offline

#17 2019-04-23 20:34:13

Peter Bremer
Member
Registered: 2015-06-30
Posts: 17

Re: JOSM zooms out when downloading new data

Ah, I understand :-) Downloaded 15017, and tested without and with changing the setting, and the settings sticks after restarting. Looks good!

Offline

Board footer

Powered by FluxBB