Skip to content

Magnacarto Node.js bindings, mirror of repo on Gitlab

License

Notifications You must be signed in to change notification settings

gmgeo/node-magnacarto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published