Add experimental controls infrastructure, thanks @elemoine
This commit is contained in:
35
src/ol/mapevent.js
Normal file
35
src/ol/mapevent.js
Normal file
@@ -0,0 +1,35 @@
|
||||
goog.provide('ol.MapEvent');
|
||||
|
||||
goog.require('goog.events.Event');
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @extends {goog.events.Event}
|
||||
* @param {string} type Event type.
|
||||
* @param {ol.Map} map Map.
|
||||
*/
|
||||
ol.MapEvent = function(type, map) {
|
||||
|
||||
goog.base(this, type);
|
||||
|
||||
/**
|
||||
* @type {ol.Map}
|
||||
*/
|
||||
this.map = map;
|
||||
|
||||
/**
|
||||
* @type {boolean}
|
||||
*/
|
||||
this.defaultPrevented = false;
|
||||
|
||||
};
|
||||
goog.inherits(ol.MapEvent, goog.events.Event);
|
||||
|
||||
|
||||
/**
|
||||
*/
|
||||
ol.MapEvent.prototype.preventDefault = function() {
|
||||
this.defaultPrevented = true;
|
||||
};
|
||||
Reference in New Issue
Block a user