Thanks to all giants I stand on.
Checkout the git submodule. Run build.sh
to build the package.
Run run-test.js
to run a simple test. Make sure to install jsdom via npm
.
Just use npm link
to make the package available fo node. In your node project
use npm link openlayers
to install it local. Use require("openlayers").OpenLayers
in your code.
Or use the npm package via npm install openlayers
. Some functions only work
with a mocked dom. For an example on how to mock the hole dom see run-test.js