Hi Laxmidi-

How many markers are you displaying? Tony Leonard, from this group,
says that he ported the ProgressBarControl from JS to AS3, and that
would be pretty much what you described wanting. I've pinged him to
see if he can share that code with the group.

If you're displaying many markers, you might also want to use
MarkerManager. It will load all markers into memory, and then only
render the markers in the viewport - so the rendering should be
faster.

- pamela


On Sun, Aug 30, 2009 at 9:07 AM, laxmidi1994<[email protected]> wrote:
>
> I have a lot of markers and I'm trying to improve performance.
>
> I use mySQL and php to return latitude and longitude coordinates. I
> then iterate over the result to make the markers. I use the
> markerManager class.
>
>
>                                                        for  (i=0; i <
> myData.length; i++) {
>                                                        myMarkers = new 
> Marker(new LatLng(myData[i].latitude,
>                                                        myData
> [i].longitude), new MarkerOptions({
>                                                        icon: new myIcon, 
> iconOffset: new Point
> (2,2), iconAlignment:1,  hasShadow:true
>                                                        }));
>                                                        
> markerBoss.addMarker(myMarkers, 15, 15);
>                                                        }
>
>
> Is there a way to create LatLng's or markers directly in php? Would
> this be faster?
>
> If there isn't a way to speed up creating the markers is there a way
> to show each marker as it is rendered? Presently, all of the markers
> are calculated and then shown at one time. If the markers were shown
> as they were built it would be more interesting for the user than
> looking at a spinning clock.
>
> Looking forward to your suggestions. Thank you!
>
> -Laxmidi
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API For Flash" 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-for-flash?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to