Changeset 12630 in josm for trunk/src/org/openstreetmap/josm/gui/layer/WMTSLayer.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/WMTSLayer.java
r12620 r12630 14 14 import org.openstreetmap.josm.data.imagery.WMTSTileSource; 15 15 import org.openstreetmap.josm.data.projection.Projection; 16 import org.openstreetmap.josm.gui.MainApplication; 16 17 import org.openstreetmap.josm.gui.layer.imagery.TileSourceDisplaySettings; 17 18 import org.openstreetmap.josm.tools.Logging; … … 71 72 @Override 72 73 public int getBestZoom() { 73 if (!Main .isDisplayingMapView())74 if (!MainApplication.isDisplayingMapView()) 74 75 return 0; 75 76 ScaleList scaleList = getNativeScales(); … … 77 78 return getMaxZoomLvl(); 78 79 } 79 double displayScale = Main .map.mapView.getScale();80 double displayScale = MainApplication.getMap().mapView.getScale(); 80 81 if (coordinateConverter.requiresReprojection()) { 81 82 displayScale *= Main.getProjection().getMetersPerUnit();
Note:
See TracChangeset
for help on using the changeset viewer.