O'Reilly logo

Beginning Google Maps Applications with PHP and Ajax: From Novice to Professional by Jeffrey Sambells, Michael Purvis, Cameron Turner

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 2Getting Started

In this chapter, you'll learn how to create your first Google map project, plot some markers, and add a bit of interactivity. Because JavaScript plays such a central role in controlling the maps, you'll also start to pick up a few essentials about that language along the way.

In this chapter, you'll see how to do the following:

  • Get off the ground with a basic map and a Google Maps API key.
  • Separate the map application's JavaScript functions, data, and XHTML.
  • Unload finished maps to help browsers free their memory.
  • Create map markers and respond to clicks on them with an information pop-up.

The First Map

In this section, you'll obtain a Google Maps API key, and then begin experimenting with it by retrieving Google's ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required