Use ol.inherits instead of goog.inherits
This commit is contained in:
@@ -100,7 +100,7 @@ ol.style.Circle = function(opt_options) {
|
||||
var snapToPixel = options.snapToPixel !== undefined ?
|
||||
options.snapToPixel : true;
|
||||
|
||||
goog.base(this, {
|
||||
ol.style.Image.call(this, {
|
||||
opacity: 1,
|
||||
rotateWithView: false,
|
||||
rotation: 0,
|
||||
@@ -109,7 +109,7 @@ ol.style.Circle = function(opt_options) {
|
||||
});
|
||||
|
||||
};
|
||||
goog.inherits(ol.style.Circle, ol.style.Image);
|
||||
ol.inherits(ol.style.Circle, ol.style.Image);
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -185,7 +185,7 @@ ol.style.Icon = function(opt_options) {
|
||||
var snapToPixel = options.snapToPixel !== undefined ?
|
||||
options.snapToPixel : true;
|
||||
|
||||
goog.base(this, {
|
||||
ol.style.Image.call(this, {
|
||||
opacity: opacity,
|
||||
rotation: rotation,
|
||||
scale: scale,
|
||||
@@ -194,7 +194,7 @@ ol.style.Icon = function(opt_options) {
|
||||
});
|
||||
|
||||
};
|
||||
goog.inherits(ol.style.Icon, ol.style.Image);
|
||||
ol.inherits(ol.style.Icon, ol.style.Image);
|
||||
|
||||
|
||||
/**
|
||||
@@ -380,7 +380,7 @@ ol.style.Icon.prototype.unlistenImageChange = function(listener, thisArg) {
|
||||
ol.style.IconImage_ = function(image, src, size, crossOrigin, imageState,
|
||||
color) {
|
||||
|
||||
goog.base(this);
|
||||
ol.events.EventTarget.call(this);
|
||||
|
||||
/**
|
||||
* @private
|
||||
@@ -446,7 +446,7 @@ ol.style.IconImage_ = function(image, src, size, crossOrigin, imageState,
|
||||
}
|
||||
|
||||
};
|
||||
goog.inherits(ol.style.IconImage_, ol.events.EventTarget);
|
||||
ol.inherits(ol.style.IconImage_, ol.events.EventTarget);
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -131,7 +131,7 @@ ol.style.RegularShape = function(options) {
|
||||
var rotateWithView = options.rotateWithView !== undefined ?
|
||||
options.rotateWithView : false;
|
||||
|
||||
goog.base(this, {
|
||||
ol.style.Image.call(this, {
|
||||
opacity: 1,
|
||||
rotateWithView: rotateWithView,
|
||||
rotation: options.rotation !== undefined ? options.rotation : 0,
|
||||
@@ -140,7 +140,7 @@ ol.style.RegularShape = function(options) {
|
||||
});
|
||||
|
||||
};
|
||||
goog.inherits(ol.style.RegularShape, ol.style.Image);
|
||||
ol.inherits(ol.style.RegularShape, ol.style.Image);
|
||||
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user