Create bookmark
Map Scripting 101
An Example-Driven Guide to Building Interactive Maps with Bing, Yahoo!, and Google Maps
Notes
Please login to add notes
- Brief Contents
- Contents in Detail
- Acknowledgments
- Introduction
- + Chapter 1: Mapping Basics
-
+
Chapter 2: Plotting Markers and Message Boxes
- #1: Add a Marker to Your Map
- #2: Remove or Hide a Marker
- #3: Show a Message Box When Your Marker Is Clicked
- #4: Show and Hide Message Boxes Without Clicking the Marker
- #5: Create a Custom Icon Marker
- #6: Create Numbered Markers
- #7: Loop Through All Markers
- #8: Determine the Correct Zoom Level to Use Based on Markers
- #9: Filter Out Certain Markers
- #10: Remove or Hide All Markers
- #11: Handle Clusters of Markers
- + Chapter 3: Geocoding
-
+
Chapter 4: Layer It On
- #16: Draw Lines on a Map
- #17: Draw Shapes on a Map
- #18: Add Circles to Show Search Radius
- #19: Draw a Rectangle to Declare an Area
- #20: Draw Lines Along Clicks
- #21: Color States/Countries on a Map
- #22: Add Custom Controls
- #23: Create Your Own Zoom Interface
- #24: Plot Image Thumbnails on a Map
- #25: Overlay an Image on a Map
- #26: Use Custom Tiles
-
+
Chapter 5: Handle Map Events
- Mapstraction’s Event Model
- #27: The User Clicks the Map
- #28: The User Drags the Map
- #29: The Zoom Level Changes
- #30: A Marker Is Added to or Removed from the Map
- #31: A Polyline Is Added to or Removed from the Map
- #32: The User Opens or Closes a Message Box
- #33: The User Clicks a Marker
- #34: Return to the Center When the Message Box Is Closed
- #35: The User Moves the Map Outside Preset Bounds
-
+
Chapter 6: Explore Proximity
- #36: Calculate Distance Between Two Points
- #37: Find True Distance with Routing
- #38: Create Driving Directions
- #39: Determine Closest Marker
- #40: Find a Point Along a Line
- #41: Plot Local Results on a Map
- #42: Retrieve Local Results with HTTP
- #43: Check Whether a Point Is Within a Bounding Box
- #44: Get a Random Point in a Bounding Box
- #45: Check Whether a Point Is Within a Shape
- #46: Get Nearest Locations from Your Own Database
- + Chapter 7: User Location
- + Chapter 8: Data Formats
-
+
Chapter 9: Go Server-Side
- #59: Install PHP
- #60: A Quick PHP Introduction
- #61: Retrieve a Web Page
- #62: Install MySQL
- #63: Store Locations to a Database
- #64: Import Data from a Spreadsheet
- #65: Use MySQL from PHP
- #66: Plot Locations from a Database
- #67: Get Nearest Locations from a Database
- #68: Get Nearest Locations to a Postal Code
- + Chapter 10: Mashup Projects
- + Appendix A: JavaScript Quick Start
- + Appendix B: Mapstraction Reference
- Index
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.
Test the closed alpha on paperc.com

