more docs fixes

This commit is contained in:
Vladimir Agafonkin 2012-07-12 16:05:49 +03:00
parent ecf45d888e
commit 25a20644ab
2 changed files with 3 additions and 4 deletions

View File

@ -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) {

View File

@ -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('&lt;p&gt;Hello world!&lt;br /&gt;This is a nice popup.&lt;/p&gt;');
map.openPopup(popup);</code></pre>
.setContent('&lt;p&gt;Hello world!&lt;br /&gt;This is a nice popup.&lt;/p&gt;')
.openOn(map);</code></pre>
<h3>Constructor</h3>