imgViewer2, Extensible and responsive jQuery plugin to zoom and pan images based on the Leaflet mapping library rails wrap.
Installation
Add this line to your application's Gemfile:
gem 'imgViewer2-rails'
And then execute:
$ bundle
How to use
Add to your JavaScript manifest file (application.js):
//= require leaflet
//= require imgViewer2
Add to your application-wide CSS file (application.css):
= require leaflet
Visit official doc