Commit a05908c57f95dcfa7e37b33b41e8b33abe9ea1c0
1 parent
256ece27
map
Showing
1 changed file
with
3 additions
and
2 deletions
datalets/leafletjs-datalet/leafletjs-datalet.html
... | ... | @@ -101,7 +101,7 @@ Example: |
101 | 101 | else |
102 | 102 | continue; |
103 | 103 | } |
104 | - else if(typeof t.data[0].data[i] != 'undefined' && t.data[0].data[i].indexOf(",")) | |
104 | + else if(typeof t.data[0].data[i] == 'string' && t.data[0].data[i].indexOf(",")) | |
105 | 105 | { |
106 | 106 | var coords = t.data[0].data[i].split(","); |
107 | 107 | if(!isNaN(coords[0]) && !isNaN(coords[1])) |
... | ... | @@ -213,4 +213,5 @@ Example: |
213 | 213 | this.async(function(){this.behavior.init(this)},100); |
214 | 214 | } |
215 | 215 | }); |
216 | - </scri | |
217 | 216 | \ No newline at end of file |
217 | + </script> | |
218 | +</dom-module> | |
218 | 219 | \ No newline at end of file | ... | ... |