gmgeo / node-magnacarto

Magnacarto Node.js bindings, mirror of repo on Gitlab

Home Page:https://gitlab.com/gmgeo/node-magnacarto

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Magnacarto Node.js bindings, mirror of repo on Gitlab

https://gitlab.com/gmgeo/node-magnacarto

License:MIT License


Languages

Language:JavaScript 100.0%