Changeset 10155 in josm


Ignore:
Timestamp:
2016-04-25T20:00:33+02:00 (4 years ago)
Author:
wiktorn
Message:

Temporary fix for #12681.

Check, from which side we are approaching 180 meridian and use min/max X tile as index.

During planned rollback of [9558] this change should be also removed

See: #12681

File:
1 edited

Legend:

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

    r10142 r10155  
    12231223            x1 = t2.getXIndex();
    12241224            y1 = t2.getYIndex();
     1225            double centerLon = Main.getProjection().eastNorth2latlon(Main.map.mapView.getCenter()).lon();
     1226
     1227            if (topLeft.lon() > centerLon) {
     1228                x0 = tileSource.getTileXMin(zoom);
     1229            }
     1230            if (botRight.lon() < centerLon) {
     1231                x1 = tileSource.getTileXMax(zoom);
     1232            }
    12251233
    12261234            if (x0 > x1) {
Note: See TracChangeset for help on using the changeset viewer.