Technology

mapstraction_20080710.jpg

Mapstraction is an abstracted Javascript mapping API that can make use of Google Maps, Microsoft Virtual Earth, Yahoo Maps and Mapquest. Instead of deciding on a particular mapping provider, you can build your web application with Mapstraction and easily switch to a different service by changing a single line of code. From the Mapstraction site:

Mapstraction additionally fills some holes each provider’s current offerings (taking advantage of existing open source solutions where possible) to normalise the feature set across platforms. In the future, Mapstraction will also talk to OpenStreetMap for people who want to build maps without restrictions on derived works.

Features

  • Support for 9 major mapping providers
  • Point, Line, Polygon support
  • Image overlay
  • GeoRSS and KML feed import
  • Geocoding of addresses
  • Driving directions

There’s an introductory walkthrough on Webmonkey that shows you how to do the basics like instantiating a map with various providers and adding markers with the abstracted API. The Mapstraction web site also has demos for geocoding, drawing polygons, and swapping map tiles. The API appears to cover all the bases. I can’t think of any reason to directly use a specific map provider instead of this.

Mapstraction
WebMonkey Mapstraction Tutorial

0 thoughts on “Mapstraction – map abstraction API for Javascript

  1. Weird question, but is there any reason you couldn’t use this to deliver an internet connection to a deactivated first-gen iPhone?

  2. Mike, you should be able to get your 1G connected over the ad-hoc network to your new phone. I don’t think there’s a GUI for adjusting the system’s proxy settings, however you can manually tweak some config files to make it work. I don’t have the equipment to get the exact settings for you, but check out the discussion at the following URL to get ideas about how to adjust the proxy settings for mobile Safari.

    http://etler.livejournal.com/18726.html

    Let us know if you get the details sorted out and I’ll post it to the homepage in case it’s useful for others.

    -J

Tagged