From cb76ebd1f2b2eee9c4f46ee07bf2c3be8024b150 Mon Sep 17 00:00:00 2001 From: Jean-Marc Viglino Date: Sun, 13 Nov 2016 17:33:06 +0100 Subject: [PATCH] [UPD] Controlbar / subbar --- control/buttoncontrol.js | 15 +++++++-- control/controlbar.css | 21 +++++++++++++ control/controlbar.js | 66 ++++++++++++++++++---------------------- control/togglecontrol.js | 62 +++++++++++++++++++++++++------------ 4 files changed, 105 insertions(+), 59 deletions(-) diff --git a/control/buttoncontrol.js b/control/buttoncontrol.js index 24da8730..af01f40b 100644 --- a/control/buttoncontrol.js +++ b/control/buttoncontrol.js @@ -2,7 +2,7 @@ released under the CeCILL-B license (French BSD license) (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt). */ -/** A simple button control +/** A simple push button control * * @constructor * @extends {ol.control.Control} @@ -14,7 +14,7 @@ */ ol.control.Button = function(options) { options = options || {}; - var element = $("
").addClass(options.className + ' ol-button ol-unselectable ol-control'); + var element = $("
").addClass((options.className||"") + ' ol-button ol-unselectable ol-control'); var self = this; $("