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'] | + | 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']); | ||
− | + | } | |
− | |||
− | |||
} | } | ||
} | } |