commit
377f534cc5
@ -2588,7 +2588,7 @@ L.imageOverlay(imageUrl, imageBounds).addTo(map);</code></pre>
|
||||
<p>A class for drawing polyline overlays on a map. Extends <a href="#path">Path</a>. Use <a href="#map-addlayer">Map#addLayer</a> to add it to the map.</p>
|
||||
|
||||
<h3>Usage example</h3>
|
||||
<pre><code class="javascript">// create a red polyline from an arrays of LatLng points
|
||||
<pre><code class="javascript">// create a red polyline from an array of LatLng points
|
||||
var polyline = L.polyline(latlngs, {color: 'red'}).addTo(map);
|
||||
|
||||
// zoom the map to the polyline
|
||||
|
Loading…
Reference in New Issue
Block a user