Improve documentation of getGetLegendGraphicUrl
This also adresses one review comment by @jahow on #9762.
This commit is contained in:
@@ -192,11 +192,13 @@ class ImageWMS extends ImageSource {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the GetLegendGraphic URL for the passed resolution.
|
* Return the GetLegendGraphic URL, optionally optimized for the passed
|
||||||
* Return `undefined` if the GetLegendGraphic URL cannot be constructed.
|
* resolution and possibly including any passed specific parameters. Returns
|
||||||
* @param {!number} resolution Resolution. If set to undefined `SCALE`
|
* `undefined` if the GetLegendGraphic URL cannot be constructed.
|
||||||
* will not be calculated.
|
*
|
||||||
* @param {!Object} params GetLegendGraphic params. Default `FORMAT` is
|
* @param {number} [resolution] Resolution. If set to undefined, `SCALE`
|
||||||
|
* will not be calculated and included in URL.
|
||||||
|
* @param {Object} [params] GetLegendGraphic params. Default `FORMAT` is
|
||||||
* `image/png`. `VERSION` should not be specified here.
|
* `image/png`. `VERSION` should not be specified here.
|
||||||
* @return {string|undefined} GetLegendGraphic URL.
|
* @return {string|undefined} GetLegendGraphic URL.
|
||||||
* @api
|
* @api
|
||||||
|
|||||||
@@ -212,11 +212,13 @@ class TileWMS extends TileImage {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the GetLegendGraphic URL for the passed resolution.
|
* Return the GetLegendGraphic URL, optionally optimized for the passed
|
||||||
* Return `undefined` if the GetLegendGraphic URL cannot be constructed.
|
* resolution and possibly including any passed specific parameters. Returns
|
||||||
* @param {!number} resolution Resolution. If set to undefined `SCALE`
|
* `undefined` if the GetLegendGraphic URL cannot be constructed.
|
||||||
* will not be calculated.
|
*
|
||||||
* @param {!Object} params GetLegendGraphic params. Default `FORMAT` is
|
* @param {number} [resolution] Resolution. If set to undefined, `SCALE`
|
||||||
|
* will not be calculated and included in URL.
|
||||||
|
* @param {Object} [params] GetLegendGraphic params. Default `FORMAT` is
|
||||||
* `image/png`. `VERSION` should not be specified here.
|
* `image/png`. `VERSION` should not be specified here.
|
||||||
* @return {string|undefined} GetLegendGraphic URL.
|
* @return {string|undefined} GetLegendGraphic URL.
|
||||||
* @api
|
* @api
|
||||||
|
|||||||
Reference in New Issue
Block a user