ol.render.DragBox renamed to ol.render.Box
This commit is contained in:
committed by
Antoine Abt
parent
e789d9a6fe
commit
0b6e1e91c0
@@ -1,6 +1,6 @@
|
|||||||
// FIXME add rotation
|
// FIXME add rotation
|
||||||
|
|
||||||
goog.provide('ol.render.DragBox');
|
goog.provide('ol.render.Box');
|
||||||
|
|
||||||
goog.require('goog.Disposable');
|
goog.require('goog.Disposable');
|
||||||
goog.require('goog.events');
|
goog.require('goog.events');
|
||||||
@@ -16,7 +16,7 @@ goog.require('ol.style.Style');
|
|||||||
* @extends {goog.Disposable}
|
* @extends {goog.Disposable}
|
||||||
* @param {ol.style.Style=} opt_style Style.
|
* @param {ol.style.Style=} opt_style Style.
|
||||||
*/
|
*/
|
||||||
ol.render.DragBox = function(opt_style) {
|
ol.render.Box = function(opt_style) {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
@@ -57,13 +57,13 @@ ol.render.DragBox = function(opt_style) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
};
|
};
|
||||||
goog.inherits(ol.render.DragBox, goog.Disposable);
|
goog.inherits(ol.render.Box, goog.Disposable);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @inheritDoc
|
* @inheritDoc
|
||||||
*/
|
*/
|
||||||
ol.render.DragBox.prototype.disposeInternal = function() {
|
ol.render.Box.prototype.disposeInternal = function() {
|
||||||
this.setMap(null);
|
this.setMap(null);
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -72,7 +72,7 @@ ol.render.DragBox.prototype.disposeInternal = function() {
|
|||||||
* @param {ol.render.Event} event Event.
|
* @param {ol.render.Event} event Event.
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.render.DragBox.prototype.handleMapPostCompose_ = function(event) {
|
ol.render.Box.prototype.handleMapPostCompose_ = function(event) {
|
||||||
var render = event.getRender();
|
var render = event.getRender();
|
||||||
var startCoordinate = this.startCoordinate_;
|
var startCoordinate = this.startCoordinate_;
|
||||||
var endCoordinate = this.endCoordinate_;
|
var endCoordinate = this.endCoordinate_;
|
||||||
@@ -104,7 +104,7 @@ ol.render.DragBox.prototype.handleMapPostCompose_ = function(event) {
|
|||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.render.DragBox.prototype.requestMapRenderFrame_ = function() {
|
ol.render.Box.prototype.requestMapRenderFrame_ = function() {
|
||||||
if (!goog.isNull(this.map_) &&
|
if (!goog.isNull(this.map_) &&
|
||||||
!goog.isNull(this.startCoordinate_) &&
|
!goog.isNull(this.startCoordinate_) &&
|
||||||
!goog.isNull(this.endCoordinate_)) {
|
!goog.isNull(this.endCoordinate_)) {
|
||||||
@@ -116,7 +116,7 @@ ol.render.DragBox.prototype.requestMapRenderFrame_ = function() {
|
|||||||
/**
|
/**
|
||||||
* @param {ol.Map} map Map.
|
* @param {ol.Map} map Map.
|
||||||
*/
|
*/
|
||||||
ol.render.DragBox.prototype.setMap = function(map) {
|
ol.render.Box.prototype.setMap = function(map) {
|
||||||
if (goog.isDef(this.postComposeListenKey_)) {
|
if (goog.isDef(this.postComposeListenKey_)) {
|
||||||
goog.events.unlistenByKey(this.postComposeListenKey_);
|
goog.events.unlistenByKey(this.postComposeListenKey_);
|
||||||
this.postComposeListenKey_ = undefined;
|
this.postComposeListenKey_ = undefined;
|
||||||
@@ -137,7 +137,7 @@ ol.render.DragBox.prototype.setMap = function(map) {
|
|||||||
* @param {ol.Coordinate} startCoordinate Start coordinate.
|
* @param {ol.Coordinate} startCoordinate Start coordinate.
|
||||||
* @param {ol.Coordinate} endCoordinate End coordinate.
|
* @param {ol.Coordinate} endCoordinate End coordinate.
|
||||||
*/
|
*/
|
||||||
ol.render.DragBox.prototype.setCoordinates =
|
ol.render.Box.prototype.setCoordinates =
|
||||||
function(startCoordinate, endCoordinate) {
|
function(startCoordinate, endCoordinate) {
|
||||||
this.startCoordinate_ = startCoordinate;
|
this.startCoordinate_ = startCoordinate;
|
||||||
this.endCoordinate_ = endCoordinate;
|
this.endCoordinate_ = endCoordinate;
|
||||||
Reference in New Issue
Block a user