Add label option to ZoomToExtent

This commit is contained in:
tsauerwein
2015-01-15 09:58:05 +01:00
parent c726cbfcd9
commit 0d26a9aa87
3 changed files with 12 additions and 4 deletions

View File

@@ -1409,6 +1409,7 @@ olx.control.ZoomSliderOptions.prototype.render;
/**
* @typedef {{className: (string|undefined),
* target: (Element|undefined),
* label: (string|undefined),
* tipLabel: (string|undefined),
* extent: (ol.Extent|undefined)}}
* @api stable
@@ -1432,6 +1433,14 @@ olx.control.ZoomToExtentOptions.prototype.className;
olx.control.ZoomToExtentOptions.prototype.target;
/**
* Text label to use for the button. Default is `E`
* @type {string|undefined}
* @api stable
*/
olx.control.ZoomToExtentOptions.prototype.label;
/**
* Text label to use for the button tip. Default is `Zoom to extent`
* @type {string|undefined}