Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support inline Stylesheet.data #49

Open
oberhamsi opened this issue Apr 1, 2022 · 0 comments
Open

support inline Stylesheet.data #49

oberhamsi opened this issue Apr 1, 2022 · 0 comments

Comments

@oberhamsi
Copy link

for small styles and for embeded conversion, it's convinient to have the MSS inlined into the mml file.

original carto did a check if a Stylesheet entry is not a string and assume it's already in {id, data} format https://github.com/mapbox/carto/blob/305107201d4f8c4a2b9118c0077dde904f4224ed/lib/carto/mml.js#L66

afaiu this would be rather simple with a similar check and carto.parseString here

for _, mss := range b.mss {

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

No branches or pull requests

1 participant