Should be able to ovveride defaultvalue of style in selection.
null or false should be able to prevent overriding the style. As discussed here: https://github.com/openlayers/openlayers/issues/10131
This commit is contained in:
@@ -206,7 +206,7 @@ class Select extends Interaction {
|
||||
* @private
|
||||
* @type {import("../style/Style.js").default|Array.<import("../style/Style.js").default>|import("../style/Style.js").StyleFunction|null}
|
||||
*/
|
||||
this.style_ = options.style ? options.style : getDefaultStyleFunction();
|
||||
this.style_ = options.style !== undefined ? options.style : getDefaultStyleFunction();
|
||||
|
||||
/**
|
||||
* An association between selected feature (key)
|
||||
|
||||
Reference in New Issue
Block a user