From GamingWiki
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'] !== 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']); | ||
− | } | + | }} |
} | } | ||
} | } |