diff --git a/src/ol/format/WKB.js b/src/ol/format/WKB.js index 37c0a5f1c5..e04649a6d9 100644 --- a/src/ol/format/WKB.js +++ b/src/ol/format/WKB.js @@ -817,7 +817,7 @@ class WKB extends FeatureFormat { ); const buffer = writer.getBuffer(); - return this.hex !== false ? encodeHexString(buffer) : buffer; + return this.hex ? encodeHexString(buffer) : buffer; } }