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) { if ( marker['address'] != '') {
+
if (typeof marker['address'] === 'undefined' || if ( marker['address'] == '') {
 +
addMarkerByLatLng(marker['latlng'], marker['name'], marker['description']);
 +
} else {
 
addMarkerByAddress(marker['address'], marker['name'], marker['description']);
 
addMarkerByAddress(marker['address'], marker['name'], marker['description']);
} else {
+
}
addMarkerByLatLng(marker['latlng'], marker['name'], marker['description']);
 
}}
 
 
}
 
}
 
}
 
}

Revision as of 06:43, 29 October 2010