Skip to content

Conversation

@Unraveler
Copy link

Updates the examples to be compatibl with latest geostyler version

Copy link
Contributor

@jansule jansule left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for updating the tutorial @Unraveler!

Mainly looks good. There are just a few missing things that should be easy to apply.

}

export default App;
export default App;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor: Please add newline


```javascript
npm install geostyler
npm install geostyler@721
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you not missing the dots between the the different parts of the semver version?

olParser
.writeStyle(newStyle)
.then(olStyle => {
console.log(oStyle)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't this be

console.log(olStyle.output);

?

.writeStyle(newStyle)
.then(olStyle => {
console.log(oStyle)
vector.setStyle(olStyle);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be

vector.setStyle(olStyle.output);

?

.readStyle(defaultOlStyle)
.then(gsStyle => console.log(gsStyle))
.then(gsStyle => console.log(gsStyle.output))
.catch(error => console.log(error));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Promise returned by geostyler parsers does not throw errors anymore, so the .catch() part is obsolete

vector.setStyle(olStyle);
vector.setStyle(olStyle.output);
})
.catch(error => console.log(error));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comment above

vector.setStyle(olStyle);
vector.setStyle(olStyle.output);
})
.catch(error => console.log(error));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comment above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants