better comments for Layer.Grid.getServerResolution, no functional change
This commit is contained in:
@@ -291,15 +291,15 @@ OpenLayers.Layer.Grid = OpenLayers.Class(OpenLayers.Layer.HTTPRequest, {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Method: getServerResolution
|
* Method: getServerResolution
|
||||||
* Return the server-supported resolution that is the closest to
|
* Return the closest highest server-supported resolution. Throw an
|
||||||
* the resolution passed as a parameter. If no resolution is
|
* exception if none is found in the serverResolutions array.
|
||||||
* passed the map resolution is used.
|
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* resolution - {Number} The base resolution.
|
* resolution - {Number} The base resolution. If undefined the
|
||||||
|
* map resolution is used.
|
||||||
*
|
*
|
||||||
* Returns:
|
* Returns:
|
||||||
* {Number} The closest server supported resolution.
|
* {Number} The closest highest server resolution value.
|
||||||
*/
|
*/
|
||||||
getServerResolution: function(resolution) {
|
getServerResolution: function(resolution) {
|
||||||
resolution = resolution || this.map.getResolution();
|
resolution = resolution || this.map.getResolution();
|
||||||
|
|||||||
Reference in New Issue
Block a user