Navigation control with Drag sequence Dragger

This is totally unfinished, but tests pass, and it is only meant to give the map a Navigation control.
This commit is contained in:
ahocevar
2012-06-21 14:08:30 +02:00
parent 8fc1e9cc98
commit 6213e07f96
9 changed files with 198 additions and 97 deletions

View File

@@ -1,7 +1,24 @@
goog.provide('ol.control');
goog.provide('ol.control.Control');
goog.require('ol.Map');
/**
* @type {Object}
* @private
*/
ol.control.registry_ = {};
/**
* @param {Function} Control
* @param {string} id
*/
ol.control.register = function(Control, id) {
ol.control.registry_[id] = Control;
};
ol.control.fromRegistry = function(id) {
return ol.control.registry_[id];
};
/**
* @constructor