Make sure popups at the borders can still be displayed correctly and closed

This commit is contained in:
Arne Schlüter 2015-02-08 11:36:53 +01:00
commit 04999978dc

View file

@ -10,7 +10,7 @@ var layer = new L.StamenTileLayer('toner-lite')
map.addLayer(layer) map.addLayer(layer)
// restrict viewable area // restrict viewable area
map.setMaxBounds(map.getBounds()) map.setMaxBounds(map.getBounds().pad(0.4))
map.options.minZoom = map.getZoom() map.options.minZoom = map.getZoom()
// get response from server and draw the map // get response from server and draw the map