more docs fixes
This commit is contained in:
parent
ecf45d888e
commit
25a20644ab
@ -62,7 +62,7 @@
|
||||
iconUrl: 'baseball-marker.png',
|
||||
iconSize: [32, 37],
|
||||
iconAnchor: [16, 37],
|
||||
popupAnchor: new L.Point(0, -28) // TODO temporary until fixed
|
||||
popupAnchor: [0, -28]
|
||||
});
|
||||
|
||||
function onEachFeature(feature, layer) {
|
||||
|
@ -1108,9 +1108,8 @@ var map = L.map('map', {
|
||||
<p>Path overlays like polylines also have a <code>bindPopup</code> method. Here's a more complicated way to open a popup on a map:</p>
|
||||
<pre><code class="javascript">var popup = L.popup()
|
||||
.setLatLng(latlng)
|
||||
.setContent('<p>Hello world!<br />This is a nice popup.</p>');
|
||||
|
||||
map.openPopup(popup);</code></pre>
|
||||
.setContent('<p>Hello world!<br />This is a nice popup.</p>')
|
||||
.openOn(map);</code></pre>
|
||||
|
||||
<h3>Constructor</h3>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user