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 – creating a combined build

There are a few steps we need to take to create a combined build. These are as follows:

  1. First, we will remove our JavaScript code from the HTML page and create a separate file for it. Go ahead and copy the contents of the <script> tag that contains all the JavaScript code into a file and save it as flickr_combined.js. You can, of course, call it something different but the remainder of this example will refer to it by this name. If you choose a different name, make sure to change all the references appropriately.
  2. Now, delete the JavaScript and the script tag from your HTML file. At this point, we can create a new <script> tag to load flickr_combined.js and everything should work as before. If you want ...

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