Iwillig/update leaflet object

Update the Leaflet integration object to use Function.prototype.bind
over var capturing. This is clearer to the reader and more OO. This also
aligns the Leaflet code more with the rest of the code base.

Hand tested it, seems to not break anything.