Document changes to setMaxBounds method as per #1834

This commit is contained in:
David Beitey 2013-07-05 14:13:49 +10:00
parent e372aefbec
commit ae7dd990a7

View File

@ -694,10 +694,11 @@ var map = L.map('map', {
</tr> </tr>
<tr id="map-setmaxbounds"> <tr id="map-setmaxbounds">
<td><code><b>setMaxBounds</b>( <td><code><b>setMaxBounds</b>(
<nobr>&lt;<a href="#latlngbounds">LatLngBounds</a>&gt; <i>bounds</i> )</nobr> <nobr>&lt;<a href="#latlngbounds">LatLngBounds</a>&gt; <i>bounds</i></nobr>,
<nobr>&lt;<a href="#map-zoompanoptions">zoom/pan options</a>&gt; <i>options?</i> )</nobr>
</code></td> </code></td>
<td><code><span class="keyword">this</span></code></td> <td><code><span class="keyword">this</span></code></td>
<td>Restricts the map view to the given bounds (see <a href="#map-maxbounds">map maxBounds</a> option).</td> <td>Restricts the map view to the given bounds (see <a href="#map-maxbounds">map maxBounds</a> option), passing the given animation options through to `setView`, if required.</td>
</tr> </tr>
<tr id="map-locate"> <tr id="map-locate">
<td><code><b>locate</b>( <td><code><b>locate</b>(