From bea1501bb72d0315c067afb25fda5005aca42208 Mon Sep 17 00:00:00 2001 From: Marc Jansen Date: Tue, 3 Nov 2015 14:26:16 +0100 Subject: [PATCH] Append textStyle to existing style --- src/ol/format/kmlformat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ol/format/kmlformat.js b/src/ol/format/kmlformat.js index d61284c5b9..a737bf945c 100644 --- a/src/ol/format/kmlformat.js +++ b/src/ol/format/kmlformat.js @@ -394,7 +394,7 @@ ol.format.KML.createFeatureStyleFunction_ = function(style, styleUrl, if (drawName) { nameStyle = ol.format.KML.createNameStyleFunction_(style[0], name); - return [style, nameStyle]; + return style.concat(nameStyle); } return style; }