Programmable Web 's Adam Duvander has written the definitive guide to Mapstraction in Map Scripting 101; available from the US and UK Amazon stores.
Mapstraction is a Javascript library that provides a single, common interface for a wide variety of Javascript map APIs. It’s designed to enable a developer to switch from one maps API to another as smoothly and as quickly as possible.
Code your application once and once only; then switch your mapping provider as you desire, depending on your personal tastes, the quality of maps in your area or any other reason you can think of.