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 – testing the use cases for ol.interaction.Select

With this example, you will also be able to learn some useful things that you will learn more deeply in Chapter 6, Styling Vector Layers. Perform the following steps to do just that:

  1. From the support files available with this book (https://www.packtpub.com/web-development/openlayers-3-beginner's-guide), download the file 2360_08_01_simple_select.html and put it in the sandbox directory.
  2. Create a data directory in the assets folder, and put the file nutsv9_lea.geojson there, or download it also from the support site.
  3. Put the file into a webserver directory, or use the Python-included server with python -m SimpleHTTPServer because of Ajax's same-origin policy requirements.
  4. Next, open ...

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