Changeset 21021 in osm for applications/editors/josm/plugins/slippymap
- Timestamp:
- 2010-04-29T17:15:09+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/slippymap/src/org/openstreetmap/josm/plugins/slippymap/SlippyMapLayer.java
r19070 r21021 802 802 } 803 803 804 boolean az_disable = false; 804 805 boolean autoZoomEnabled() 805 806 { 807 if (az_disable) 808 return false; 806 809 return autoZoomPopup.isSelected(); 807 810 } … … 852 855 out("too zoomed in, (" + ts.tilesSpanned() 853 856 + "), increasing zoom from " + currentZoomLevel); 857 // This is a hack. ts.tooSmall() is proabably a bad thing, and this works 858 // around it. If we have a very small window, the tileSet may be well 859 // less than 1 real tile wide, but that's expected. But, this sees the 860 // tile set as too small and zooms in. The code below that checks for 861 // pixel stretching disagrees and tries to zoom out. Both calls recurse, 862 // hillarity ensues, and the stack overflows. 863 // 864 // This really needs to get fixed properly. We probably shouldn't even 865 // have the tooSmall() check on tileSets. But, this also helps the zoom 866 // converge to the correct place much faster. 867 boolean tmp = az_disable; 868 az_disable = true; 854 869 if (increaseZoomLevel()) 855 870 this.paint(oldg, mv, bounds); 871 az_disable = tmp; 856 872 return; 857 873 }
Note:
See TracChangeset
for help on using the changeset viewer.