2gis-maps
Version:
Interactive 2GIS maps API, based on Leaflet
42 lines (40 loc) • 1.51 kB
HTML
<h2 id="traffic-information">Traffic information</h2><p>Creates a layer with information about traffic jams. When you hover over a section of a road,
it displays additional meta-information.</p>
<p><dl class="api-incut"><ul class="page-contents"><li><a href="#dgtraffic">DG.Traffic</a><ul><li><a href="#creation">Creation</a></li><li><a href="#options">Options</a></li></ul></dl></p>
<h3 id="dgtraffic">DG.Traffic</h3><h4 id="creation">Creation</h4><table>
<thead>
<tr>
<th>Factory</th>
<th>Usage</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><code><b>DG.Traffic</b>(
<nobr><<a href="#options">DG.Traffic options</a>> <i>options?</i> )</nobr>
</code></td>
<td><code>DG.Traffic(…)</code></td>
<td>Creates a traffic jams layer.</td>
</tr>
</tbody>
</table>
<h4 id="options">Options</h4><table>
<thead>
<tr>
<th>Option</th>
<th>Type</th>
<th>Default</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><code><b>disableLabel</b></code></td>
<td><code>Boolean</code></td>
<td><code><span class="string">false</span></td>
<td>If you send the value= true, then, when you hover over a section of a road,
the additional information will not be displayed.</td>
</tr>
</tbody>
</table>