Merge pull request #2677 from gberaudo/export_text_style_offsets

Add TextStyle offsets getters to API.
This commit is contained in:
Éric Lemoine
2014-09-03 17:30:14 +02:00

View File

@@ -87,6 +87,7 @@ ol.style.Text.prototype.getFont = function() {
/**
* @return {number} Horizontal text offset.
* @api
*/
ol.style.Text.prototype.getOffsetX = function() {
return this.offsetX_;
@@ -95,6 +96,7 @@ ol.style.Text.prototype.getOffsetX = function() {
/**
* @return {number} Vertical text offset.
* @api
*/
ol.style.Text.prototype.getOffsetY = function() {
return this.offsetY_;