YYZtech.ca

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

Beyond GoogleMaps, using Bing and Yahoo maps in your web apps.

By: Staff

AdSense

When developers have looked to add an interactive map to their web pages Google Maps is probably near the list of providers, however there are several other choices available, not to mention what if you want to change providers at some point in the future? Map Scripting provides an answer to that question that many readers might have heard of.

The book covers creating interactive maps using Mapstraction, a library that provides a common API for various JavaScript mapping APIs. According to Mapstraction's site, it supports more than 11 major mapping providers including Google, Bing and Yahoo as well as less-known ones like the crowd-sourced OpenStreetMap. Early on the author makes a good point about one reason you might want to have the ability to change the map service you use: what if they start charging for it- or put advertisements all over a free version of the maps? the later being certainly possible.

Map Scripting has 10 chapters that deal with all the usual tasks you'd expect to do with a map API: geocoding, drawing on the map, event handling, user location and mash-ups. All these are demonstrated using Mapstraction and, if necessary, using the native functions of an API. One case is an example that calculates the true distance between two locations using Google’s route calculator, then uses Mapstraction to plot the route. The book wraps up with chapters on server-site operations in PHP and a set of mash-ups using YQL, and Yahoo! Pipes. As well, there are two appendix covering the Mapstraction API and an introduction to Javascript and jQuery. The tutorials are fairly basic, but they seem to be intended to give readers enough knowledge to understand the examples.

Previous to this book there where only a few books on using Google Maps, probably going back to Apress' Beginning Google Maps Applications with PHP and Ajax from 2006 and I was unable to find anything on specifically on Yahoo maps. Looking back at Beginning Google Maps, it’s nice to see how much time a library like Mapstraction saves.

Date published: 08-Nov-2010

AdSense

Comments

AdSense

Related

Eloquent JavaScript

By treating JavaScript as a language in its own right, the author has produced a solid guide to learning a language you might think you already knew.

Professional CodeIgniter

Set your code on fire, professionally. Seriously, it's a bright red book about the popular PHP framework.

Pro Javascript Techniques

John Resig knows Javascript.

Designing Web Interfaces

Designing sites that are easy to use is still a challenge because the challenge is only partly technical.

Prototype and script.aculo.us

Using the Prototype and script.aculo.us Javascript libraries to simply your life.

Sponsored



2017 YYZTech



For American computers stores, visit: AmericanComputerDealer.com

Google+