@@ -10,7 +10,7 @@ class LayerLegend {
1010 /**
1111 * Instantiates a layer legend object with the legend options configured
1212 * in the application context.
13- * @param {Object } options Application wide legend options.
13+ * @param {Object } [ options] Optional application wide legend options.
1414 */
1515 constructor ( options ) {
1616 this . options = options ;
@@ -19,7 +19,7 @@ class LayerLegend {
1919 /**
2020 * Merges the given legend options with the legend options configured
2121 * in the application context. The provided options will take precedence.
22- * @param {Object } options Optional configuration params.
22+ * @param {Object } [ options] Optional configuration params.
2323 * @returns {Object } Merged configuration params.
2424 */
2525 getOptions ( options ) {
@@ -33,8 +33,8 @@ class LayerLegend {
3333 * Returns a URL to the layers legend image.
3434 * @param {ol.Layer } layer The layer to produce the legend for.
3535 * @param {Number } resolution Resolution of the legend image.
36- * @param {Object } options Optional configuration params.
37- * @param {String } formatUrl A custom format URL.
36+ * @param {Object } [ options] Optional configuration params.
37+ * @param {String } [ formatUrl] An optional custom format URL.
3838 * @returns {String } Legend URL or undefined if no legend can be produced.
3939 */
4040 getUrl ( layer , resolution , options , formatUrl ) {
@@ -69,7 +69,7 @@ const CustomLegend = {
6969 * This replaces the parameter placeholders in formatUrl.
7070 * @param {ol.Source } source The source to produce the legend for.
7171 * @param {Number } resolution Resolution of the legend image.
72- * @param {Object } options Optional configuration params.
72+ * @param {Object } [ options] Optional configuration params.
7373 * @param {String } formatUrl A custom format URL.
7474 * @returns {String } The legend URL.
7575 */
@@ -99,7 +99,7 @@ const WMSSourceLegend = {
9999 * Returns a URL to the legend image.
100100 * @param {ol.Source } source The source to produce the legend for.
101101 * @param {Number } resolution Resolution of the legend image.
102- * @param {Object } options Optional configuration params.
102+ * @param {Object } [ options] Optional configuration params.
103103 * @returns {String } The legend URL.
104104 */
105105 getUrl ( source , resolution , options ) {
0 commit comments