$js .= '
var infobulle = new google.maps.InfoWindow();
var bounds = new google.maps.LatLngBounds();
for (var i = 0; i < places.length; i++) {
plc = places[i];
if ((plc[1] == undefined) && (plc[2] == undefined)) {
plc = findlocation(plc);
ptPlc = new google.maps.LatLng(plc[1], plc[2]);
}
else {
ptPlc = new google.maps.LatLng(plc[1], plc[2]);
}
bounds.extend(ptPlc);
var markerPlace = addMarkerPlace(ptPlc, plc, map, imgMkrs, infobulle);
}
map.fitBounds(bounds);'; function findlocation(plc) {
if (geocoder) {
//format address
if (plc[6] !== undefined && plc[7] !== undefined && plc[8] !== undefined) {
plc.address = plc[6] + ", " + plc[8] + ", " + plc[7];
} else if(plc[6] !== undefined && plc[8]) {
plc.address = plc[6] + ", " + plc[8];
} else {
plc.address = null;
}
if (plc.address !=null) {
geocoder.geocode( { "address": plc.address}, function(results, status) {
if (status == google.maps.GeocoderStatus.OK) {
plc[1] = results[0].geometry.location[\'Da\'];
plc[2] = results[0].geometry.location[\'Fa\'];
// alert(dump(plc));
return plc;
}
else {
alert("Geocode was not successful for the following reason: " + status);
}
});
}
}
}
So, plc is an array or an object?
if (plc.address !=null) {
var places = [
[ "Wolf Birke", 46.538362, 2.427753, "13", "mitglieder/wolf-birke.html", "", "Luisenstraße 87a", "", "", ],
[ "Guido Gallenkamp", , , "14", "mitglieder/guido-gallenkamp.html", "", "Laurentiusstraße 24", "42103", "Wuppertal", ],
];
function findlocation(plc) {
var address='';
if (geocoder) {
//format address
if (plc[6] !== undefined && plc[7] !== undefined && plc[8] !== undefined) {
address = plc[6] + ", " + plc[8] + ", " + plc[7];
} else if(plc[6] !== undefined && plc[8]) {
address = plc[6] + ", " + plc[8];
} else {
address = null;
}
if (address !=null) {
geocoder.geocode( {
"address": address
}, function(results, status) {
if (status == google.maps.GeocoderStatus.OK) {
// plc = results[0].geometry.location['Da'];
// plc = results[0].geometry.location['Fa'];
// alert(dump(plc));
return results[0].geometry.location ;
}
else {
alert("Geocode was not successful for the following reason: " + status);
}
});
}
}
}

function findlocation(plc) {
if (geocoder) {
//format address
if (plc[6] !== undefined && plc[7] !== undefined && plc[8] !== undefined) {
plc.address = plc[6] + ", " + plc[8] + ", " + plc[7];
} else if(plc[6] !== undefined && plc[8]) {
plc.address = plc[6] + ", " + plc[8];
} else {
plc.address = null;
}
if (plc.address !== null) {
alert("address is set");
var geopos = null;
geocoder.geocode( { "address": plc.address}, function(results, status) {
if (status == google.maps.GeocoderStatus.OK) {
alert ("Status is OK");
geopos.lon = results[0].geometry.location[\'Da\'];
geopos.lat = results[0].geometry.location[\'Fa\'];
alert(dump(geopos));
return geopos;
}
else {
alert("Geocode was not successful for the following reason: " + status);
}
});
}
else {alert("address not set");}
}
}