Version 2.0.0
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);