From 2cf7dbc4deff5d609f1e21a7c5983e248b9764eb Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Mon, 12 Feb 2018 06:48:19 -0700 Subject: [PATCH] Remove private static members from Text style --- src/ol/style/Text.js | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/ol/style/Text.js b/src/ol/style/Text.js index 5de37b36e8..7c4b3a4776 100644 --- a/src/ol/style/Text.js +++ b/src/ol/style/Text.js @@ -4,6 +4,16 @@ import Fill from '../style/Fill.js'; import TextPlacement from '../style/TextPlacement.js'; + +/** + * The default fill color to use if no fill was set at construction time; a + * blackish `#333`. + * + * @const {string} + */ +const DEFAULT_FILL_COLOR = '#333'; + + /** * @classdesc * Set text style for vector features. @@ -63,7 +73,7 @@ const Text = function(opt_options) { * @type {ol.style.Fill} */ this.fill_ = options.fill !== undefined ? options.fill : - new Fill({color: Text.DEFAULT_FILL_COLOR_}); + new Fill({color: DEFAULT_FILL_COLOR}); /** * @private @@ -121,16 +131,6 @@ const Text = function(opt_options) { }; -/** - * The default fill color to use if no fill was set at construction time; a - * blackish `#333`. - * - * @const {string} - * @private - */ -Text.DEFAULT_FILL_COLOR_ = '#333'; - - /** * Clones the style. * @return {ol.style.Text} The cloned style.