Static ol.style.Style functions
This commit is contained in:
@@ -177,8 +177,8 @@ ol.layer.Vector.prototype.setRenderOrder = function(renderOrder) {
|
||||
* @api stable
|
||||
*/
|
||||
ol.layer.Vector.prototype.setStyle = function(style) {
|
||||
this.style_ = style !== undefined ? style : ol.style.defaultStyleFunction;
|
||||
this.style_ = style !== undefined ? style : ol.style.Style.defaultFunction;
|
||||
this.styleFunction_ = style === null ?
|
||||
undefined : ol.style.createStyleFunction(this.style_);
|
||||
undefined : ol.style.Style.createFunction(this.style_);
|
||||
this.changed();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user