Changeset 8444 in josm for trunk/src/org/openstreetmap/josm/gui/layer/WMSLayer.java
- Timestamp:
- 2015-06-02T16:41:37+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/WMSLayer.java
r8419 r8444 105 105 // these values correspond to the zoom levels used throughout OSM and are in meters/pixel from zoom level 0 to 18. 106 106 // taken from http://wiki.openstreetmap.org/wiki/Zoom_levels 107 private static final Double[] snapLevels = { 108 2444.0, 1222.0, 610.984, 305.492, 152.746, 76.373, 38.187, 19.093, 9.547, 4.773, 2.387, 1.193, 0.596 107 private static final Double[] snapLevels = {156412.0, 78206.0, 39103.0, 19551.0, 9776.0, 4888.0, 108 2444.0, 1222.0, 610.984, 305.492, 152.746, 76.373, 38.187, 19.093, 9.547, 4.773, 2.387, 1.193, 0.596}; 109 109 110 110 public static final BooleanProperty PROP_ALPHA_CHANNEL = new BooleanProperty("imagery.wms.alpha_channel", true); … … 369 369 370 370 public int getImageXIndex(double coord) { 371 return (int)Math.floor( 371 return (int)Math.floor(((coord - dx) * info.getPixelPerDegree()) / imageSize); 372 372 } 373 373 374 374 public int getImageYIndex(double coord) { 375 return (int)Math.floor( 375 return (int)Math.floor(((coord - dy) * info.getPixelPerDegree()) / imageSize); 376 376 } 377 377 … … 573 573 } 574 574 575 if ( 575 if (priority == -1 576 576 || finishedRequests.contains(item) 577 577 || processingRequests.contains(item)) {
Note:
See TracChangeset
for help on using the changeset viewer.