From 319b64ed65332c573caf03afe83467ee0bac225a Mon Sep 17 00:00:00 2001 From: mike-000 <49240900+mike-000@users.noreply.github.com> Date: Wed, 5 Feb 2020 20:17:18 +0000 Subject: [PATCH] Fix for #10611 --- src/ol/format/KML.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ol/format/KML.js b/src/ol/format/KML.js index 5b4551035f..96eb136447 100644 --- a/src/ol/format/KML.js +++ b/src/ol/format/KML.js @@ -2580,7 +2580,7 @@ function writeLineStyle(node, style, objectStack) { const /** @type {import("../xml.js").NodeStackItem} */ context = {node: node}; const properties = { 'color': style.getColor(), - 'width': style.getWidth() + 'width': Number(style.getWidth()) || 1 }; const parentNode = objectStack[objectStack.length - 1].node; const orderedKeys = LINE_STYLE_SEQUENCE[parentNode.namespaceURI];