Be less verbose when creating text style

This commit is contained in:
Marc Jansen
2015-11-03 14:27:06 +01:00
parent bea1501bb7
commit d24dcc7753

View File

@@ -342,11 +342,7 @@ ol.format.KML.createNameStyleFunction_ = function(foundStyle, name) {
});
}
var nameStyle = new ol.style.Style({
fill: undefined,
image: undefined,
text: textStyle,
stroke: undefined,
zIndex: undefined
text: textStyle
});
return nameStyle;
};