Updated to work on touch devices and with leaflet 0.7.2