Modify

Opened 15 years ago

Closed 15 years ago

#3373 closed defect (fixed)

[PATCH] SlippyMap: Max zoom level gets set to negative values

Reported by: podolsir Owned by: team
Priority: normal Milestone:
Component: Plugin Version: latest
Keywords: Cc:

Description

On a fresh install of JOSM latest with SlippyMap (r16805 or SVN trunk) plugin, the slippy map layer doesn't show the map but only grey tiles with the message "image pending download". The max zoom level setting gets reset to negative values after activation of the slippy map; the value gets lower with time.

The cause seems to be in SlippyMapPreferences class in the getMinZoomLvlMethod with should set min_zoom_level to (max_zoom_level - 4) in case the slippymap.min_zoom_level preference is not set. Probably by virtue of a typo, the method sets the slippy_map.max_zoom_level property so min_zoom_level never gets set and the max zoom level value becomes negative (and invalid).

Attachments (1)

slippymap_min_zoom_level.patch (644 bytes ) - added by podolsir 15 years ago.
Minimal patch to fix this problem

Download all attachments as: .zip

Change History (5)

by podolsir, 15 years ago

Minimal patch to fix this problem

comment:1 by podolsir, 15 years ago

Summary: SlippyMap: Max zoom level gets set to negative values[PATCH] SlippyMap: Max zoom level gets set to negative values

comment:2 by podolsir, 15 years ago

This seems to be related, if not even duplicate, with ticket #2986. Sorry for creating a new one, I missed that yesterday somehow...

comment:3 by stoecker, 15 years ago

Ticket #2986 has been marked as a duplicate of this ticket.

comment:4 by Gubaer, 15 years ago

Resolution: fixed
Status: newclosed

fixed in [o17433] (plugin is [o17434]

Modify Ticket

Change Properties
Set your email in Preferences
Action
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.