Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 794 Bytes

README.md

File metadata and controls

29 lines (18 loc) · 794 Bytes

Magnacarto Node.js bindings

npm

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');