From 25a20644ab248a4462dfa2a45464e498cd9e89de Mon Sep 17 00:00:00 2001 From: Vladimir Agafonkin Date: Thu, 12 Jul 2012 16:05:49 +0300 Subject: [PATCH] more docs fixes --- examples/geojson.html | 2 +- reference.html | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/examples/geojson.html b/examples/geojson.html index 80ead7d2..782becf7 100644 --- a/examples/geojson.html +++ b/examples/geojson.html @@ -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) { diff --git a/reference.html b/reference.html index 37c808e1..3acfabb9 100644 --- a/reference.html +++ b/reference.html @@ -1108,9 +1108,8 @@ var map = L.map('map', {

Path overlays like polylines also have a bindPopup method. Here's a more complicated way to open a popup on a map:

var popup = L.popup()
 	.setLatLng(latlng)
-	.setContent('<p>Hello world!<br />This is a nice popup.</p>');
-
-map.openPopup(popup);
+ .setContent('<p>Hello world!<br />This is a nice popup.</p>') + .openOn(map);

Constructor