Skip to content

Version 2.0.0

Compare
Choose a tag to compare
@jansule jansule released this 19 Oct 11:59
· 133 commits to master since this release

Breaking

  • update parser to comply geostyler-style v5 b9eefdb

Migration-Guide:
The output of the readStyle and writeStyle methods has changed from the pure style to the ReadStyleResult/WriteStyleResult.

Version <2:

// read
const geostylerStyle = await mapboxParser.readStyle(someMapboxStyle);
// write
const mapboxStyle = await mapboxParser.writeStyle(geostylerStyle);

Version >=2:

// read
const { output: geostylerStyle } = await mapboxParser.readStyle(someMapboxStyle);
// write
const { output: mapboxStyle }  = await mapboxParser.writeStyle(geostylerStyle);

v1.0.0...v2.0.0