Add "origin" option to ol.style.Image

This commit is contained in:
Éric Lemoine
2014-05-05 09:30:35 +02:00
parent 29d71b34b2
commit a62fd53d36
4 changed files with 33 additions and 0 deletions
+7
View File
@@ -102,6 +102,12 @@ ol.style.Icon = function(opt_options) {
*/
var opacity = goog.isDef(options.opacity) ? options.opacity : 1;
/**
* @private
* @type {Array.<number>}
*/
var origin = goog.isDef(options.origin) ? options.origin : [0, 0];
/**
* @type {boolean}
*/
@@ -120,6 +126,7 @@ ol.style.Icon = function(opt_options) {
goog.base(this, {
opacity: opacity,
origin: origin,
rotation: rotation,
scale: scale,
snapToPixel: undefined,