Start of style package

These literals will be used internally only - created when evaluating
non-literal symbolizers (with properties that are expressions).
This commit is contained in:
Tim Schaub
2013-01-07 01:41:02 -05:00
parent 997c7145ab
commit 7cca691b9f
4 changed files with 112 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
goog.provide('ol.style.LiteralStroke');
goog.require('ol.style.LiteralSymbolizer');
/**
* @typedef {{width: (number),
* color: (string),
* opacity: (number)}}
*/
ol.style.LiteralStrokeConfig;
/**
* @constructor
* @implements {ol.style.LiteralSymbolizer}
* @param {ol.style.LiteralStrokeConfig} config Symbolizer properties.
*/
ol.style.LiteralStroke = function(config) {
/** @type {string} */
this.color = config.color;
/** @type {number} */
this.opacity = config.opacity;
/** @type {number} */
this.width = config.width;
};