- Timestamp:
- 2014-01-31T14:44:15+01:00 (11 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/bbox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/bbox/SlippyMapBBoxChooser.java
r6785 r6793 26 26 import org.openstreetmap.gui.jmapviewer.MapMarkerDot; 27 27 import org.openstreetmap.gui.jmapviewer.MemoryTileCache; 28 import org.openstreetmap.gui.jmapviewer.OsmMercator;29 28 import org.openstreetmap.gui.jmapviewer.OsmTileLoader; 30 29 import org.openstreetmap.gui.jmapviewer.interfaces.MapMarker; … … 329 328 } 330 329 331 int y1 = OsmMercator.LatToY(bbox.getMinLat(), MAX_ZOOM);332 int y2 = OsmMercator.LatToY(bbox.getMaxLat(), MAX_ZOOM);333 int x1 = OsmMercator.LonToX(minLon, MAX_ZOOM);334 int x2 = OsmMercator.LonToX(maxLon, MAX_ZOOM);330 int y1 = tileSource.LatToY(bbox.getMinLat(), MAX_ZOOM); 331 int y2 = tileSource.LatToY(bbox.getMaxLat(), MAX_ZOOM); 332 int x1 = tileSource.LonToX(minLon, MAX_ZOOM); 333 int x2 = tileSource.LonToX(maxLon, MAX_ZOOM); 335 334 336 335 iSelectionRectStart = new Point(Math.min(x1, x2), Math.min(y1, y2)); -
trunk/src/org/openstreetmap/josm/gui/bbox/TileSelectionBBoxChooser.java
r6643 r6793 42 42 import org.openstreetmap.gui.jmapviewer.JMapViewer; 43 43 import org.openstreetmap.gui.jmapviewer.MapMarkerDot; 44 import org.openstreetmap.gui.jmapviewer.OsmMercator;45 44 import org.openstreetmap.gui.jmapviewer.OsmTileLoader; 46 45 import org.openstreetmap.gui.jmapviewer.interfaces.MapMarker; … … 681 680 max = null; 682 681 } else { 683 int y1 = OsmMercator.LatToY(bbox.getMinLat(), MAX_ZOOM);684 int y2 = OsmMercator.LatToY(bbox.getMaxLat(), MAX_ZOOM);685 int x1 = OsmMercator.LonToX(bbox.getMinLon(), MAX_ZOOM);686 int x2 = OsmMercator.LonToX(bbox.getMaxLon(), MAX_ZOOM);682 int y1 = tileSource.LatToY(bbox.getMinLat(), MAX_ZOOM); 683 int y2 = tileSource.LatToY(bbox.getMaxLat(), MAX_ZOOM); 684 int x1 = tileSource.LonToX(bbox.getMinLon(), MAX_ZOOM); 685 int x2 = tileSource.LonToX(bbox.getMaxLon(), MAX_ZOOM); 687 686 688 687 min = new Point(Math.min(x1, x2), Math.min(y1, y2));
Note:
See TracChangeset
for help on using the changeset viewer.