diff --git a/datalets/leafletjs-datalet/demo/index.html b/datalets/leafletjs-datalet/demo/index.html index 3036028..c665e8a 100755 --- a/datalets/leafletjs-datalet/demo/index.html +++ b/datalets/leafletjs-datalet/demo/index.html @@ -13,8 +13,8 @@ - + + diff --git a/datalets/leafletjs-datalet/leafletjs-datalet.html b/datalets/leafletjs-datalet/leafletjs-datalet.html index 25a096b..018bcf5 100755 --- a/datalets/leafletjs-datalet/leafletjs-datalet.html +++ b/datalets/leafletjs-datalet/leafletjs-datalet.html @@ -91,6 +91,7 @@ Example: var coordinates = []; var coordinates_index = 0; var isArray = t.data[0].data[0].constructor === Array; + var geo; for(var i=0; i 2) { var popupText = ""; @@ -135,7 +145,7 @@ Example: } var popup = L.popup().setContent(popupText); - marker.bindPopup(popup); + geo.bindPopup(popup); } }