Merge branch 'gh-pages' of https://github.com/Leaflet/Leaflet into gh-pages

# By Phillip Smith (1) and Yohan Boniface (1)
# Via Vladimir Agafonkin (2) and Yohan Boniface (1)
* 'gh-pages' of https://github.com/Leaflet/Leaflet:
  Add getWest/South/East/North to reference
  Bump leaflet links to 0.5
This commit is contained in:
Vladimir Agafonkin 2013-02-06 16:03:28 +02:00
commit 3d75852a90
2 changed files with 23 additions and 3 deletions

View File

@ -19,14 +19,14 @@ Before writing any code for the map, you need to do the following preparation st
* Include Leaflet CSS files in the head section of your document:
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.4/leaflet.css" />
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.5/leaflet.css" />
<!--[if lte IE 8]>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.4/leaflet.ie.css" />
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.5/leaflet.ie.css" />
<![endif]-->
* Include Leaflet JavaScript file:
<script src="http://cdn.leafletjs.com/leaflet-0.4/leaflet.js"></script>
<script src="http://cdn.leafletjs.com/leaflet-0.5/leaflet.js"></script>
* Put a `div` element with a certain `id` where you want your map to be:

View File

@ -3131,6 +3131,26 @@ map.panTo(new L.LatLng(50, 30));</code></pre>
<td><code><a href="#latlng">LatLng</a></code></td>
<td>Returns the south-east point of the bounds.</td>
</tr>
<tr>
<td><code><b>getWest</b>()</code></td>
<td><code>Number</code></td>
<td>Returns the west longitude of the bounds.</td>
</tr>
<tr>
<td><code><b>getSouth</b>()</code></td>
<td><code>Number</code></td>
<td>Returns the south latitude of the bounds.</td>
</tr>
<tr>
<td><code><b>getEast</b>()</code></td>
<td><code>Number</code></td>
<td>Returns the east longitude of the bounds.</td>
</tr>
<tr>
<td><code><b>getNorth</b>()</code></td>
<td><code>Number</code></td>
<td>Returns the north latitude of the bounds.</td>
</tr>
<tr>
<td><code><b>getCenter</b>()</code></td>
<td><code><a href="#latlng">LatLng</a></code></td>