Merge pull request #7542 from ahocevar/overflow

Still respect deprecated exceedLength option
This commit is contained in:
Andreas Hocevar
2017-12-06 21:07:38 +01:00
committed by GitHub

View File

@@ -78,11 +78,14 @@ ol.style.Text = function(opt_options) {
*/ */
this.placement_ = options.placement !== undefined ? options.placement : ol.style.TextPlacement.POINT; 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 * @private
* @type {boolean} * @type {boolean}
*/ */
this.overflow_ = options.overflow !== undefined ? options.overflow : false; this.overflow_ = overflow !== undefined ? overflow : false;
/** /**
* @private * @private