Commit 0203e785fc98f4c7ab3921bbd028398cd0a9ed74

Authored by Renato De Donato
2 parents 4710a0b6 5fd0e051

Merge branch 'master' of http://service.routetopa.eu:7480/WebCompDev/COMPONENTS

datalets/leafletjs-geojson-datalet/leafletjs-geojson-datalet.html
... ... @@ -135,7 +135,7 @@ Example:
135 135 var popupText = "";
136 136 for(var j=1; j<t.data.length; j++)
137 137 {
138   - if(typeof t.data[j] != 'undefined' && typeof t.data[j].data[i] != 'undefined')
  138 + if(typeof t.data[j] != 'undefined' && t.data[j].data[i] && typeof t.data[j].data[i] != 'undefined')
139 139 {
140 140 if (t.data[j].data[i].toString().match(new RegExp("^(http[s]?:\\/\\/(www\\.)?|ftp:\\/\\/(www\\.)?|www\\.){1}([0-9A-Za-z-\\.@:%_\+~#=]+)+((\\.[a-zA-Z]{2,3})+)(/(.)*)?(\\?(.)*)?")))
141 141 popupText += '<image height="100" width="100" src="' + t.data[j].data[i] + '" /><br/>';
... ...