In places throughout this book, we've credited the full functionality that OpenLayers offers out of the box with its capacity to help build powerfully capable web-mapping applications. We've also been consciously aware of the fact that this well equipped capability comes with the price of a larger download size.
However, this recipe will show you how to construct a custom minified build of OpenLayers that will include only the code from the library that's fundamental for your specific application requirements.
To demonstrate this, we'll create a custom build, which is made suitable to run an earlier recipe from this book: Creating a simple full screen map in Chapter 1, Web Mapping Basics.
The source code for this recipe can be found in ch07/ch07-custom-openlayers-build
.
The OpenLayers build tools has two dependencies that need to be installed on your machine: Node.js (https://nodejs.org) and Java 1.7 SDK (http://www.oracle.com/technetwork...