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
+1 -1
View File
@@ -48,7 +48,7 @@ var style = new ol.style.Style({
opacity: ol.expr.parse('getOpacity()') opacity: ol.expr.parse('getOpacity()')
}), }),
new ol.style.Stroke({ new ol.style.Stroke({
color: '#ffffff', color: '#ffffff'
}) })
] ]
}); });
+3 -3
View File
@@ -92,7 +92,7 @@ ol.style.Style.createLiterals = function(symbolizers, featureOrType) {
literals[i] = symbolizers[i].createLiteral(featureOrType); literals[i] = symbolizers[i].createLiteral(featureOrType);
} }
return ol.style.Style.reduceLiterals_(literals); return ol.style.Style.reduceLiterals_(literals);
} };
/** /**
@@ -122,8 +122,8 @@ ol.style.Style.reduceLiterals_ = function(literals) {
stroke = literal; stroke = literal;
reduced.push(stroke); reduced.push(stroke);
} }
} else if (goog.isDef(literal.fillColor) } else if (goog.isDef(literal.fillColor) &&
&& !goog.isDef(literal.strokeColor)) { !goog.isDef(literal.strokeColor)) {
// fill only, check for previous stroke only // fill only, check for previous stroke only
if (stroke) { if (stroke) {
for (key in literal) { for (key in literal) {
+1 -1
View File
@@ -337,7 +337,7 @@ goog.require('goog.array');
goog.require('goog.dom.xml'); goog.require('goog.dom.xml');
goog.require('ol.Feature'); goog.require('ol.Feature');
goog.require('ol.geom.GeometryType') goog.require('ol.geom.GeometryType');
goog.require('ol.geom.GeometryCollection'); goog.require('ol.geom.GeometryCollection');
goog.require('ol.geom.LineString'); goog.require('ol.geom.LineString');
goog.require('ol.geom.MultiLineString'); goog.require('ol.geom.MultiLineString');
+1 -1
View File
@@ -275,7 +275,7 @@ describe('ol.style.Style', function() {
}); });
}) });
}); });