var map = new L.Map('map', { maxBounds: bounds, //maxBoundsViscosity (value 0 to 1) controlls how much the map resists being dragged out of bounds maxBoundsViscosity: 1.0 });