Fix anchor origin calculation

This commit is contained in:
oterral
2014-03-07 13:25:06 +01:00
parent e5fe832839
commit 5028aa3bc3
2 changed files with 3 additions and 3 deletions

View File

@@ -157,7 +157,7 @@ ol.style.Icon.prototype.getAnchor = function() {
}
if (this.anchorOrigin_ == ol.style.IconAnchorOrigin.BOTTOM_LEFT ||
this.anchorOrigin_ == ol.style.IconAnchorOrigin.BOTTOM_RIGHT) {
anchor[1] += size[1];
anchor[1] = -anchor[1] + size[1];
}
}
return anchor;