From 016437f9f4b3183c06b248bce23fa6aa8b780139 Mon Sep 17 00:00:00 2001 From: Andreas Hocevar Date: Wed, 6 Dec 2017 17:48:10 +0100 Subject: [PATCH] Still respect deprecated exceedLength option --- src/ol/style/text.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ol/style/text.js b/src/ol/style/text.js index bfd91b98f8..0a8ee5c9b5 100644 --- a/src/ol/style/text.js +++ b/src/ol/style/text.js @@ -78,11 +78,14 @@ ol.style.Text = function(opt_options) { */ this.placement_ = options.placement !== undefined ? options.placement : ol.style.TextPlacement.POINT; + //TODO Use options.overflow directly after removing @deprecated exceedLength + var overflow = options.overflow === undefined ? options.exceedLength : options.overflow; + /** * @private * @type {boolean} */ - this.overflow_ = options.overflow !== undefined ? options.overflow : false; + this.overflow_ = overflow !== undefined ? overflow : false; /** * @private