node.js bindings for the mapserver library
C++ JavaScript PHP Python
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples
src Fix missing object initializer in left grid coordinate computation. Jun 1, 2016
tests
tools fix install path Jan 20, 2014
.gitignore Fix the mapserv example Jun 6, 2014
.gitmodules adding simple caching, new dependency on hashlib Nov 25, 2010
.tm_properties update travis config for mapserver / master configuration, update tes… Jan 22, 2014
.travis.yml Lets see if we can (easily) make travis happy May 20, 2016
LICENSE.md moving some things around. Nov 19, 2010
README.md reference node-gyp, not node-waf Jul 24, 2013
binding.gyp Update node-mapserver to build with nan for compatibility with Node 4… May 20, 2016
mapserver.js change back to release build by default Mar 10, 2014
package.json Update node-mapserver to build with nan for compatibility with Node 4… May 20, 2016

README.md

Build Status

Overview

node-mapserver is an MIT-licensed node.js extension to the mapserver open source web mapping engine. It allows you to access all the mapserver goodness for rendering map images in a node.js environment, allowing you to build high-performance, low-latency map servers.

Getting node-mapserver

Get the source from git and build it on your system against an existing mapserver installation. You will need to have already installed mapserver plus the development headers using your system's package management tools or built mapserver from source.

See the (MapServer)[http://mapserver.org] website for more details.

Step 1 - Use The Source, Luke

git clone git://github.com/pagameba/node-mapserver.git
cd node-mapserver

Step 2 - Make It So, #1

on linux, you will need to have installed mapserver package (and possibly the -devel package too) using your package management system, or have built it yourself. If you've installed in, find out where it is installed (perhaps /usr/local/) and use those paths. If you've built it yourself, you can probably figure out how you need to change this to work for you.

CXX="g++ -I/<path-to-install-dir>/include -L/<path-to-install-dir>/lib -lmapserver" node-gyp configure build

NOTE If your GD library is not 'installed' in a findable location you can add it using -I/

NOTE If you are building against a mapserver build directory, use -I/

on osx with kyngchaos frameworks you will still need a copy of the mapserver source from a tarball or svn appropriate to the version you have installed because the framework doesn't (as of the last time I checked) include headers:

CXX="g++ -I/<path-to-mapserver-source>" -framework MapServer" node-gyp configure build

NOTE you will probably get build warnings about the framework being ignored in the compile step, this is normal since the framework only gets used in the linking step.

Building on another system? Find a problem building on your system? Submit an issue and let me know what the problem is or how you solved it so we can make this more awesome for everyone.

Step 3 - Test, Test, Test

node tests/tests.js

Using node-mapserver

See the examples provided in the examples directory, check out the tests and read up on specific methods in the documentation

Documentation

Extensive API documentation is available in the wiki