Remove private static members from Text style
This commit is contained in:
+11
-11
@@ -4,6 +4,16 @@
|
|||||||
import Fill from '../style/Fill.js';
|
import Fill from '../style/Fill.js';
|
||||||
import TextPlacement from '../style/TextPlacement.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
|
* @classdesc
|
||||||
* Set text style for vector features.
|
* Set text style for vector features.
|
||||||
@@ -63,7 +73,7 @@ const Text = function(opt_options) {
|
|||||||
* @type {ol.style.Fill}
|
* @type {ol.style.Fill}
|
||||||
*/
|
*/
|
||||||
this.fill_ = options.fill !== undefined ? options.fill :
|
this.fill_ = options.fill !== undefined ? options.fill :
|
||||||
new Fill({color: Text.DEFAULT_FILL_COLOR_});
|
new Fill({color: DEFAULT_FILL_COLOR});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @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.
|
* Clones the style.
|
||||||
* @return {ol.style.Text} The cloned style.
|
* @return {ol.style.Text} The cloned style.
|
||||||
|
|||||||
Reference in New Issue
Block a user