Changeset 11958 in josm


Ignore:
Timestamp:
2017-04-19T16:10:04+02:00 (8 years ago)
Author:
bastiK
Message:

see #7427 - clear memory cache on projection change

Location:
trunk/src/org/openstreetmap/josm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/cache/JCSCachedTileLoaderJob.java

    r11893 r11958  
    318318            }
    319319
     320            LOG.log(Level.FINE, "JCS - starting HttpClient GET request for URL: {0}", getUrl());
    320321            final HttpClient request = getRequest("GET", true);
    321322
  • trunk/src/org/openstreetmap/josm/gui/layer/AbstractTileSourceLayer.java

    r11956 r11958  
    8888import org.openstreetmap.josm.data.projection.Projections;
    8989import org.openstreetmap.josm.gui.ExtendedDialog;
    90 import org.openstreetmap.josm.gui.MapFrame;
    9190import org.openstreetmap.josm.gui.MapView;
    9291import org.openstreetmap.josm.gui.NavigatableComponent.ZoomChangeListener;
     
    18521851        }
    18531852    }
     1853
     1854    @Override
     1855    public void projectionChanged(Projection oldValue, Projection newValue) {
     1856        super.projectionChanged(oldValue, newValue);
     1857        if (tileCache != null) {
     1858            tileCache.clear();
     1859        }
     1860    }
    18541861}
Note: See TracChangeset for help on using the changeset viewer.