Add more changes to the halo functionality, introduce SLD defaults for symbolizers conform the SLD spec

This commit is contained in:
Bart van den Eijnden
2013-10-11 14:25:33 +02:00
committed by Bart van den Eijnden
parent 924e9c6fce
commit 9a6c1feddc
2 changed files with 73 additions and 25 deletions

View File

@@ -26,7 +26,7 @@ describe('ol.parser.ogc.SLD_v1_0_0', function() {
expect(first.getSymbolizers()[0]).to.be.a(ol.style.Fill);
expect(first.getSymbolizers()[0].getColor().getValue()).to.equal(
'#ffffff');
expect(first.getSymbolizers()[0].getOpacity().getValue()).to.equal(0.4);
expect(first.getSymbolizers()[0].getOpacity().getValue()).to.equal(1);
expect(first.getSymbolizers()[1]).to.be.a(ol.style.Stroke);
expect(first.getSymbolizers()[1].getColor().getValue()).to.equal(
'#000000');
@@ -47,7 +47,7 @@ describe('ol.parser.ogc.SLD_v1_0_0', function() {
expect(first.getSymbolizers()[2].getText().getArgs()[2].getValue()).
to.equal('label');
expect(first.getSymbolizers()[2].getColor().getValue()).to.equal(
ol.style.TextDefaults.color);
'#000000');
expect(first.getSymbolizers()[2].getFontFamily().getValue()).to.equal(
'Arial');
// TODO add tests for haloRadius and haloColor