remove the navigation control and the event target hierarchy

This commit is contained in:
Éric Lemoine
2012-07-11 17:38:18 +02:00
parent ae5cdc75b4
commit 38f946d944
2 changed files with 1 additions and 93 deletions
+1 -8
View File
@@ -115,13 +115,6 @@ ol.Map = function() {
* @type {Element}
*/
this.container_ = null;
// Create an EventTarget and set it as the map's parent EventTarget. With
// this we can have two groups of listeners: "map listeners" and "map
// parent listeners". And map listeners can stop event propagation, and
// thereby prevent map parent listeners from receiving events.
this.setParentEventTarget(new goog.events.EventTarget());
};
goog.inherits(ol.Map, goog.events.EventTarget);
@@ -149,7 +142,7 @@ ol.Map.DEFAULT_TILE_SIZE = 256;
@const
@type {Array.<string>}
*/
ol.Map.DEFAULT_CONTROLS = ["attribution", "navigation", "zoom"];
ol.Map.DEFAULT_CONTROLS = ["attribution", "zoom"];
/**
* @return {ol.Loc} Map center in map projection.