Add offset and offsetOrigin in ol.style.Icon

This commit is contained in:
oterral
2014-05-08 14:20:19 +02:00
parent 38d8799a01
commit 71951b8bbd
4 changed files with 103 additions and 45 deletions
+7 -15
View File
@@ -15,7 +15,6 @@ ol.style.ImageState = {
/**
* @typedef {{opacity: number,
* origin: Array.<number>,
* rotateWithView: boolean,
* rotation: number,
* scale: number,
@@ -37,12 +36,6 @@ ol.style.Image = function(options) {
*/
this.opacity_ = options.opacity;
/**
* @private
* @type {Array.<number>}
*/
this.origin_ = options.origin;
/**
* @private
* @type {boolean}
@@ -78,14 +71,6 @@ ol.style.Image.prototype.getOpacity = function() {
};
/**
* @return {Array.<number>} Origin.
*/
ol.style.Image.prototype.getOrigin = function() {
return this.origin_;
};
/**
* @return {boolean} Rotate with map.
*/
@@ -148,6 +133,13 @@ ol.style.Image.prototype.getImageState = goog.abstractMethod;
ol.style.Image.prototype.getHitDetectionImage = goog.abstractMethod;
/**
* @function
* @return {Array.<number>} Origin.
*/
ol.style.Image.prototype.getOrigin = goog.abstractMethod;
/**
* @function
* @return {ol.Size} Size.