Experimental, work in progress.
Provides node.js bindings for omniscale/magnacarto through gmgeo/libmagnacarto.
buildFromFile(file)
expects a file path of a .mml file and outputs a Mapnik or MapServer style string.
buildFromString(string)
expects a MML string and outputs a Mapnik or MapServer style string.
For available options see gmgeo/libmagnacarto.
var Magnacarto = require('magnacarto');
var mc = new Magnacarto({
builderType: 'mapnik3'
});
var result = mc.buildFromFile('project.mml');