The only idea I have is:
kraje_n.push(adres, function(){
alert(kraje_n);
});
but it doesn't work:/
On 22 Lip, 16:43, Rossko <[email protected]> wrote:
> You're trying to using data from an asynchronous service before its
> ready.
> The 'alert' runs before the data gets back from the geocoder - it
> takes time, and teh code doesn't stop and wait for it.
> http://econym.org.uk/gmap/async.htm
>
> Put your alert inside the callback function (with the push) to get the
> result
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---