update docs

This commit is contained in:
Mourner 2011-03-29 14:56:23 +03:00
parent f084b3654a
commit d6d130edeb

View File

@ -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 &mdash; 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( &lt;<a href="#latlng">LatLng</a>&gt; <i>center</i>, &lt;Number&gt;&nbsp;<i>zoom</i>, &lt;Boolean&gt;&nbsp;<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( &lt;Number&gt;&nbsp;<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 &mdash; 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( &lt;Number&gt;&nbsp;<i>latitude</i>, &lt;Number&gt;&nbsp;<i>longitude</i>, &lt;Boolean&gt;&nbsp;<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 &mdash; you can disable this with the noWrap argument.</td>
</tr>
</table>