Restore preventDefault call that shouldn’t have been removed

This commit is contained in:
Antoine Abt
2014-02-19 11:57:30 +01:00
parent 2a48197234
commit 30bc97755a
3 changed files with 3 additions and 0 deletions
+1
View File
@@ -65,6 +65,7 @@ goog.inherits(ol.control.ZoomToExtent, ol.control.Control);
* @private
*/
ol.control.ZoomToExtent.prototype.handleZoomToExtent_ = function(browserEvent) {
browserEvent.preventDefault();
// prevent #zoomExtent anchor from getting appended to the url
var map = this.getMap();
var view = map.getView();