Unlike before, we don't need to move our application code into a separate file. Unless you kept a copy of the application from before the previous example, however, we'll need to fix up our HTML file a little bit for this example. This example assumes you are starting with the previous example:
Create a copy of
flickr_combined.js
and call itflickr_separate.js
. As always, you may use a different name but make sure it is consistent! You might also want to make a copy of your HTML file and use it for the rest of this example.Edit
flickr_separate.js
and remove all thegoog.require
statements from the beginning of the file.Add a new
<script>
tag to loadflickr_separate.js
after the<script>
tag that loads the combined build file:<script src="flickr_separate.js"></script>
Now, we need to create our custom build of OpenLayers. First, we'll need a configuration file. Let's create a new file named
flickr_separate.json
in the OpenLayers...