01_097786 ffirs.qxp 1/8/07 9:54 PM Page iii Yahoo!® Maps Mashups Charles Freedman 01_097786 ffirs.qxp 1/8/07 9:54 PM Page ii 01_097786 ffirs.qxp 1/8/07 9:54 PM Page i Yahoo!® Maps Mashups 01_097786 ffirs.qxp 1/8/07 9:54 PM Page ii 01_097786 ffirs.qxp 1/8/07 9:54 PM Page iii Yahoo!® Maps Mashups Charles Freedman 01_097786 ffirs.qxp 1/8/07 9:54 PM Page iv Yahoo!® Maps Mashups Published by Wiley Publishing, Inc. 10475 Crosspoint Boulevard Indianapolis, IN 46256 www.wiley.com Copyright © 2007 by Wiley Publishing, Inc., Indianapolis, Indiana Published simultaneously in Canada ISBN: 978-0-470-09778-6 Manufactured in the United States of America 10 9 8 7 6 5 4 3 2 1 Library of Congress Cataloging-in-Publication Data: Freedman, Charles, 1977– Yahoo! Maps mashups / Charles Freedman. p. cm. Includes index. ISBN-13: 978-0-470-09778-6 (paper/website) ISBN-10: 0-470-09778-7 (paper/website) 1. Geographic information systems. 2. Yahoo! Maps. 3. Application program interfaces (Computer software) I. Title. G70.212.F74 2007 910.285'4678—dc22 2006038751 No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, scanning or otherwise, except as permitted under Sections 107 or 108 ofthe 1976 United States Copyright Act, without either the prior written permission of the Publisher, or authorization through payment of the appropriate per-copy fee to the Copyright Clearance Center, 222 Rosewood Drive, Danvers, MA 01923, (978) 750-8400, fax (978) 646-8600. Requests to the Publisher for permission should be addressed to the Legal Department, Wiley Publishing, Inc., 10475 Crosspoint Blvd., Indianapolis, IN 46256, (317) 572-3447, fax (317) 572-4355, oronline at http://www.wiley.com/go/permissions. LIMIT OF LIABILITY/DISCLAIMER OF WARRANTY: THE PUBLISHER AND THE AUTHOR MAKE NO REPRESEN- TATIONS OR WARRANTIES WITH RESPECT TO THE ACCURACYOR COMPLETENESS OF THE CONTENTS OF THIS WORK AND SPECIFICALLY DISCLAIM ALL WARRANTIES, INCLUDING WITHOUT LIMITATION WAR- RANTIES OF FITNESS FOR APARTICULAR PURPOSE. NO WARRANTY MAY BE CREATED OR EXTENDED BY SALES OR PROMOTIONALMATERIALS. THE ADVICE AND STRATEGIES CONTAINED HEREIN MAYNOT BE SUIT- ABLE FOR EVERYSITUATION. THIS WORK IS SOLD WITH THE UNDERSTANDING THAT THE PUBLISHER IS NOT ENGAGED IN RENDERING LEGAL, ACCOUNTING, OR OTHER PROFESSIONAL SERVICES. IF PROFESSIONAL ASSISTANCE IS REQUIRED, THE SERVICES OF ACOMPETENT PROFESSIONALPERSON SHOULD BE SOUGHT. NEITHER THE PUBLISHER NOR THE AUTHOR SHALLBE LIABLE FOR DAMAGES ARISING HEREFROM. THE FACT THAT AN ORGANIZATION OR WEBSITE IS REFERRED TO IN THIS WORK AS ACITATION AND/OR A POTENTIALSOURCE OF FURTHER INFORMATION DOES NOT MEAN THAT THE AUTHOR OR THE PUBLISHER ENDORSES THE INFORMATION THE ORGANIZATION OR WEBSITE MAYPROVIDE OR RECOMMENDATIONS IT MAYMAKE. FURTHER, READERS SHOULD BE AWARE THAT INTERNET WEBSITES LISTED IN THIS WORK MAY HAVE CHANGED OR DISAPPEARED BETWEEN WHEN THIS WORK WAS WRITTEN AND WHEN IT IS READ. For general information on our other products and services please contact our Customer Care Department within the United States at (800) 762-2974, outside the United States at (317) 572-3993 or fax (317) 572-4002. Trademarks:Wiley, the Wiley logo, Wrox, the Wrox logo, Programmer to Programmer, and related trade dress are trademarks or registered trademarks of John Wiley & Sons, Inc. and/or its affiliates, in the United States and other countries, and may not be used without written permission. Yahoo! is a registered trademark of Yahoo!, Inc. All other trademarks are the property of their respective owners. Wiley Publishing, Inc., is not associated with any product or vendor mentioned in this book. Wiley also publishes its books in a variety of electronic formats. Some content that appears in print may not be available in electronic books. 01_097786 ffirs.qxp 1/8/07 9:54 PM Page v To Jamie, my wife. With your unconditional love and support you inspire me to live my dreams. To my parents and grandparents. You showed me the world from all angles before I ever looked at a map. 01_097786 ffirs.qxp 1/8/07 9:54 PM Page vi 01_097786 ffirs.qxp 1/8/07 9:54 PM Page vii About the Author Charles Freedman is a Senior Flash Developer for Yahoo! with a communications degree in film and television from Boston University. His development approach combines an education in multimedia with expertise and passion for building engaging and intuitive applications and content. In recent years, Charles has produced some of the most highly visible Flash platform work, leading development for Yahoo! Maps and deploying modules for the home pages of eBay, eBay China and Fidelity. Born in Boston, Charles relocated with his wife Jamie to sunny Santa Clara, California, to join Yahoo! in 2005. Still a season ticket holder, he plans many trips back East to see his beloved Red Sox winanother World Series.