fix for r1478, #190 - need to specify a sort method. thanks to http://www.javascriptkit.com/javatutors/arraysort3.shtml
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1527 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -322,6 +322,10 @@ OpenLayers.Layer.prototype = {
|
|||||||
this.resolutions.push(this.maxResolution / Math.pow(2, i));
|
this.resolutions.push(this.maxResolution / Math.pow(2, i));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.resolutions.sort( function ascend(a,b) {
|
||||||
|
return(b-a);
|
||||||
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user