Skip to content

Conversation

@jansule
Copy link
Contributor

@jansule jansule commented Dec 2, 2025

This fixes reading mapbox styles. We have to parse the mapbox style object first, before passing it to the parser.

solves #461

Copy link
Contributor

@marcjansen marcjansen left a comment

Choose a reason for hiding this comment

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

Only nit-picks, thanks

test.cjs Outdated

console.log('');
console.log('');
console.log('');
Copy link
Contributor

Choose a reason for hiding this comment

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

This looks strange, is it needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This necessary so that we can distinguish the final status of the tests from the status of the last testcase. I just replaced it with a few \n.

src/index.ts Outdated
: await promises.readFile(sourceFile, 'utf-8');

// If no sourceParser is set, just parse it as JSON - it should already be in geostyler format.
// LyrxParser expects a JSON object as input, so we need to parse it as an extra step.
Copy link
Contributor

Choose a reason for hiding this comment

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

The comment above the if should be updated.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Copy link
Contributor

@KaiVolland KaiVolland left a comment

Choose a reason for hiding this comment

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

please remove the logs as suggested by @marcjansen

@jansule jansule merged commit a055c11 into geostyler:main Dec 2, 2025
2 checks passed
@GeoStyler-BOT
Copy link

🎉 This PR is included in version 5.0.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants