update docs
This commit is contained in:
parent
f084b3654a
commit
d6d130edeb
@ -121,7 +121,7 @@
|
||||
|
||||
<h2 id="map-class">L.Map</h2>
|
||||
|
||||
<p>The central class of the API — it is used to create a map on a page and manipulate it.</p>
|
||||
<p>The central class of the API — it is used to create a map on a page and manipulate it.</p>
|
||||
|
||||
<h3>Usage example</h3>
|
||||
|
||||
@ -221,7 +221,7 @@ map.addLayer(cloudmade);</code></pre>
|
||||
<tr>
|
||||
<td><code>setView( <<a href="#latlng">LatLng</a>> <i>center</i>, <Number> <i>zoom</i>, <Boolean> <i>forceReset?</i> )</code></td>
|
||||
<td><code>this</code></td>
|
||||
<td>Sets the view of the map (geographical center and zoom). If <code>forceReset</code> is set to <code>true</code>, the map is reloaded even if it's eligible for pan animation (<code>false</code> by default).</td>
|
||||
<td>Sets the view of the map (geographical center and zoom). If <code>forceReset</code> is set to <code>true</code>, the map is reloaded even if it's eligible for pan or zoom animation (<code>false</code> by default).</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>setZoom( <Number> <i>zoom</i> )</code></td>
|
||||
@ -266,7 +266,7 @@ map.addLayer(cloudmade);</code></pre>
|
||||
<tr>
|
||||
<td><code>invalidateSize()</code></td>
|
||||
<td><code>this</code></td>
|
||||
<td>Checks if the map container size changed and updates the map if so — call it after you've changed the map size dynamically.</td>
|
||||
<td>Checks if the map container size changed and updates the map if so — call it after you've changed the map size dynamically.</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@ -660,7 +660,7 @@ map.addLayer(polyline);</code></pre>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>L.LatLng( <Number> <i>latitude</i>, <Number> <i>longitude</i>, <Boolean> <i>noWrap?</i> )</code></td>
|
||||
<td>Creates a LatLng object with the given latitude and longitude. Wraps longitude to lie between -180 and 180 and clamps longitude between -90 and 90 by default — you can disable this with the noWrap argument.</td>
|
||||
<td>Creates a LatLng object with the given latitude and longitude. Wraps longitude to lie between -180 and 180 and clamps longitude between -90 and 90 by default — you can disable this with the noWrap argument.</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user