[Pkg-javascript-commits] [leaflet] 250/301: add max bounds outline to debug file for easier testing

Jonas Smedegaard js at moszumanska.debian.org
Mon Jan 27 22:22:54 UTC 2014


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository leaflet.

commit e8f249e937c53d85aa9894740cb123b6746132d2
Author: Vladimir Agafonkin <agafonkin at gmail.com>
Date:   Thu Nov 14 17:21:53 2013 +0200

    add max bounds outline to debug file for easier testing
---
 debug/map/max-bounds.html | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/debug/map/max-bounds.html b/debug/map/max-bounds.html
index ca390f9..7de4eac 100644
--- a/debug/map/max-bounds.html
+++ b/debug/map/max-bounds.html
@@ -30,6 +30,8 @@
 			maxBounds: bounds
 		});
 
+		var latlngs = L.rectangle(bounds).getLatLngs();
+		L.polyline(latlngs.concat([latlngs[0]])).addTo(map);
 
 	</script>
 </body>

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/leaflet.git



More information about the Pkg-javascript-commits mailing list