diff --git a/static/js/main.js b/static/js/main.js index 62b282e..3c33a9d 100644 --- a/static/js/main.js +++ b/static/js/main.js @@ -9,6 +9,10 @@ var layer = new L.StamenTileLayer('toner-lite'); map.addLayer(layer); + // restrict viewable area + map.setMaxBounds(map.getBounds()); + map.options.minZoom = map.getZoom(); + // get response from server and draw the map var response; $.getJSON('/articles/')