Opened 4 years ago
Closed 4 years ago
#3373 closed defect (fixed)
[PATCH] SlippyMap: Max zoom level gets set to negative values
| Reported by: | podolsir | Owned by: | team |
|---|---|---|---|
| Priority: | normal | 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)
Change History (5)
Changed 4 years ago by podolsir
comment:1 Changed 4 years ago by podolsir
- Summary changed from SlippyMap: Max zoom level gets set to negative values to [PATCH] SlippyMap: Max zoom level gets set to negative values
comment:2 Changed 4 years ago by podolsir
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 Changed 4 years ago by stoecker
Ticket #2986 has been marked as a duplicate of this ticket.
comment:4 Changed 4 years ago by Gubaer
- Resolution set to fixed
- Status changed from new to closed



Minimal patch to fix this problem