update docs and other minor things

This commit is contained in:
Vladimir Agafonkin 2012-07-27 13:19:51 +03:00
parent 5509c7375d
commit 72c81f0f67
3 changed files with 23 additions and 3 deletions

View File

@ -14,7 +14,7 @@ Besides the library itself, the download package contains full source code, unit
</tr>
<tr>
<td class="width100"><a href="https://github.com/CloudMade/Leaflet/zipball/v0.4">Leaflet 0.4</a></td>
<td>Stable version, released on July 27, 2012</td>
<td>Stable version, released on July 30, 2012</td>
</tr>
<tr>
<td class="width100"><a href="https://github.com/CloudMade/Leaflet/zipball/v0.3.1">Leaflet 0.3.1</a></td>

View File

@ -2,14 +2,14 @@
layout: default
---
<p class="notice">July 27, 2012 &mdash; Leaflet 0.4 Released with <em>Lots</em> of Exciting Improvements! &mdash; <a href="#">Read More in the Blog</a></p>
<p class="notice">July 30, 2012 &mdash; Leaflet 0.4 Released with <em>Lots</em> of Exciting Improvements! &mdash; <a href="#">Read More in the Blog</a></p>
Leaflet is a modern open-source JavaScript library for mobile-friendly interactive maps. It is developed by [Vladimir Agafonkin][] of [CloudMade][] with a&nbsp;team of dedicated [contributors][]. Weighing just about <abbr title="That's 99 KB minified and 170 KB in the source form, with 8 KB of CSS (1.8 KB gzipped) and 10 KB of images">26 KB of gzipped JS code</abbr>, it still has all the [features][] most developers ever need for online maps, while providing a smooth, pleasant user experience.
It is built from the ground up to work efficiently on both desktop and mobile platforms like iOS and Android, taking advantage of HTML5 and CSS3 on modern browsers. The focus is on usability, performance, small size, [A-grade][] browser support and [a simple API][] with <abbr title="Simplicity and reasonable defaults so that the API doesn't get in your way, while not losing flexibility">convention over configuration</abbr>. The OOP-based [code of the library][] is designed to be modular, extensible and very easy to understand.
{: .usedby}
Used by: [Flickr](http://flickr.com/map) [foursquare](https://foursquare.com/) [Wikimedia](http://blog.wikimedia.org/2012/04/05/new-wikipedia-app-for-ios-and-an-update-for-our-android-app/) [Meetup](http://www.meetup.com/) [Geocaching](http://geocaching.com) [StreetEasy](http://streeteasy.com/) [Nestoria](http://www.nestoria.co.uk) [City-Data.com](http://city-data.com) [CityMaps](http://www.citymaps.com) [Chartbeat](http://chartbeat.com/) [GIS Cloud](http://www.giscloud.com/) [skobbler](http://maps.skobbler.com/) ...
Used by: [Flickr](http://flickr.com/map) [foursquare](https://foursquare.com/) [Wikimedia](http://blog.wikimedia.org/2012/04/05/new-wikipedia-app-for-ios-and-an-update-for-our-android-app/) [Meetup](http://www.meetup.com/) [Geocaching](http://geocaching.com) [StreetEasy](http://streeteasy.com/) [Nestoria](http://www.nestoria.co.uk) [City-Data.com](http://city-data.com) [Topix](http://topix.com/) [Chartbeat](http://chartbeat.com/) [GIS Cloud](http://www.giscloud.com/) [CityMaps](http://www.citymaps.com) ...
<div id="map" class="map"></div>

View File

@ -1494,6 +1494,12 @@ var map = L.map('map', {
<td><code><span class="number">1.0</span></code></td>
<td>The opacity of the tile layer.</td>
</tr>
<tr>
<td><code><b>zIndex</b></code></td>
<td><code>Number</code></td>
<td><code><span class="literal">null</span></code></td>
<td>The explicit zIndex of the tile layer. Not set by default.</td>
</tr>
<tr>
<td><code><b>unloadInvisibleTiles</b></code></td>
<td><code>Boolean</code></td>
@ -1586,6 +1592,14 @@ var map = L.map('map', {
<td><code><span class="keyword">this</span></code></td>
<td>Changes the opacity of the tile layer.</td>
</tr>
<tr>
<td><code><b>setZIndex</b>(
<nobr>&lt;Number&gt; <i>zIndex</i> )</nobr>
</code></td>
<td><code><span class="keyword">this</span></code></td>
<td>Sets the zIndex of the tile layer.</td>
</tr>
<tr>
<td><code><b>redraw</b>()</code></td>
<td>-</td>
@ -3721,6 +3735,12 @@ L.control.layers(baseLayers, overlays).addTo(map);</code></pre>
<td><code><span class="literal">true</span></code></td>
<td>If <code><span class="literal">true</span></code>, the control will be collapsed into an icon and expanded on mouse hover or touch.</td>
</tr>
<tr>
<td><code><b>autoZIndex</b></code></td>
<td><code>Boolean</code></td>
<td><code><span class="literal">true</span></code></td>
<td>If <code><span class="literal">true</span></code>, the control will assign zIndexes in increasing order to all of its layers so that the order is preserved when switching them on/off.</td>
</tr>
</table>