Ticket #2735: wmsplugin-denanny.patch

File wmsplugin-denanny.patch, 766 bytes (added by avarab@…, 17 years ago)

Patch to WMSLayer.java for adding the wmsplugin.maxarea-error.ignore preference option

  • src/wmsplugin/WMSLayer.java

     
    165165        int bmaxx= (int)Math.ceil  ((bounds().max.lat() * pixelPerDegree ) / ImageSize );
    166166        int bmaxy= (int)Math.ceil  ((bounds().max.lon() * pixelPerDegree ) / ImageSize );
    167167
    168         if((bmaxx - bminx > dax) || (bmaxy - bminy > day)){
     168        if(((bmaxx - bminx > dax) || (bmaxy - bminy > day)) && !Main.pref.getBoolean("wmsplugin.maxarea-error.ignore", false)){
    169169            JOptionPane.showMessageDialog(Main.parent, tr("The requested area is too big. Please zoom in a little, or change resolution"));
    170170            return;
    171171        }