Ignore:
Timestamp:
2021-02-21T14:29:19+01:00 (3 years ago)
Author:
wiktorn
Message:

Add documentation for changes from [17495]

Reverse links in code, so when changes will be applied in zoomOffsets or
overloadTiles comments will direct developer to estimateTileCacheSize to update
the computation there.

See: #20014, #20497

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/AbstractTileSourceLayer.java

    r17504 r17507  
    652652         * accessed when looking for tiles outside current zoom level.
    653653         *
     654         * The value should be sum(2^x for x in (-5 to 2))
     655         *
    654656         * Currently we use otherZooms = {1, 2, -1, -2, -3, -4, -5}
    655657         *
     
    13181320         */
    13191321        private void overloadTiles() {
     1322            /**
     1323             * consult calculation in estimateTileCacheSize() before changing values here.
     1324             *
     1325             *  @see #estimateTileCacheSize()
     1326             */
    13201327            int overload = 1;
    13211328
     
    15841591        }
    15851592        if (getDisplaySettings().isAutoZoom()) {
     1593            /**
     1594             * consult calculation in estimateTileCacheSize() before changing values here.
     1595             *
     1596             *  @see #estimateTileCacheSize()
     1597             */
    15861598            int[] otherZooms = {1, 2, -1, -2, -3, -4, -5};
    15871599
Note: See TracChangeset for help on using the changeset viewer.