So Why it is that I have to wait 5 minuts to see all 5000 markers from
database, and fuctions give me back 1 ms.

5000 random markers I receive quicker, byt function in this case
returns time about  70  sek.(of course deending on the browser,
machine etc)

On 22 Lis, 00:16, "[email protected]" <[email protected]> wrote:
> On Nov 21, 6:12 pm, Kataryzna Nowicka <[email protected]> wrote:
>
> > I doesn't work in this way, that's why i am writing. it takes about
> > 4-5 min to display 5000 markers from DB, but function resturns time
> > about 1-3 ms.
> > I have another script that generates 5000 random lat and lng and it
> > works much longer for ex. 72 sec!
>
> > Any idea?
>
> The javascript to add the markers to the map probably takes that long
> to run.  Then the browser needs to render the markers.  At that point
> the javascript is no longer in control.
>
>   -- Larry
>
>
>
>
>
>
>
> > KN
>
> > On 21 Lis, 18:38, Andrew Leach <[email protected]> wrote:
>
> > > On 21 November 2010 17:10, Kataryzna Nowicka <[email protected]> wrote:
>
> > > > I have a script that use javaScript to send parameters to PHP, than
> > > > PHP imports data from database on the server and returns them to
> > > > JavaScript. These data are latitude and longitude of point.
> > > > After all I use those data to generate marker and I addOverlay.
> > > > I need to measure how long it takes to send data, receive them and
> > > > mark those poins on the map.
>
> > > Your functions are probably adequate if they are executed in the right
> > > order. Get the start time just before you send the parameters to PHP,
> > > and get the end time on the final addOverlay event. If each addOverlay
> > > event updates the end time, then the final result will be the time the
> > > last marker was added.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API V2" 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