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
@@ -48,8 +48,7 @@ describe('ol.style.Icon', 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.IconLiteral);
expect(literal.height).to.be(42);
expect(literal.width).to.be(.42);