Add initial pass of write support, always write out ol.style.Stroke as LineSymbolizer

This commit is contained in:
Bart van den Eijnden
2013-10-08 19:01:42 +02:00
committed by Bart van den Eijnden
parent 5abedf66d9
commit ee7d46cea1
7 changed files with 491 additions and 24 deletions
+24
View File
@@ -78,3 +78,27 @@ ol.style.Rule.prototype.applies = function(feature, resolution) {
ol.style.Rule.prototype.getSymbolizers = function() {
return this.symbolizers_;
};
/**
* @return {ol.expr.Expression}
*/
ol.style.Rule.prototype.getFilter = function() {
return this.filter_;
};
/**
* @return {number}
*/
ol.style.Rule.prototype.getMinResolution = function() {
return this.minResolution_;
};
/**
* @return {number}
*/
ol.style.Rule.prototype.getMaxResolution = function() {
return this.maxResolution_;
};
+16
View File
@@ -207,3 +207,19 @@ ol.style.Style.reduceLiterals_ = function(literals) {
}
return reduced;
};
/**
* @return {Array.<ol.style.Rule>}
*/
ol.style.Style.prototype.getRules = function() {
return this.rules_;
};
/**
* @param {Array.<ol.style.Rule>} rules The rules to set.
*/
ol.style.Style.prototype.setRules = function(rules) {
this.rules_ = rules;
};
+9
View File
@@ -215,6 +215,15 @@ ol.style.Text.prototype.getZIndex = function() {
};
/**
* Get the stroke.
* @return {ol.style.Stroke} Stroke.
*/
ol.style.Text.prototype.getStroke = function() {
return this.stroke_;
};
/**
* Set the font color.
* @param {ol.expr.Expression} color Font color.