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 { |
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.parseStringheremagnacarto/builder/builder.go
Line 81 in 9afaa31