Make zoomToExtent control use <button> instead of <a>

This commit is contained in:
Antoine Abt
2014-02-19 09:27:20 +01:00
parent b6052320ad
commit b3abc166a4
4 changed files with 30 additions and 19 deletions
-1
View File
@@ -97,7 +97,6 @@ goog.inherits(ol.control.Zoom, ol.control.Control);
*/
ol.control.Zoom.prototype.zoomByDelta_ = function(delta, browserEvent) {
// prevent the anchor from getting appended to the url
browserEvent.preventDefault();
var map = this.getMap();
// FIXME works for View2D only
var view = map.getView();