From GamingWiki
Jump to: navigation, search
Line 89: Line 89:
 
for ( i = 0; i < markers.length; i++ ) {
 
for ( i = 0; i < markers.length; i++ ) {
 
marker = markers[i];
 
marker = markers[i];
if (marker['address'] !== undefined and marker['address'] != '') {
+
if (marker['address'] !== undefined) { if ( marker['address'] != '') {
 
addMarkerByAddress(marker['address'], marker['name'], marker['description']);
 
addMarkerByAddress(marker['address'], marker['name'], marker['description']);
 
} else {
 
} else {
 
addMarkerByLatLng(marker['latlng'], marker['name'], marker['description']);
 
addMarkerByLatLng(marker['latlng'], marker['name'], marker['description']);
}
+
}}
 
}
 
}
 
}
 
}

Revision as of 06:32, 29 October 2010