Skip to content

Commit

Permalink
Update README to match geostyler-style v5
Browse files Browse the repository at this point in the history
  • Loading branch information
jansule committed Oct 19, 2021
1 parent 1e7ef58 commit 3fe2e7e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions README.md
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 { options: 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 3fe2e7e

Please sign in to comment.