Time for action – using ol.interaction.Draw to share new information on the Web

To be able to do a basic save, we have developed a server-side script based on Node.js, a software platform for scalable server-side and networking applications. For the client side, the code will be more classical.

  1. Install Node and NPM, an executable to manage Node.js library dependencies if you don't already have it, using https://github.com/joyent/node/wiki/installation#installing-without-building.
  2. Next, retrieve the index.js and package.json files from the code from upcoming_url and put them in the ol3_samples directory.
  3. Install the dependencies from the command line firing from the ol3_samples folder path, as follows:
    npm install
  4. Download also the file features.geojson ...

Get OpenLayers 3 : Beginner's Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.