Going with point, line, and polygon symbolizers

Separate fill and stroke symbolizers make a nicer API, but less efficient rendering
This commit is contained in:
Tim Schaub
2013-01-18 17:20:10 -07:00
parent fd0a5f3622
commit b92fdaf911
6 changed files with 94 additions and 69 deletions
+31
View File
@@ -0,0 +1,31 @@
goog.provide('ol.style.LiteralLine');
goog.require('ol.style.LiteralSymbolizer');
/**
* @typedef {{strokeStyle: (string),
* strokeWidth: (number),
* opacity: (number)}}
*/
ol.style.LiteralLineConfig;
/**
* @constructor
* @implements {ol.style.LiteralSymbolizer}
* @param {ol.style.LiteralLineConfig} config Symbolizer properties.
*/
ol.style.LiteralLine = function(config) {
/** @type {string} */
this.strokeStyle = config.strokeStyle;
/** @type {number} */
this.strokeWidth = config.strokeWidth;
/** @type {number} */
this.opacity = config.opacity;
};