diff --git a/datalets/leafletjs-datalet/leafletjs-datalet.html b/datalets/leafletjs-datalet/leafletjs-datalet.html
index dc487bc..69490b3 100755
--- a/datalets/leafletjs-datalet/leafletjs-datalet.html
+++ b/datalets/leafletjs-datalet/leafletjs-datalet.html
@@ -103,10 +103,16 @@ Example:
if(t.data.length > 2)
{
- if(t.data[t.data.length - 1].data[i].toString().match(new RegExp("^(http[s]?:\\/\\/(www\\.)?|ftp:\\/\\/(www\\.)?|www\\.){1}([0-9A-Za-z-\\.@:%_\+~#=]+)+((\\.[a-zA-Z]{2,3})+)(/(.)*)?(\\?(.)*)?")))
- var popup = L.popup().setContent('');
- else
- var popup = L.popup().setContent('' + t.data[t.data.length - 1].data[i] + '');
+ var popupText = "";
+ for(var j=2; j
';
+ else
+ popupText += '' + t.data[j].data[i] + '
'
+ }
+
+ var popup = L.popup().setContent(popupText);
marker.bindPopup(popup);
}
}