Map Scripting 101: An Example-driven Guide to Building Interactive Maps with Bing, Yahoo!, and Google Maps

Front Cover
No Starch Press, 2010 - Computers - 376 pages

Websites like MapQuest and Google Maps have transformed the way we think about maps. But these services do more than offer driving directions—they provide APIs that web developers can use to build highly customized map-based applications.

In Map Scripting 101, author Adam DuVander delivers 73 immediately useful scripts that will show you how to create interactive maps and mashups. You'll build tools like a local concert tracker, a real-time weather map, a Twitter friend-finder, an annotated map of Central Park, and much more. And because the book is based on the cross-platform Mapstraction JavaScript library, everything you create will be able to use nearly any mapping service, including OpenStreetMap, MapQuest, Google, Yahoo!, and Bing.

You'll also learn how to:

* Create, embed, and manipulate basic maps by setting zoom levels and map boundaries
* Show, hide, and filter location markers and info-bubbles
* Customize your maps for visitors based on their location
* Use common data formats like GPS XML, Google Earth's KML, and GeoRSS
* Create graphical overlays on maps to better analyze data and trends
* Use freely available geodata from websites like Yelp and Upcoming—and public domain geodata from the US government

Map Scripting 101 is perfect for any web developer getting started with map scripting, whether you want to track earthquakes around the world, or just mark the best coffee shops in Dubuque.

 

Contents

Mapping Basics
1
Plotting Markers and Message Boxes
23
Geocoding
43
Layer It On
61
Handle Map Events
101
Explore Proximity
117
User Location
153
Data Formats
173
Go ServerSide
205
Mashup Projects
235
JavaScript Quick Start
289
Mapstraction Reference
307
Index
341
Copyright

Common terms and phrases

About the author (2010)

Adam DuVander writes about geolocation, web development, and APIs for Programmable Web and WebMonkey, Wired.com's web developer resource. He has presented his work at SXSW and O'Reilly's Where 2.0 conference. He lives at 45° 33' 25" N, 122° 31' 55" W (otherwise known as Portland, Oregon).

Bibliographic information