Add initial pass of write support, always write out ol.style.Stroke as LineSymbolizer
This commit is contained in:
committed by
Bart van den Eijnden
parent
5abedf66d9
commit
ee7d46cea1
@@ -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_;
|
||||
};
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user