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:
@@ -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;
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user