Create literal with feature or geometry type

This commit is contained in:
Tim Schaub
2013-08-15 08:08:10 -04:00
parent c36ceab2a0
commit d5d0262b4c
13 changed files with 156 additions and 116 deletions
+1 -2
View File
@@ -43,8 +43,7 @@ describe('ol.style.Shape', function() {
geometry: new ol.geom.Point([1, 2])
});
var literal = symbolizer.createLiteral(ol.geom.GeometryType.POINT,
feature);
var literal = symbolizer.createLiteral(feature);
expect(literal).to.be.a(ol.style.ShapeLiteral);
expect(literal.size).to.be(42);
expect(literal.fillOpacity).to.be(0.4);