From 518a34cafef44830194648f332feafb47b4c2bfe Mon Sep 17 00:00:00 2001 From: andrpet Date: Tue, 12 Jul 2016 12:23:47 +0200 Subject: [PATCH] plugin update --- datalets/leafletjs-datalet/leafletjs-datalet.html | 8 ++++++++ 1 file changed, 8 insertions(+), 0 deletions(-) diff --git a/datalets/leafletjs-datalet/leafletjs-datalet.html b/datalets/leafletjs-datalet/leafletjs-datalet.html index 1493065..b1bcc79 100755 --- a/datalets/leafletjs-datalet/leafletjs-datalet.html +++ b/datalets/leafletjs-datalet/leafletjs-datalet.html @@ -101,6 +101,14 @@ Example: else continue; } + else if(t.data[0].data[i][0].indexOf(",")) + { + var coords = t.data[0].data[i][0].split(","); + if(!isNaN(coords[0]) && !isNaN(coords[1])) + coordinates.push([parseFloat(coords[0]), parseFloat(coords[1])]); + else + continue; + } else { if(!isNaN(t.data[0].data[i]) && !isNaN(t.data[1].data[i])) -- libgit2 0.21.4