From 04999978dc5ef9eb1649ae84731fd0d15aa0f36d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arne=20Schl=C3=BCter?= Date: Sun, 8 Feb 2015 11:36:53 +0100 Subject: [PATCH] Make sure popups at the borders can still be displayed correctly and closed --- static/js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/main.js b/static/js/main.js index 9415d90..a62a7b0 100644 --- a/static/js/main.js +++ b/static/js/main.js @@ -10,7 +10,7 @@ var layer = new L.StamenTileLayer('toner-lite') map.addLayer(layer) // restrict viewable area -map.setMaxBounds(map.getBounds()) +map.setMaxBounds(map.getBounds().pad(0.4)) map.options.minZoom = map.getZoom() // get response from server and draw the map