Port acts_as_mappable method of the Rails plugin "geokit-rails" as a gem