O'Reilly logo

OpenLayers 3 : Beginner's Guide by Erik Hazzard, Paul Spencer, Thomas Gratier

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required