Merge pull request #2809 from fredj/button-cleanup

Miscellaneous controls cleanups
This commit is contained in:
Frédéric Junod
2014-10-07 13:37:27 +02:00
3 changed files with 4 additions and 3 deletions

View File

@@ -46,7 +46,8 @@ ol.control.FullScreen = function(opt_options) {
var button = goog.dom.createDom(goog.dom.TagName.BUTTON, {
'class': this.cssClassName_ + '-' + goog.dom.fullscreen.isFullScreen() +
' ol-has-tooltip'
' ol-has-tooltip',
'type': 'button'
});
goog.dom.appendChild(button, tip);
var buttonHandler = new ol.pointer.PointerEventHandler(button);

View File

@@ -49,7 +49,6 @@ ol.control.Rotate = function(opt_options) {
}, tipLabel);
var button = goog.dom.createDom(goog.dom.TagName.BUTTON, {
'class': className + '-reset ol-has-tooltip',
'name' : 'ResetRotation',
'type' : 'button'
}, tip, this.label_);

View File

@@ -39,7 +39,8 @@ ol.control.ZoomToExtent = function(opt_options) {
'role' : 'tooltip'
}, tipLabel);
var button = goog.dom.createDom(goog.dom.TagName.BUTTON, {
'class': 'ol-has-tooltip'
'class': 'ol-has-tooltip',
'type': 'button'
});
goog.dom.appendChild(button, tip);