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

@@ -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',