Changeset 12630 in josm for trunk/src/org/openstreetmap/josm/gui/layer/AbstractTileSourceLayer.java
- Timestamp:
- 2017-08-24T00:15:51+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/AbstractTileSourceLayer.java
r12620 r12630 89 89 import org.openstreetmap.josm.data.projection.Projections; 90 90 import org.openstreetmap.josm.gui.ExtendedDialog; 91 import org.openstreetmap.josm.gui.MainApplication; 91 92 import org.openstreetmap.josm.gui.MapView; 92 93 import org.openstreetmap.josm.gui.NavigatableComponent.ZoomChangeListener; … … 261 262 262 263 protected void initTileSource(T tileSource) { 263 coordinateConverter = new TileCoordinateConverter(Main .map.mapView, tileSource, getDisplaySettings());264 coordinateConverter = new TileCoordinateConverter(MainApplication.getMap().mapView, tileSource, getDisplaySettings()); 264 265 attribution.initialize(tileSource); 265 266 … … 852 853 853 854 private TileSet getVisibleTileSet() { 854 ProjectionBounds bounds = Main .map.mapView.getState().getViewArea().getProjectionBounds();855 ProjectionBounds bounds = MainApplication.getMap().mapView.getState().getViewArea().getProjectionBounds(); 855 856 return getTileSet(bounds, currentZoomLevel); 856 857 } … … 987 988 drawImageInside(g, img, anchorImage, anchorScreen, null); 988 989 } 989 if (tile instanceof ReprojectionTile && ((ReprojectionTile) tile).needsUpdate(Main.map.mapView.getScale())) { 990 MapView mapView = MainApplication.getMap().mapView; 991 if (tile instanceof ReprojectionTile && ((ReprojectionTile) tile).needsUpdate(mapView.getScale())) { 990 992 // This means we have a reprojected tile in memory cache, but not at 991 993 // current scale. Generally, the positioning of the tile will still
Note:
See TracChangeset
for help on using the changeset viewer.