I'll tell you what i'm trying to do. I click on the map drawing
polyline. After drawing I click Save button.
Now all the actions. First i'm reading coordinates of all polyline
vertexes. After that pushing them into array.
After that I use .getLocations to read CountryNameCode of each vertex.
Then I want to make it unique and save it to another array. After that
I'll compare that with my DB entries.
The problem I have is on step that i must push CountryNameCode to the
array while looping coordinates of each vertex.
Is it possible to run function after ending the first one? All is made
asynchronous so can I do that, that after ending 1 function 2nd is
starting?
As now, I menaged to make it on 3 buttons clicked 1 after another. I
need it to be working after clicking 1 button only.
My code is here: http://www.atotam.pl/js/tours.js  that is test code.

On 22 Lip, 17:49, "[email protected]" <[email protected]> wrote:
> On Jul 22, 8:02 am, Rossko <[email protected]> wrote:
>
> > > The only idea I have is:
> > > kraje_n.push(adres, function(){
> > >                                                 alert(kraje_n);
> > >                                         });
> > > but it doesn't work:/
>
> Have you seen this example from the Demo Gallery?
>
> Geocoding Multiple Addresses
> This example shows how to geocode an array of addresses in such a way
> that avoids going over the max QPS and getting a 620 error.
>
> Classes used: GClientGeocoder
>
> Example by Pamela Fox
>
> http://gmaps-samples.googlecode.com/svn/trunk/geocoder/delayed.html
>
>
>
> > No it wouldn't, .push() doesn't have a callback function of its own.
>
> > Try -
> >    ...
> >    kraje_n.push(adres);
> >    alert(kraje_n);
> >    }
> >     ...
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to