All examples By author By category About

ThomasG77

Minimum demo to use browserify with ol3

To test

Clone the gist and cd into the dir

git clone https://gist.github.com/ThomasG77/7a92c94c6d7955fe81c9 demo_browserify_ol3
cd demo_browserify_ol3

Run NPM

npm install

Build the js including ol3 lib and custom code

./node_modules/.bin/browserify app.js > bundle.js

Open a browser and job done