Hacking Google Maps and Google Earth (ExtremeTech)

(Dana P.) #1

Contents xvii



  • Part I: Basics Introduction xxi

  • Chapter 1: Using Geographical Information

  • Chapter 2: The Google Local Interface

  • Chapter 3: The Google Maps API

  • Chapter 4: The Google Web API

  • Chapter 5: Storing and Sharing Information

  • Part II: Instant Gratification

  • Chapter 6: Working with Existing Address Information

  • Chapter 7: Extending the Google API Examples

  • Chapter 8: Discovering Overlays and Mash-ups

  • Part III: Google Maps Hacks

  • Chapter 9: Using Overlays

  • Chapter 10: Overlaying Statistical Data

  • Chapter 11: Building a Community Site

  • Chapter 12: The Realtors and Archaeologists Toolkit

  • Chapter 13: I Need to Get To....

  • Chapter 14: Merging with Flickr Photos

  • Part IV: Google Earth Hacks.

  • Chapter 15: Introducing Google Earth

  • Chapter 16: Generating Google Earth Feeds

  • Chapter 17: History and Planning with Google Earth

  • Appendix: Resources

  • Index

  • Part I: Basics Introduction xxi

  • Chapter 1: Using Geographical Information

  • Understanding Your Location

  • Mapping a Location

  • Defining a Location

  • Moving to Another Location

  • Thinking in Terms of Geographical Location

  • To Find Places

  • To Identify Photo Subjects

  • To Understand Statistical Data.

  • To Generate Data from Maps

  • Wrapping Up

  • Chapter 2: The Google Local Interface

  • System Requirements

  • Examining the Main Interface.

  • Interacting with the Map

  • Moving the Map

  • Zooming In and Out

  • Changing the View Types.

  • Conducting Searches

  • Understanding Markers

  • Markers

  • Pop-ups

  • Links

  • Overlays

  • Wrapping Up

  • Chapter 3: The Google Maps API

  • Using the API Key.

  • Browser Compatibility

  • Basic Components of a Google Maps Application

  • XHTML (Extensible HTML)

  • VML (Vector Markup Language)

  • Styles and Elements

  • XML (Extensible Markup Language)

  • JavaScript

  • Understanding API Terminology

  • Overlays

  • Events

  • Information Windows

  • Controls

  • The Google Maps Classes

  • GMap

  • GMarker

  • GPolyline

  • GIcon

  • GEvent

  • GXmlHttp

  • GXml

  • GXslt

  • GPoint

  • GSize

  • GBounds

  • Wrapping Up

  • Chapter 4: The Google Web API

  • Downloading the Google Web API

  • Using the Google Web API

  • Conducting Searches

  • Comparing Language Samples

  • Wrapping Up

  • Chapter 5: Storing and Sharing Information.

  • Format Types and Uses

  • Using Flat-Text Files

  • Using XML

  • Using an RDBMS

  • Parsing and Generating Text Files

  • Reading Delimited Files

  • Writing Delimited Files.

  • Reading Fixed-Width Files

  • Writing Fixed-Width Files

  • Updating Text Files

  • Generating and Parsing XML

  • Generating XML

  • Parsing XML with Perl

  • Parsing XML with JavaScript

  • Working with SQL

  • Creating a Database Structure

  • Interfacing to the Database

  • Populating the Database

  • Extracting Data from the Database

  • Wrapping Up

  • Part II: Instant Gratification

  • Chapter 6: Working with Existing Address Information

  • Looking Up Geocode Information

  • Looking Up U.S. Information

  • Looking Up Global Information

  • Wrapping Up

  • Chapter 7: Extending the Google API Examples

  • Installing a Simple Example

  • Adding Controls to the Map

  • Moving about a Map

  • Adding Overlays

  • Adding a Single Marker

  • Adding Multiple Markers

  • Adding Lines

  • Opening an Info Window

  • Event Listeners

  • Monitoring Movement

  • Adding Markers to Multiple Maps

  • Monitoring Location

  • Wrapping Up

  • Chapter 8: Discovering Overlays and Mash-ups

  • Traffic Solutions

  • Toronto Transit Commission (TTC) Map

  • Toronto Traffic Cameras.

  • U.K. Speed Cameras

  • Trackers and Locators

  • Hurricanes

  • Satellites

  • Blackbirds

  • Wrapping Up

  • Part III: Google Maps Hacks

  • Chapter 9: Using Overlays

  • Building in Multiple Points

  • Extending the Source HTML.

  • Making the Generation Dynamic with a Script

  • Pulling the Data from a Database

  • Creating a Suitable Database Structure

  • Generating XML from that Information

  • Extending the Information Pane

  • Formatting Information Panes.

  • Creating More Detailed Windows from XML and XSLT

  • Making Your Example Truly Dynamic.

  • Dividing the Application into Components

  • The JavaScript Component

  • Generating the XML on the Backend.

  • Using the New Map

  • Extending the Content

  • Wrapping Up

  • Chapter 10: Overlaying Statistical Data

  • Generating/Obtaining Statistical Information

  • The U.S. Census Data

  • Converting the Source Data to XML

  • Using Polylines

  • Basic Point Map

  • Building an Internal Data Representation

  • Adding a Bar Graph

  • Adding a Circle

  • Plotting Multiple Data Sets

  • Using Custom Icons

  • Building Your Own Icon

  • Putting the Icon on a Map

  • Using Icon Size to Represent Data

  • Wrapping Up

  • Chapter 11: Building a Community Site

  • Displaying Highlighted Points

  • Adding More Data to the Output

  • Storing and Creating the Data

  • Backend Database Interface

  • Using Custom Icons to Highlight Different Attractions

  • Filtering Data through Layers of Information

  • HTML Preamble

  • Global Objects

  • Entity Object

  • Initial Function

  • Loading a List of Types

  • Moving the Map

  • Removing Existing Markers

  • Adding Markers

  • Loading Markers for a Type

  • Recentering the Map

  • Closing HTML

  • Final Application

  • Wrapping Up

  • Chapter 12: The Realtors and Archaeologists Toolkit

  • Alternative Markers

  • The TLabel Extension

  • Building a TLabel Application

  • Overlaying Images and Drawings

  • The TPhoto Extension

  • Using TPhoto Overlays

  • Identifying Elements from Click Locations

  • Creating a Unique Map Object

  • Registering the Objects on the Map.

  • Identifying the Click Location

  • Resetting the Map Location

  • Resetting the Object Opacity

  • Final Overlay Application

  • Wrapping Up

  • Chapter 13: I Need to Get To...

  • Front-End Interface

  • HTML Wrapper

  • Global Variables

  • Enabling the Route Recording Process

  • Disabling the Route Recording Process

  • Clearing the Last Point

  • Clearing the Current Route

  • Initializing a New Route.

  • Deleting a Route

  • Saving a Route

  • Loading a List of Routes

  • Loading a Single Route

  • Adding Markers

  • Initializing the Application

  • Recentering and Zooming the Map

  • Backend Database Interface

  • Database Structure.

  • Basic Wrapper

  • Message Response

  • Listing Existing Routes

  • Saving a Route

  • Deleting an Existing Route

  • Obtaining a Single Route

  • Calculating Distance

  • Using the Application

  • Wrapping Up

  • Chapter 14: Merging with Flickr Photos

  • Flickr and the Flickr API

  • The Flickr API

  • Getting a Flickr API Key

  • Adding Geographic Data to Your Flickr Photos

  • Adding Flickr Photos to a Google Map

  • A Flickr Proxy

  • Searching Flickr for Photos

  • Getting Individual Photo Data

  • Wrapping Up

  • Part IV: Google Earth Hacks

  • Chapter 15: Introducing Google Earth

  • Google Earth Overview

  • Obtaining the Application.

  • Google Earth Features

  • Extending Google Earth Information

  • Exporting Your Tags

  • Basic KML Principles

  • Wrapping Up

  • Chapter 16: Generating Google Earth Feeds

  • Showing Points

  • Generating KML from Existing Data.

  • Generating KML Dynamically

  • Adding Icons

  • Wrapping Up

  • Chapter 17: History and Planning with Google Earth

  • Location Photos

  • Using a Photo for a Placemark

  • Scaling the Icon

  • Setting a View

  • Adding Detail to a Placemark

  • Final KML.

  • Generating the Information in Google Earth

  • Generating a KMZ File

  • Revisiting the Realtor’s Toolkit

  • Using an Overlay

  • Creating a 3D Structure

  • Wrapping Up

  • Appendix: Resources

  • Google Resources.

  • Google Maps API

  • Google Maps API Documentation

  • Google Maps API Help

  • Google Web API

  • Google Maps Groups

  • Information Sources

  • Google Maps Mania

  • Maplandia.com

  • Google Maps on Wikipedia

  • Google Sightseeing

  • Geocoders

  • MGeocoder

  • Geocode America

  • Geocoder.

  • Google Maps Tools

  • gMap it!

  • Mobile GMaps

  • MapBuilder

  • MapKi

  • Competitors and Alternatives

  • MapQuest

  • Virtual Earth.

  • Yahoo! Maps

  • A9 Maps

  • Multimap.com

  • Map24

  • Index

Free download pdf