update docs
This commit is contained in:
parent
3e91a187f6
commit
fb382c2156
@ -53,7 +53,7 @@
|
||||
<li><a href="#map-get-methods">Methods that get map state</a></li>
|
||||
<li><a href="#map-stuff-methods">Methods for layers and controls</a></li>
|
||||
<li><a href="#map-conversion-methods">Conversion methods</a></li>
|
||||
<li><a class="nodocs" href="#">Misc. methods</a></li>
|
||||
<li><a href="#map-misc-methods">Other methods</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="span-3">
|
||||
@ -86,7 +86,7 @@
|
||||
</ul>
|
||||
<h4>Controls</h4>
|
||||
<ul>
|
||||
<li><a class="nodocs" href="#control-zoom">Zoom</a></li>
|
||||
<li><a href="#control-zoom">Zoom</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="span-3">
|
||||
@ -225,7 +225,7 @@ map.addLayer(cloudmade);</code></pre>
|
||||
<td><code>zoomControl</code></td>
|
||||
<td><code>Boolean</code></td>
|
||||
<td><code>true</code></td>
|
||||
<td>Whether the <a href="control-zoom">zoom control</a> is added to the map by default.</td>
|
||||
<td>Whether the <a href="#control-zoom">zoom control</a> is added to the map by default.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>trackResize</code></td>
|
||||
@ -477,7 +477,72 @@ map.addLayer(cloudmade);</code></pre>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<h3 id="map-misc-methods">Other methods</h3>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<th>Method</th>
|
||||
<th>Returns</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>getContainer()</code></td>
|
||||
<td><code>HTMLElement</code></td>
|
||||
<td>Returns the container element of the map.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>getPanes()</code></td>
|
||||
<td><code><a href="#map-panes">MapPanes</a></code></td>
|
||||
<td>Returns an object with different map panes (to render overlays in).</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<h3 id="map-panes">Map panes</h3>
|
||||
|
||||
<p>An object literal that contains different map panes that you can use to put your custom overlays in. The difference is mostly in zIndex order that such overlays get.</p>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<th>Property</th>
|
||||
<th>Type</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>mapPane</code></td>
|
||||
<td><code>HTMLElement</code></td>
|
||||
<td>Pane that contains all other map panes.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>tilePane</code></td>
|
||||
<td><code>HTMLElement</code></td>
|
||||
<td>Pane for tile layers.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>objectsPane</code></td>
|
||||
<td><code>HTMLElement</code></td>
|
||||
<td>Pane that contains all the panes except tile pane.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>shadowPane</code></td>
|
||||
<td><code>HTMLElement</code></td>
|
||||
<td>Pane for overlay shadows (e.g. marker shadows).</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>overlayPane</code></td>
|
||||
<td><code>HTMLElement</code></td>
|
||||
<td>Pane for overlays like polylines and polygons.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>markerPane</code></td>
|
||||
<td><code>HTMLElement</code></td>
|
||||
<td>Pane for marker icons.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>popupPane</code></td>
|
||||
<td><code>HTMLElement</code></td>
|
||||
<td>Pane for popups.</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<h2 id="marker">L.Marker</h2>
|
||||
@ -660,7 +725,7 @@ map.openPopup(popup);</code></pre>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>L.TileLayer( <String> <i><a href="url-template">urlTemplate</a></i>, <<a href="#tilelayer-options">TileLayer options</a>> <i>options?</i> )</code></td>
|
||||
<td><code>L.TileLayer( <String> <i><a href="#url-template">urlTemplate</a></i>, <<a href="#tilelayer-options">TileLayer options</a>> <i>options?</i> )</code></td>
|
||||
<td>Instantiates a tile layer object given a <a href="#url-template">URL template</a> and optionally an options object.</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -1184,6 +1249,23 @@ map.addLayer(polyline);</code></pre>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<h2 id="control-zoom">L.Control.Zoom</h2>
|
||||
|
||||
<p>A basic zoom control with two buttons (zoom in and zoom out). It is put on the map by default unless you set its <code>zoomControl</code> option to <code>false</code>. Implements <a href="#icontrol">IControl</a> interface.</p>
|
||||
|
||||
<h3>Constructor</h3>
|
||||
<table>
|
||||
<tr>
|
||||
<th>Constructor</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>L.Control.Zoom()</code></td>
|
||||
<td>Creates a zoom control.</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<h2 id="ihandler">IHandler</h2>
|
||||
<p>An interface implemented by <a href="#map-interaction-handlers">interaction handlers</a>.</p>
|
||||
|
Loading…
Reference in New Issue
Block a user