Define isDef on ol.IView2D, ol.IView3D and ol.View
This commit is contained in:
@@ -25,3 +25,10 @@ ol.IView.prototype.getView2D = function() {
|
|||||||
*/
|
*/
|
||||||
ol.IView.prototype.getView3D = function() {
|
ol.IView.prototype.getView3D = function() {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return {boolean} Is defined.
|
||||||
|
*/
|
||||||
|
ol.IView.prototype.isDef = function() {
|
||||||
|
};
|
||||||
|
|||||||
@@ -59,3 +59,10 @@ ol.IView2D.prototype.getRotation = function() {
|
|||||||
*/
|
*/
|
||||||
ol.IView2D.prototype.getView2DState = function() {
|
ol.IView2D.prototype.getView2DState = function() {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return {boolean} Is defined.
|
||||||
|
*/
|
||||||
|
ol.IView2D.prototype.isDef = function() {
|
||||||
|
};
|
||||||
|
|||||||
@@ -8,3 +8,10 @@ goog.provide('ol.IView3D');
|
|||||||
*/
|
*/
|
||||||
ol.IView3D = function() {
|
ol.IView3D = function() {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return {boolean} Is defined.
|
||||||
|
*/
|
||||||
|
ol.IView3D.prototype.isDef = function() {
|
||||||
|
};
|
||||||
|
|||||||
@@ -56,6 +56,16 @@ ol.View.prototype.getView2D = goog.abstractMethod;
|
|||||||
ol.View.prototype.getView3D = goog.abstractMethod;
|
ol.View.prototype.getView3D = goog.abstractMethod;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @inheritDoc
|
||||||
|
*/
|
||||||
|
ol.View.prototype.isDef = function() {
|
||||||
|
// FIXME for some reason, we can't use goog.abstractMethod here
|
||||||
|
goog.asserts.fail();
|
||||||
|
return false;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {ol.ViewHint} hint Hint.
|
* @param {ol.ViewHint} hint Hint.
|
||||||
* @param {number} delta Delta.
|
* @param {number} delta Delta.
|
||||||
|
|||||||
Reference in New Issue
Block a user