Commit 518a34cafef44830194648f332feafb47b4c2bfe
1 parent
edda4294
plugin update
Showing
1 changed file
with
8 additions
and
0 deletions
datalets/leafletjs-datalet/leafletjs-datalet.html
... | ... | @@ -101,6 +101,14 @@ Example: |
101 | 101 | else |
102 | 102 | continue; |
103 | 103 | } |
104 | + else if(t.data[0].data[i][0].indexOf(",")) | |
105 | + { | |
106 | + var coords = t.data[0].data[i][0].split(","); | |
107 | + if(!isNaN(coords[0]) && !isNaN(coords[1])) | |
108 | + coordinates.push([parseFloat(coords[0]), parseFloat(coords[1])]); | |
109 | + else | |
110 | + continue; | |
111 | + } | |
104 | 112 | else |
105 | 113 | { |
106 | 114 | if(!isNaN(t.data[0].data[i]) && !isNaN(t.data[1].data[i])) | ... | ... |