Book Image

OpenLayers 3: Beginner's Guide

By : Thomas Gratier, Paul Spencer, Erik Hazzard
Book Image

OpenLayers 3: Beginner's Guide

By: Thomas Gratier, Paul Spencer, Erik Hazzard

Overview of this book

<p>This book is a practical, hands-on guide that provides you with all the information you need to get started with mapping using the OpenLayers 3 library.</p> <p>The book starts off by showing you how to create a simple map. Through the course of the book, we will review each component needed to make a map in OpenLayers 3, and you will end up with a full-fledged web map application. You will learn the key role of each OpenLayers 3 component in making a map, and important mapping principles such as projections and layers. You will create your own data files and connect to backend servers for mapping. A key part of this book will also be dedicated to building a mapping application for mobile devices and its specific components.</p>
Table of Contents (22 chapters)
OpenLayers 3 Beginner's Guide
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Debugging on Android


If you have an Android device, you can debug your web applications using the ADB Chrome extension and the Chrome DevTools introduced in Chapter 2, Key Concepts in OpenLayers. There are quite a few steps to get it all working, but it's worth it when you need it! So, here goes:

  1. If Chrome is not already installed by default, install Chrome for Android version 28 or later from Google Play, and connect your device to your computer with a USB. Here's how your screen looks when you perform these actions:

  2. Install Chrome version 28 or later on your development machine. The following screenshot depicts the screen as it should look while performing this action:

  3. Install ADB Chrome Extension available in the Chrome web store by opening a new tab in Chrome, clicking the App Store icon, and then searching for ADB, as shown in the following screenshot:

  4. Enable USB debugging on your device by opening the Developer options settings panel and clicking the checkbox for USB debugging, as follows...