Set ol-zoom content in css using :before pseudo class

This commit is contained in:
Frederic Junod
2013-03-03 12:23:29 +01:00
parent 7d79a77052
commit 0fcc06b8ae
2 changed files with 9 additions and 2 deletions

View File

@@ -30,13 +30,13 @@ ol.control.Zoom = function(zoomOptions) {
var inElement = goog.dom.createDom(goog.dom.TagName.A, {
'href': '#zoomIn',
'class': 'ol-zoom-in'
}, '+');
});
goog.events.listen(inElement, eventType, this.handleIn_, false, this);
var outElement = goog.dom.createDom(goog.dom.TagName.A, {
'href': '#zoomOut',
'class': 'ol-zoom-out'
}, '\u2212');
});
goog.events.listen(outElement, eventType, this.handleOut_, false, this);
var element = goog.dom.createDom(