Google Maps Integration

In a recent Mobile Web survey, nearly 75% of Web developers use Geolocation, making it the most popular HTML5 API.13 When building applications that are location aware, it is common to have a map view displaying points of interest or directions. On the Web, Geolocation14 in conjunction with Google Maps15 provide a very useful API for building map functionality. In this section, we are going to see how well jQuery Mobile integrates with Geolocation and Google Maps. To start we will create an example that plots your current location on a map (see Figure 9–8).


Get Pro jQuery Mobile now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.