Rule is filter and symbolizer, style is collection of rules

This commit is contained in:
Tim Schaub
2013-02-19 21:37:40 -07:00
parent 184e1e782c
commit 360e37146c
3 changed files with 76 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
goog.provide('ol.style.Style');
goog.require('ol.style.Rule');
/**
* @typedef {{rules: (Array.<ol.style.Rule>)}}
*/
ol.style.StyleOptions;
/**
* @constructor
* @param {ol.style.StyleOptions} options Style options.
*/
ol.style.Style = function(options) {
/**
* @type {Array.<ol.style.Rule>}
* @private
*/
this.rules_ = goog.isDef(options.rules) ? options.rules : [];
};