Skip to content

Commit

Permalink
Merge pull request #125 from geostyler/jansule-patch-1
Browse files Browse the repository at this point in the history
Update README to match geostyler-style v5
  • Loading branch information
jansule authored Oct 19, 2021
2 parents 1e7ef58 + 907d4f3 commit 739b1fa
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,8 @@ const parser = new MapfileParser();
// Load a Mapfile file
const mapfile = fs.readFileSync('./mapfiles_folder/my_mapfile.map', 'utf8');

parser
.readStyle(mapfile)
.then((geostylerStyle) => console.log(geostylerStyle))
.catch((error) => console.log(error));
const { output: geostylerStyle } = await parser.readStyle(mapfile);
console.log(geostylerStyle);
```

Writing a Mapfile from a Geostyler-Style object is currently not possible.
Expand Down

0 comments on commit 739b1fa

Please sign in to comment.