This brings us to the end of this chapter. We've seen that OpenLayers is basically mobile-ready out-of-the-box, and there's really not much we need to do to make it work in a mobile web browser. The GeoLocation
and DeviceOrientation
classes provide access to some useful information in a mobile environment, including our position, speed, altitude, and direction of travel, and we saw these in action. We can even tell which direction our device is pointing in. We've learned how to debug mobile applications and how to prepare them for working offline. We wrapped up with an example that records our movement over time using vector layers and features.
In the next and final chapter, we will be building a complete application from scratch using everything we've learned so far. We'll also be introducing the OpenLayers build tools and learning how to create a production-ready application.