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, {
|
var button = goog.dom.createDom(goog.dom.TagName.BUTTON, {
|
||||||
'class': this.cssClassName_ + '-' + goog.dom.fullscreen.isFullScreen() +
|
'class': this.cssClassName_ + '-' + goog.dom.fullscreen.isFullScreen() +
|
||||||
' ol-has-tooltip'
|
' ol-has-tooltip',
|
||||||
|
'type': 'button'
|
||||||
});
|
});
|
||||||
goog.dom.appendChild(button, tip);
|
goog.dom.appendChild(button, tip);
|
||||||
var buttonHandler = new ol.pointer.PointerEventHandler(button);
|
var buttonHandler = new ol.pointer.PointerEventHandler(button);
|
||||||
|
|||||||
@@ -49,7 +49,6 @@ ol.control.Rotate = function(opt_options) {
|
|||||||
}, tipLabel);
|
}, tipLabel);
|
||||||
var button = goog.dom.createDom(goog.dom.TagName.BUTTON, {
|
var button = goog.dom.createDom(goog.dom.TagName.BUTTON, {
|
||||||
'class': className + '-reset ol-has-tooltip',
|
'class': className + '-reset ol-has-tooltip',
|
||||||
'name' : 'ResetRotation',
|
|
||||||
'type' : 'button'
|
'type' : 'button'
|
||||||
}, tip, this.label_);
|
}, tip, this.label_);
|
||||||
|
|
||||||
|
|||||||
@@ -39,7 +39,8 @@ ol.control.ZoomToExtent = function(opt_options) {
|
|||||||
'role' : 'tooltip'
|
'role' : 'tooltip'
|
||||||
}, tipLabel);
|
}, tipLabel);
|
||||||
var button = goog.dom.createDom(goog.dom.TagName.BUTTON, {
|
var button = goog.dom.createDom(goog.dom.TagName.BUTTON, {
|
||||||
'class': 'ol-has-tooltip'
|
'class': 'ol-has-tooltip',
|
||||||
|
'type': 'button'
|
||||||
});
|
});
|
||||||
goog.dom.appendChild(button, tip);
|
goog.dom.appendChild(button, tip);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user