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; }