Add className option to ol.control.FullScreen

This commit is contained in:
Tom Payne
2013-05-07 16:17:35 +02:00
parent 8c396e5afb
commit f08814250e
2 changed files with 3 additions and 1 deletions

View File

@@ -122,6 +122,7 @@
/**
* @typedef {Object} ol.control.FullScreenOptions
* @property {string|undefined} className Class name.
* @property {boolean|undefined} keys Full keyboard access.
* @property {ol.Map|undefined} map Map.
* @property {Element|undefined} target Target.

View File

@@ -26,7 +26,8 @@ ol.control.FullScreen = function(opt_options) {
* @private
* @type {string}
*/
this.cssClassName_ = 'ol-full-screen';
this.cssClassName_ = goog.isDef(options.className) ?
options.className : 'ol-full-screen';
var aElement = goog.dom.createDom(goog.dom.TagName.A, {
'href': '#fullScreen',