You are previewing Beginning Google Maps Applications with Rails and Ajax: From Novice to Professional.
O'Reilly logo
Beginning Google Maps Applications with Rails and Ajax: From Novice to Professional

Book Description

The Google Maps API remains one of the showcase examples of the Web 2.0 development paradigm. Beginning Google Maps Applications with Rails and Ajax: From Novice to Professional is the first book to comprehensively introduce the service from a developer perspective, showing you how you can integrate mapping features into your Rails-driven web applications.

Proceeding far beyond simplistic map display, youll learn how to draw from a variety of data sources such as the U.S. Census Bureau's TIGER/Line data and Google's own geocoding feature to build comprehensive geocoding services for mapping many locations around the world.

The book also steers you through various examples that show how to encourage user interaction such as through pinpointing map locations, adding comments, and building community-driven maps. Youll want to pick up a copy of this book because

  • This is the first book to comprehensively introduce the Google Maps application development using the Rails development framework.

  • Youll be introduced to the very latest changes to the Google Maps API, embodied in the version 2 release.

  • It is written by four developers actively involved in the creation of location-based mapping services.

For additional info, please visit the author's reference site for this book.

Table of Contents

  1. Title Page
  2. Contents at a Glance
  3. Contents
  4. About the Authors
  5. About the Technical Reviewer
  6. PART 1: Your First Google Maps
    1. CHAPTER 1: Google Maps and Rails
      1. KML: Your First Map
      2. Wayfaring: Your Second Map
      3. Got Rails?
      4. What's Next?
    2. CHAPTER 2: Getting Started
      1. On JavaScript, Helpers, and Plug-ins
      2. Creating Your Rails Application
      3. The First Map
      4. Basic User Interaction
      5. A List of Points
      6. Summary
    3. CHAPTER 3: Interacting with the User and the Server
      1. Adding Interactivity
      2. Going on a Treasure Hunt
      3. Reviewing Application Structure
      4. Building on Your Application
      5. Creating the Map and Marking Points
      6. Listening to User Events
      7. Asking for More Information with an Info Window
      8. Implementing Ajax
      9. Retrieving Markers from the Server
      10. Adding Some Flair
      11. Ajax with Prototype
      12. Summary
    4. CHAPTER 4: Geocoding Addresses
      1. Preparing the Address Data
      2. Using Geocoding Web Services
      3. Persisting Lookups
      4. Building a Store Location Map
      5. Summary
  7. PART 2: Beyond the Basics
    1. CHAPTER 5: Manipulating Third-Party Data
      1. Using Downloadable Text Files
      2. Screen Scraping
      3. Summary
    2. CHAPTER 6: Improving the User Interface
      1. CSS: A Touch of Style
      2. Scripted Style
      3. Data Point Filtering
      4. RJS and Draggable Toolbars
      5. Summary
    3. CHAPTER 7: Optimizing and Scaling for Large Data Sets
      1. Understanding the Limitations
      2. Streamlining Server-Client Communications
      3. Optimizing Server-Side Processing
      4. Optimizing the Client-Side User Experience
      5. Summary
    4. CHAPTER 8: What's Next for the Google Maps API?
      1. Driving Directions
      2. Integrated Google Services
      3. KML Data
      4. More Data Layers
      5. Beyond the Enterprise
      6. Interface Improvements
      7. Summary
  8. PART 3: Advanced Map Features and Methods
    1. CHAPTER 9: Advanced Tips and Tricks
      1. Debugging Maps
      2. Interacting with the Map from the API
      3. Creating Map Objects with GOverlay
      4. Creating Custom Controls
      5. Adding Tabs to Info Windows
      6. Creating a Custom Info Window
      7. Implementing Your Own Map Type, Tiles, and Projection
      8. Summary
    2. CHAPTER 10: Lines, Lengths, and Areas
      1. Starting Flat
      2. Moving to Spheres
      3. Working with Polylines
      4. What About UTM Coordinates?
      5. Running Afoul of the Date Line
      6. Summary
    3. CHAPTER 11: Advanced Geocoding Topics
      1. Where Does the Data Come From?
      2. Geocoding Based on Postal Codes
      3. Using the TIGER/Line Data
      4. Summary
  9. PART 4: Appendixes
    1. APPENDIX A: Finding the Data You Want
      1. Knowing What to Look For: Search Tips
      2. The Cat Came Back: Revisiting the TIGER/Line
      3. Airports in TIGER/Line
      4. The Government Standard: The GeoNames Data
      5. Shake, Rattle, and Roll: The NOAA Goldmine
      6. For the Space Aficionado in You
    2. APPENDIX B: Google Maps API
      1. class GMap2
      2. class GMapOptions
      3. enum GMapPane
      4. class GKeyboardHandler
      5. interface GOverlay
      6. class GInfoWindow
      7. class GInfoWindowTab
      8. class GInfoWindowOptions
      9. class GMarker
      10. class GMarkerOptions
      11. class GPolyline
      12. class GIcon
      13. class GPoint
      14. class GSize
      15. class GBounds
      16. class GLatLng
      17. class GLatLngBounds
      18. interface GControl
      19. class GControl
      20. class GControlPosition
      21. enum GControlAnchor
      22. class GMapType
      23. class GMapTypeOptions
      24. interface GTileLayer
      25. class GCopyrightCollection
      26. class GCopyright
      27. interface GProjection
      28. class GMercatorProjection
      29. namespace GEvent
      30. class GEventListener
      31. namespace GXmlHttp
      32. namespace GXml
      33. class GXslt
      34. namespace GLog
      35. class GDraggableObject
      36. enum GGeoStatusCode
      37. enum GGeoAddressAccuracy
      38. class GClientGeocoder
      39. class GGeocodeCache
      40. class GFactualGeocodeCache
      41. class GMarkerManager
      42. class GMarkerManagerOptions
      43. Functions
  10. Index