diff --git a/datalets/leafletjs-datalet/leafletjs-datalet.html b/datalets/leafletjs-datalet/leafletjs-datalet.html index a1c7327..5ceee13 100755 --- a/datalets/leafletjs-datalet/leafletjs-datalet.html +++ b/datalets/leafletjs-datalet/leafletjs-datalet.html @@ -101,7 +101,7 @@ Example: else continue; } - else if(t.data[0].data[i].indexOf(",")) + else if(t.data[0].data[i] && t.data[0].data[i].indexOf(",")) { var coords = t.data[0].data[i].split(","); if(!isNaN(coords[0]) && !isNaN(coords[1]))