Still respect deprecated exceedLength option

This commit is contained in:
Andreas Hocevar
2017-12-06 17:48:10 +01:00
parent ca3e11a10b
commit 016437f9f4

View File

@@ -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