Skip to content

Commit

Permalink
Merge 3fe2e7e into 1e7ef58
Browse files Browse the repository at this point in the history
  • Loading branch information
jansule committed Oct 19, 2021
2 parents 1e7ef58 + 3fe2e7e commit 1c0250e
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 1c0250e

Please sign in to comment.