Using OpenLayers.Util.indexOf.

Thanks @jorix for catching this.
This commit is contained in:
ahocevar
2012-05-11 00:26:09 -06:00
committed by Tim Schaub
parent 9585341d9c
commit 40b4cc49e0
+1 -1
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);
},