A Leaflet plugin to pan by clicking on map borders.
JavaScript
Latest commit 892e560 Aug 8, 2013 @themendo themendo Only 4 directions
Permalink
Failed to load latest commit information.
examples set borderWidth to 200px Jul 3, 2013
src Only 4 directions Aug 7, 2013
LICENSE first commit Jul 1, 2013
README.md Update required version on README.md Jul 1, 2013

README.md

Leaflet.BorderPan

A Leaflet plugin to Pan on border click event. It's useful when Dragging is not available (Some embedded systems with resistive touchscreen). Demo.

Tested with Leaflet 0.4.1, 0.5.1 and 0.6.2

Usage

<script type="text/javascript" src="js/Map.BorderPan.js"></script>
var map = new L.Map('map', {borderPan: true, borderPanOffset: 300, borderWidth: 100});

License

This work is licensed under a Creative Commons Attribution 3.0 Unported License.