Remove private static members from Text style

This commit is contained in:
Tim Schaub
2018-02-12 06:48:19 -07:00
parent f60f32effd
commit 2cf7dbc4de

View File

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