This commit is contained in:
Tim Schaub
2013-08-15 13:54:37 -04:00
parent 966034e4f7
commit af1cd64018
5 changed files with 7 additions and 7 deletions

View File

@@ -691,7 +691,7 @@ ol.parser.KML = function(opt_options) {
'IconStyle': function(obj) {
var node = this.createElementNS('IconStyle');
this.setAttributeNS(node, null, 'id', obj.id);
this.writeNode('Icon',
this.writeNode('Icon',
obj.symbolizer.createLiteral(ol.geom.GeometryType.POINT).url,
null, node);
return node;

View File

@@ -92,7 +92,7 @@ ol.style.Style.createLiterals = function(symbolizers, featureOrType) {
literals[i] = symbolizers[i].createLiteral(featureOrType);
}
return ol.style.Style.reduceLiterals_(literals);
}
};
/**
@@ -122,8 +122,8 @@ ol.style.Style.reduceLiterals_ = function(literals) {
stroke = literal;
reduced.push(stroke);
}
} else if (goog.isDef(literal.fillColor)
&& !goog.isDef(literal.strokeColor)) {
} else if (goog.isDef(literal.fillColor) &&
!goog.isDef(literal.strokeColor)) {
// fill only, check for previous stroke only
if (stroke) {
for (key in literal) {