We tried our best but here are the little things we missed:
Chapter 2
- Listing 2-8: In some printings of the book the parameters to addMarker function are (lonigtude, latitude, description) however the correct order is (latitude, longitude, description). The downloadable source code is correct.
Chapter 3
- Listing 3-1 and 3-2: There is an erroneous 2 in
map.addControl(new GMap2TypeControl());where it should bemap.addControl(new GMapTypeControl()); - Listing 3-6: When creating the MARKER XML node, there shouldn’t be a
\nat the end of the line. - Listing 3-6: The input should be properly encoded and escaped:
$found = htmlspecialchars(strip_tags(utf8_encode($_GET[’found’])));
$left = htmlspecialchars(strip_tags(utf8_encode($_GET[’left’])));
$icon = htmlspecialchars(strip_tags(utf8_encode($_GET[’icon’]))); - Listing 3-8: There is a missing semi-colon after retrieveMarkers()
Chapter 4
- Google Geocoding 403: With Google’s Geocoding rate limiting you’re required to make a request to the server no more frequently than once every 1.75 seconds. The source code for this chapter had usleep(175000) but it should have been usleep(1750000). This has been corrected in the downloadable code on this site.
Chapter 6
- Problems with GPoint: A little GMap/GMap2 incompatibility crept into Chapter 6, and affects Listing 6-14 and Listing 6-15. In both cases,
new GPoint(pointData.longitude, pointData.latitude)should changed tonew GLatLng(pointData.latitude, pointData.longitude).
Chapter 9
- Listing 9-9: When creating the copyright block, the line
copyrights.addCopyright(visibleEarth);should be outside the closing brace of theNew GCopyrightCollection();
Chapter 10
- Figures: The figures from Chapter 10 that were printed too lightly have been made available here.
Chapter 11
- Table 11-3: The ID No’s should both be 1002, not 1001. They represent internal points for “middle ave” not “lower ave”.


Subscribe