No commit activity in last 3 years
No release in over 3 years
Mapstraction gemmed up for use in rails 3.1+ apps
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

>= 3.1.0
 Project Readme

Mapstraction

Mapstraction (http://mapstraction.com) is a programming library that provides a common interface for numerous javascript mapping libraries to enable switching from one to another as smoothly as possible. Developers can code their web applications once, and then easily switch the mapping provider based on project needs, terms and conditions, and new functionality.

This gem packages it up for usage in the Rails 3.1+ asset pipeline

Installation

Add this line to your application's Gemfile under the asset scope:

gem 'mapstraction-rails'

And then execute:

$ bundle

Or install it yourself as:

$ gem install mapstraction-rails

Usage

In application.js require mxn.js and the provider you want (i.e. mxn.google.js)

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request