Skip to content

Mapstraction and OpenLayers: abstraction layers for mapping APIs

In Chapter 13, I cover how to use some of major mapping APIs: Google Maps, Yahoo, Mapquest, and Microsofts'. It would be convenient to be able to not worry about the differences among the maps and easily switch among the various maps. That's the promise of a mapping"abstraction" library such as Mapstraction (http://mapstraction.com). We'll have to see how and whether it is widely used to gauge the library's effectiveness.

Along a different vein is OpenLayers (http://www.openlayers.org/), which is:

    a pure JavaScript library for displaying map data in most modern web browsers, with no server-side dependencies. OpenLayers implements a (still-developing) JavaScript API for building rich web-based geographic applications, similar to the Google Maps and MSN Virtual Earth APIs, with one important difference — OpenLayers is Free Software, developed for and by the Open Source software community.

You can try out OpenLayers in FlashEarth. Go to the site and select OpenLayers. You might have to zoom out sufficiently to see any tiles (e.g., http://www.flashearth.com/?lat=38.417308&lon=-122.271821&z=9.9&r=0&src=ol)

Post a Comment

You must be logged in to post a comment.