Hi Larry ,
Thansk a lot for your response.
Storing values seems to be complicated and time consuming at this
point in time. I am thinking of using a delay, but not bale to use
setTimeout correctly.
function placeMarker ( existing_map, existing_address,
popup_text, existing_icon, x_dev, y_dev, flag){
var geocoder = new GClientGeocoder();
geocoder.getLocations(existing_address, function(response) {
if (!response || response.Status.code == 620) {
fordelay(existing_map, existing_address, popup_text, existing_icon,
x_dev, y_dev, flag);
return;
}
place = response.Placemark[0];
point = new GLatLng((place.Point.coordinates[1] + x_dev),
(place.Point.coordinates[0] + y_dev));
l_point.elements["l_point"].value = point;
g_point = l_point.elements["l_point"].value;
t_point = point;
var marker = new createMarker(point, popup_text,
existing_icon);
existing_map.addOverlay(marker);
});
};
function fordelay(existing_map, existing_address, popup_text,
existing_icon, x_dev, y_dev, flag)
{
setTimeout("placeMarker ( existing_map, existing_address, popup_text,
existing_icon, x_dev, y_dev, flag)",1000);
}
but i get an error "existing_map undefined " I am not even able to
debug it or find out where it is happening ,as it says 'source code
not available'
--
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-maps-api?hl=en.