Version 3.0.0
Breaking
- Update to
geostyler-style v5
#414
Migration-Guide:
The output of the readStyle
and writeStyle
methods has changed from the pure style to the ReadStyleResult
/WriteStyleResult
.
Version <3:
// read
const geostylerStyle = await sldParser.readStyle(someSld);
// write
const sldStyle = await sldParser.writeStyle(geostylerStyle);
Version >=3:
// read
const { output: geostylerStyle } = await sldParser.readStyle(someSld);
// write
const { output: sldStyle } = await sldParser.writeStyle(geostylerStyle);