248 Part III — Google Map Hacks
If the user clicks in a specific area within the map, the information panel updates with the title
of the area, as defined when you created the area object (see Figure 12-12).
FIGURE12-12: Getting area detail.
A basic description is shown here, but it could just as easily incorporate more detailed informa-
tion on the office space, even a photo of the artist’s mock-up. Adding extra information to the
process is comparatively easy.
Wrapping Up
The first map example demonstrates some very simple methods of overlaying information that
makes the highlighted points more visible and useful through the use of the TLabelexten-
sion. The extension improves the quality of the information on the map without relying on the
two-stage interface that is available with the standard Google Map GMarkerobject. The label
works exactly as its name suggests. The simple label is more flexible and probably more useful
in areas where you want to dynamically highlight points to the user.
The second map (and the later extension) shows that a Google Map can provide more than
just mapping data. By using an overlay, you can extend the information provided far beyond the
built-in data in the map. In the extension, the overlay was also used as a basis for determining