HTML and CSS Reference
In-Depth Information
Map data 2012 © Google
Figure 13-5 The finished Locations page with geolocation built in.
Summary
The new GeoLocation API is helping to bridge the gap between native applications and web applications. In this
chapter, you learned how to take advantage of this new API in order to enhance the Locations page on the Joe's
Pizza Co. website.
Additionally, you learned how to obtain a user's location and how the device goes about gathering this information.
With a little help from an external JavaScript library, you wrote code that can find the restaurant location that is
nearest to the user. Your program then highlights this location to make it more visible to the user as well as adding
distance labels to each of the restaurant locations on the Locations page.
In Chapter 14, you will learn about the new <canvas> element. Combined with a bit of JavaScript, the Canvas API
enables you to draw pictures directly in the browser.
Search WWH ::




Custom Search