/oltest

Openlayers 3 with application integration

Primary LanguageMakefileMIT LicenseMIT

Introduction oltest

Openlayers 3 with application integration

links

Setup steps

After downloading the project first make sure building changes works by executing the following command from the command prompt in the directory of the oltest project.

$ make npminit

Building the application

To build the application execute

$ make all

To test if the build is successfull execute

make debug

Goto the following link http://localhost:3000

FAQ

If an error message like below follows (bug in npm init) there are missing modules

[bvpelt@pluto oltest]$ make all
./node_modules/openlayers/node_modules/.bin/closure-util build config.json ./dist/app.js
make: ./node_modules/openlayers/node_modules/.bin/closure-util: Command not found
Makefile:23: recipe for target 'dist/app.js' failed
make: *** [dist/app.js] Error 127

This means, the google closure compiler is not installed, to fix this execute the commands below

[bvpelt@pluto oltest]$ cd node_modules/openlayers
[bvpelt@pluto oltest]$ npm install