DragBox control provides visual shiftdragzoom feedback
Adding a new DragBox control and using it in the shiftdragzoom interaction to provide visual feedback of the zoom box. The control is nicely separated from the interaction - it only draws the box and does not perform any action.
This commit is contained in:
@@ -1,15 +1,19 @@
|
||||
goog.provide('ol.control.Control');
|
||||
|
||||
goog.require('goog.Disposable');
|
||||
goog.require('ol.Map');
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @extends {goog.Disposable}
|
||||
* @param {ol.Map} map Map.
|
||||
*/
|
||||
ol.control.Control = function(map) {
|
||||
|
||||
goog.base(this);
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @type {ol.Map}
|
||||
@@ -17,6 +21,7 @@ ol.control.Control = function(map) {
|
||||
this.map_ = map;
|
||||
|
||||
};
|
||||
goog.inherits(ol.control.Control, goog.Disposable);
|
||||
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user