Using OpenLayers.Util.indexOf.
Thanks @jorix for catching this.
This commit is contained in:
@@ -660,7 +660,7 @@ OpenLayers.Layer.Grid = OpenLayers.Class(OpenLayers.Layer.HTTPRequest, {
|
|||||||
getServerZoom: function() {
|
getServerZoom: function() {
|
||||||
var serverResolution = this.getServerResolution();
|
var serverResolution = this.getServerResolution();
|
||||||
return this.serverResolutions ?
|
return this.serverResolutions ?
|
||||||
this.serverResolutions.indexOf(serverResolution) :
|
OpenLayers.Util.indexOf(this.serverResolutions, serverResolution) :
|
||||||
this.map.getZoomForResolution(serverResolution);
|
this.map.getZoomForResolution(serverResolution);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user