Merge pull request #244 from fredj/zoom-control

Zoom control
This commit is contained in:
Frédéric Junod
2013-03-03 04:37:44 -08:00
2 changed files with 10 additions and 7 deletions

View File

@@ -63,14 +63,17 @@
.ol-zoom a:hover {
background: rgba(0,60,136,0.7);
}
@media only screen and (max-width:600px) {
.ol-zoom a:hover {
background: rgba(0,60,136,0.5);
}
}
.ol-zoom-in {
border-radius: 2px 2px 0 0;
}
.ol-zoom-in:before {
content: "+";
}
.ol-zoom-out {
border-radius: 0 0 2px 2px;
}
.ol-zoom-out:before {
content: "\2212";
}

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(