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:
wirdehall
2019-10-17 15:05:30 +02:00
committed by GitHub
parent 1de0d09acb
commit a34e7ddd99

View File

@@ -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)