-
Notifications
You must be signed in to change notification settings - Fork 129
Add mml documentation #274
Comments
As an example, try to find the valid values of I looked for docs on Carto documentation, as opposed to Carto via TileMill, would be a good idea. |
The underlying cause for this being obscure is that |
There is no longer an MML section in the README, and it would be great to have one somewhere in the docs. I think people are using CartoCSS in their own rendering workflows, which means |
And from what I see it was just example of beginning of mml file (see 02a657f). |
Starting on documentation. Notes to self:
|
I have started on a MML documentation. But I need some help. Could you please read over it and point out what is missing or wrong. Please try also to answer the points I found in #274 (comment). It would be also nice to know what MML and MSS actually mean. Mapnik Map Layers? Mapnik Style Sheet? Does anybody know? :) @pnorman @springmeyer @gravitystorm @math1985 @artemp Link was missing: https://cartocss.readthedocs.io/en/latest/mml.html |
MML and MSS both come from Cascadenik. I had always assumed mss stood for map style sheet, but can't find anything explicit. |
Maybe @migurski knows what mml and mss originally stood for? In my mind they were just acronyms (XML and CSS -> MML and MSS), so I don't know whether the M was for Mapnik or Map, or even if I'm barking up the wrong tree. |
I've used this before for layer attributes that are not defined in cartocss. For example, the shapefile plugin takes an "encoding" attribute, so something like:
|
@gravitystorm thanks, that's interesting. When I look at the code for layers (https://github.com/mapbox/carto/blob/master/lib/carto/tree/layer.js#L8) then any parameter there should be serialized as parameter tag. So you should be able to specify the encoding of the shapefile directly beneath the datasource property. |
I guess I never really defined them, but yeah: MML was Mapnik Markup Language and MSS was Mapnik Stylesheets, both adapted from HTML and CSS terminology. Before Mapbox forked the filename extension, MML was XML. Original blog post here. |
Thanks @migurski. Why not define them now? :) What about Map Markup Language and Map Stylesheet? While carto targets Mapnik I think it might be good to keep possibilities open. |
Thanks for the input, I'm closing this as resolved. If there are some features of the MML left undocumented or there are errors I welcome PRs. |
The referenced docs at http://mapbox.com/carto/ do not contain any specifications for .mml files, which carto parses. Docs should be added for these files.
The text was updated successfully, but these errors were encountered: