[OpenLayers-Users] Possible bug in layer.js version OpenLayers-2.5-rc3

Linda Rawson linda.rawson at gmail.com
Wed Oct 31 20:04:06 EDT 2007


 I had to make the following change in layer.js to accomodate my boxes
showing up a higher resolution.  It does not seem to pick up the minimum
resolution.

calculateInRange: function() {
        var inRange = false;
        if (this.map) {
            var resolution = this.map.getResolution();
            if (this.minResolution >= 0.00004291534423828125) {
                this.minResolution = 0.0000107288360595703125;
            }
            inRange = ( (resolution >= this.minResolution) &&
                        (resolution <= this.maxResolution) );
        }
        return inRange;
    },

Thanks,

Linda
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20071031/67bf8606/attachment.html


More information about the Users mailing list