Changes between Version 1 and Version 2 of Ticket #18064


Ignore:
Timestamp:
2019-08-23T22:22:50+02:00 (22 months ago)
Author:
Don-vip
Comment:

@wiktorn can you please take a look?

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #18064

    • Property Cc wiktorn added
  • Ticket #18064 – Description

    v1 v2  
    1 When adding a TMS layer without specifying the maximum zoom level (for example, via the remotecontrol from OpenAerialMap "Open in JOSM"), it is limited to the default level of 21, despite the fact that the settings for TMS in preferences are set to a higher value.
     1When adding a TMS layer without specifying the maximum zoom level (for example, via the remotec ontrol from OpenAerialMap "Open in JOSM"), it is limited to the default level of 21, despite the fact that the settings for TMS in preferences are set to a higher value.
    22
    3 This limitation is obtained in the AbstractTileSourceLayer.checkMaxZoomLvl() method when comparing the zoom with the return value from the ts.getMaxZoom () method:
    4 
     3This limitation is obtained in the `AbstractTileSourceLayer.checkMaxZoomLvl()` method when comparing the zoom with the return value from the `ts.getMaxZoom()` method:
    54
    65{{{
     6#!java
    77if (ts != null && ts.getMaxZoom() != 0 && ts.getMaxZoom() < maxZoomLvl) {
    88   maxZoomLvl = ts.getMaxZoom();
     
    1010}}}
    1111
    12 which ends for the TMS layer in the AbstractTMSTileSource.getMaxZoom() method, which returns a hardcoded value of 21.
     12which ends for the TMS layer in the `AbstractTMSTileSource.getMaxZoom()` method, which returns a hardcoded value of 21.
    1313
    1414As workaround you can ether always specify max zoom level in url templates, ether use other layer types (if possible). However, this is inconvenient in some situations (in particular, OAM "Open in JOSM" didn't pass max zoom level to remotecontrol), so it would be much better if the default maximum zoom was taken from the settings and was not hardcoded.
    15