Commit f965cc59dc11099119cb8546fd71cacc06b56ca7
1 parent
518a34ca
updates: coords in a string sapareted tu
Showing
1 changed file
with
2 additions
and
2 deletions
datalets/leafletjs-datalet/leafletjs-datalet.html
... | ... | @@ -101,9 +101,9 @@ Example: |
101 | 101 | else |
102 | 102 | continue; |
103 | 103 | } |
104 | - else if(t.data[0].data[i][0].indexOf(",")) | |
104 | + else if(t.data[0].data[i].indexOf(",")) | |
105 | 105 | { |
106 | - var coords = t.data[0].data[i][0].split(","); | |
106 | + var coords = t.data[0].data[i].split(","); | |
107 | 107 | if(!isNaN(coords[0]) && !isNaN(coords[1])) |
108 | 108 | coordinates.push([parseFloat(coords[0]), parseFloat(coords[1])]); |
109 | 109 | else | ... | ... |