Make zoomToExtent control use <button> instead of <a>
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user