Append textStyle to existing style

This commit is contained in:
Marc Jansen
2015-11-03 14:26:16 +01:00
parent ad85e0e98d
commit bea1501bb7

View File

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