From b0b8a9137e71c4aae3e8fe9683ea237bbaded2b8 Mon Sep 17 00:00:00 2001 From: andrpet Date: Thu, 21 Jul 2016 16:41:55 +0200 Subject: [PATCH] plugin update --- datalets/leafletjs-datalet/demo/index.html | 4 ++-- datalets/leafletjs-datalet/leafletjs-datalet.html | 26 ++++++++++++++++++-------- 2 files changed, 20 insertions(+), 10 deletions(-) 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); } } -- libgit2 0.21.4