Merge pull request #2809 from fredj/button-cleanup
Miscellaneous controls cleanups
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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_);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user