deal with elseFilter, some cleanup

This commit is contained in:
Bart van den Eijnden
2013-10-14 15:14:56 +02:00
committed by Bart van den Eijnden
parent a7fe89c05d
commit 91e834674c
3 changed files with 56 additions and 81 deletions

View File

@@ -40,6 +40,19 @@ ol.style.Style = function(options) {
this.symbolizers_ = goog.isDef(options.symbolizers) ?
options.symbolizers : [];
/**
* @type {?string}
* @private
*/
this.name_ = goog.isDef(options.name) ?
options.name : null;
/**
* @type {?string}
* @private
*/
this.title_ = goog.isDef(options.title) ?
options.title : null;
};
@@ -223,3 +236,27 @@ ol.style.Style.prototype.getRules = function() {
ol.style.Style.prototype.setRules = function(rules) {
this.rules_ = rules;
};
/**
* @return {Array.<ol.style.Symbolizer>}
*/
ol.style.Style.prototype.getSymbolizers = function() {
return this.symbolizers_;
};
/**
* @return {?string}
*/
ol.style.Style.prototype.getName = function() {
return this.name_;
};
/**
* @return {?string}
*/
ol.style.Style.prototype.getTitle = function() {
return this.title_;
};