magnacarto
v0.3.2
Published
Magnacarto Node.js bindings
Downloads
10
Readme
Magnacarto Node.js bindings
Experimental, work in progress.
Provides node.js bindings for omniscale/magnacarto through gmgeo/libmagnacarto.
API
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.
Usage
var Magnacarto = require('magnacarto');
var mc = new Magnacarto({
builderType: 'mapnik3'
});
var result = mc.buildFromFile('project.mml');