Fork me on GitHub


The Javascript Mapping Abstraction Library

What Is Mapstraction?

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.

Why Use Mapstraction?

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.

Switching mapping providers in Mapstraction is often as simple as changing just two lines of code in your application.

Mapstraction Features

  • Support for all the major mapping APIs
    • CloudMade
    • ESRI ArcGIS
    • Google – v2 and v3
    • Leaflet
    • MapQuest and MapQuest Open
    • Microsoft Bing – v6 and v7
    • Nokia Here
    • OpenLayers
    • Ordnance Survey OpenSpace
    • Nokia Ovi
    • Yandex
  • Dynamic switching from one maps API to another
  • Show Markers, Points, Lines and Polygons on your map
  • Add image overlays and base map tiles to your application

Mapstraction Is Open Source

Mapstraction is an open source project with the source code freely available from GitHub and is released under the BSD License.