From 4ab4572e0e6a64d3a07b47c30633211108340ab4 Mon Sep 17 00:00:00 2001 From: Norbert Renner Date: Sun, 8 Mar 2015 09:37:50 +0100 Subject: [PATCH] expose map instance for console debugging --- js/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/index.js b/js/index.js index f49fd30..212714e 100644 --- a/js/index.js +++ b/js/index.js @@ -76,6 +76,10 @@ }).addTo(map); map.addControl(new BR.Search()); + + // expose map instance for console debugging + BR.debug = BR.debug || {}; + BR.debug.map = map; } function initApp() {