diff --git a/lib/OpenLayers/Layer/Grid.js b/lib/OpenLayers/Layer/Grid.js index 28fbb1a39f..33e6931eb4 100644 --- a/lib/OpenLayers/Layer/Grid.js +++ b/lib/OpenLayers/Layer/Grid.js @@ -229,11 +229,8 @@ OpenLayers.Layer.Grid = OpenLayers.Class(OpenLayers.Layer.HTTPRequest, { }, /** - * APIMethod: getTileBounds - * Returns The tile bounds for a layer given a pixel location. - * - * Parameters: - * viewPortPx - {} The location in the viewport. + * APIMethod: getTilesBounds + * Return the bounds of the tile grid. * * Returns: * {} A Bounds object representing the bounds of all the @@ -678,10 +675,13 @@ OpenLayers.Layer.Grid = OpenLayers.Class(OpenLayers.Layer.HTTPRequest, { /** * APIMethod: getTileBounds - * Returns The tile bounds for a layer given a pixel location + * Returns The tile bounds for a layer given a pixel location. * - * Parameters: - * viewPortPx - {OpenLayers.Pixel} The location in the viewport + * Parameters: + * viewPortPx - {} The location in the viewport. + * + * Returns: + * {} Bounds of the tile at the given pixel location. */ getTileBounds: function(viewPortPx) { var maxExtent = this.map.getMaxExtent();