Using OpenLayers.Util.indexOf.

Thanks @jorix for catching this.
This commit is contained in:
ahocevar
2012-04-26 11:47:40 -04:00
committed by Tim Schaub
parent 9585341d9c
commit 40b4cc49e0

View File

@@ -660,7 +660,7 @@ OpenLayers.Layer.Grid = OpenLayers.Class(OpenLayers.Layer.HTTPRequest, {
getServerZoom: function() {
var serverResolution = this.getServerResolution();
return this.serverResolutions ?
this.serverResolutions.indexOf(serverResolution) :
OpenLayers.Util.indexOf(this.serverResolutions, serverResolution) :
this.map.getZoomForResolution(serverResolution);
},