Temporarily removing Drag sequence.
This commit is contained in:
@@ -3,7 +3,6 @@ goog.require('ol.bounds');
|
|||||||
goog.require('ol.control.Control');
|
goog.require('ol.control.Control');
|
||||||
goog.require('ol.control.Navigation');
|
goog.require('ol.control.Navigation');
|
||||||
goog.require('ol.event');
|
goog.require('ol.event');
|
||||||
goog.require('ol.event.Drag');
|
|
||||||
goog.require('ol.event.Events');
|
goog.require('ol.event.Events');
|
||||||
goog.require('ol.event.Sequence');
|
goog.require('ol.event.Sequence');
|
||||||
goog.require("ol.map");
|
goog.require("ol.map");
|
||||||
|
|||||||
+4
-5
@@ -4,7 +4,6 @@ goog.require('ol.Loc');
|
|||||||
goog.require('ol.Projection');
|
goog.require('ol.Projection');
|
||||||
goog.require('ol.event');
|
goog.require('ol.event');
|
||||||
goog.require('ol.event.Events');
|
goog.require('ol.event.Events');
|
||||||
goog.require('ol.event.Drag');
|
|
||||||
goog.require('ol.control.Control');
|
goog.require('ol.control.Control');
|
||||||
|
|
||||||
|
|
||||||
@@ -79,9 +78,7 @@ ol.Map = function() {
|
|||||||
* @private
|
* @private
|
||||||
* @type {ol.event.Events}
|
* @type {ol.event.Events}
|
||||||
*/
|
*/
|
||||||
this.events_ = new ol.event.Events(
|
this.events_ = new ol.event.Events(this);
|
||||||
this, undefined, true, [new ol.event.Drag()]
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
@@ -89,6 +86,8 @@ ol.Map = function() {
|
|||||||
*/
|
*/
|
||||||
this.container_ = null;
|
this.container_ = null;
|
||||||
|
|
||||||
|
this.setControls(ol.Map.DEFAULT_CONTROLS);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -115,7 +114,7 @@ ol.Map.DEFAULT_TILE_SIZE = 256;
|
|||||||
@const
|
@const
|
||||||
@type {Array.<string>}
|
@type {Array.<string>}
|
||||||
*/
|
*/
|
||||||
ol.Map.DEFAULT_CONTROLS = ["Navigation", "Zoom"];
|
ol.Map.DEFAULT_CONTROLS = ["Navigation"];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return {ol.Loc} Location.
|
* @return {ol.Loc} Location.
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ goog.require('goog.events.EventType');
|
|||||||
goog.require('goog.events.EventTarget');
|
goog.require('goog.events.EventTarget');
|
||||||
goog.require('goog.events.Listener');
|
goog.require('goog.events.Listener');
|
||||||
goog.require('goog.style');
|
goog.require('goog.style');
|
||||||
|
goog.require('goog.fx.Dragger');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Determine whether event was caused by a single touch
|
* Determine whether event was caused by a single touch
|
||||||
|
|||||||
@@ -125,9 +125,7 @@ describe("ol.event.Events", function() {
|
|||||||
|
|
||||||
it("can map browser events to sequences", function() {
|
it("can map browser events to sequences", function() {
|
||||||
var element = document.createElement("div"),
|
var element = document.createElement("div"),
|
||||||
events = new ol.event.Events(
|
events = new ol.event.Events("foo", element),
|
||||||
"foo", element, false, [new ol.event.Drag()]
|
|
||||||
),
|
|
||||||
mockEvt;
|
mockEvt;
|
||||||
|
|
||||||
// mock dom object
|
// mock dom object
|
||||||
|
|||||||
Reference in New Issue
Block a user