Beginning Google Maps API 3

2nd Edition

By Gabriel Svennerberg

Beginning Google Maps API 3 Cover Image

This book is about the next generation of the Google Maps API. It will provide the reader with the skills and knowledge necessary to incorporate Google Maps version 3 on web pages in both desktop and mobile browsers.

Full Description

  • ISBN13: 978-1-4302-2802-8
  • User Level: Beginner to Intermediate
  • Publication Date: July 26, 2010
  • Available eBook Formats: EPUB, MOBI, PDF
  • Print Book Price: $39.99
  • eBook Price: $27.99
Buy eBook Buy Print Book Add to Wishlist

Related Titles

Full Description

This book is about the next generation of the Google Maps API. It will provide the reader with the skills and knowledge necessary to incorporate Google Maps version 3 on web pages in both desktop and mobile browsers.

It also describes how to deal with common problems that most map developers encounter at some point, like performance and usability issues with having too many markers and possible solutions to that.

  • Introduction to the Google Maps API version 3
  • Solutions to common problems most developers encounters (too many markers, common JavaScript pitfalls)
  • Best practices using HTML/CSS/JavaScript and Google Maps

What you’ll learn

  • Building reliable Google Maps web applications
  • How to transfer from version 2 to version 3 of the API
  • Best practices using HTML/CSS/JavaScript
  • Dealing with large amounts of map markers
  • How to look up addresses and coordinates using GeoCoding and reversed GeoCoding

Who this book is for

Web designers/web developers with a basic knowledge of HTML, CSS and JavaScript, as well as people with knowledge of the old Google Maps API that needs help to easily transfer to the new API. And, this book is for anyone interested in learning how to integrate Google Maps on their web page.

Table of Contents

Table of Contents

  1. Introducing the Google Maps API
  2. Transferring from Version 2 to 3
  3. Creating Your First Map
  4. Taking the Map Further with MapOptions
  5. X Marks the Spot
  6. Marker Icons
  7. InfoWindow Tips and Tricks
  8. Creating Polylines and Polygons
  9. Dealing with Massive Numbers of Markers
  10. Location, Location, Location
Source Code/Downloads

Downloads are available to accompany this book.

Your operating system can likely extract zipped downloads automatically, but you may require software such as WinZip for PC, or StuffIt on a Mac.

Errata

Please Login to submit errata.

On page 30:

URL pointing to Google API has changed to:

<script type="text/javascript"
src="http://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&sensor=false">
</script>

On page 39, 40, 42:
Using this doesn't show anything
var latlng = new google.maps.LatLng(37.09, -95.71);

Using this does show USA
var latlng = new google.maps.LatLng(37.09, -90.71);

On page 76:
The link to google marker icons is no longer valid, http://gmaps-samples.googlecode.com/svn/trunk/markers/blue/blank.png