mirror of
https://github.com/heyarne/berliner-winter.git
synced 2026-05-06 19:23:39 +02:00
Restrict viewable map area area
This commit is contained in:
parent
952f9aee96
commit
611b97510b
1 changed files with 4 additions and 0 deletions
|
|
@ -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/')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue